Click here to Skip to main content
15,920,603 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questiondisplay XML in table form Pin
Y_Kaushik4-Jul-08 19:21
Y_Kaushik4-Jul-08 19:21 
QuestionHow to make conditions or filter the xml node using XSL Pin
jollymj234-Jul-08 15:14
jollymj234-Jul-08 15:14 
AnswerRe: How to make conditions or filter the xml node using XSL Pin
Riaan Lehmkuhl6-Jul-08 19:53
professionalRiaan Lehmkuhl6-Jul-08 19:53 
QuestionUsing XSLT contains() Pin
Rob Grainger4-Jul-08 5:06
Rob Grainger4-Jul-08 5:06 
QuestionColorfull string Pin
half-life2-Jul-08 19:39
half-life2-Jul-08 19:39 
AnswerRe: Colorfull string Pin
led mike3-Jul-08 6:00
led mike3-Jul-08 6:00 
GeneralRe: Colorfull string Pin
half-life3-Jul-08 6:08
half-life3-Jul-08 6:08 
Questionchange the att value and name of a node (Visual C++ && DOM - ) Pin
SimplySane2-Jul-08 7:09
SimplySane2-Jul-08 7:09 
1.) How do you change the the attribute value of a certain node?? Or add an attribute to a node??

Say for example:
<book id="bk112" status="New">


Then you want to change the status value to "Old" and add another attribute like Cover="SoftBound".

The IXMLDOMNode::Getattributes() can be used to get the attributes of a node. This will return a ptr to IXMLDOMNamedNodeMap. To access each attribute, the Getitem() function which will return a ptr to IXMLDOMNode. I know how to get the attributes name and value but to change it, it seems like Im stuck... I can see a setAttribute() function in IXMLDOMElement... It looks like the answer to my first question.. BUT, how am I gonna implement when the Getitem returns a ptr to IXMLDOMNode and not to IXMLDOMElement?? IXMLDOMElement inherits from IXMLDOMNode but this can't be solve by casting...

2. How can IXMLDOMNode be converted to IXMLDOMElement??



ANy ideas please?? or any solution..



Thanks!
AnswerRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
led mike2-Jul-08 10:11
led mike2-Jul-08 10:11 
GeneralRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
SimplySane6-Jul-08 6:18
SimplySane6-Jul-08 6:18 
GeneralRe: change the att value and name of a node (Visual C++ && DOM - ) Pin
led mike7-Jul-08 11:15
led mike7-Jul-08 11:15 
QuestionCalculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 4:34
Andy H2-Jul-08 4:34 
AnswerRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 4:45
led mike2-Jul-08 4:45 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 5:14
Andy H2-Jul-08 5:14 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 6:36
led mike2-Jul-08 6:36 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 10:08
Andy H2-Jul-08 10:08 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 10:18
led mike2-Jul-08 10:18 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 10:46
Andy H2-Jul-08 10:46 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike2-Jul-08 11:07
led mike2-Jul-08 11:07 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H2-Jul-08 12:26
Andy H2-Jul-08 12:26 
AnswerRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 3:03
Andy H3-Jul-08 3:03 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike3-Jul-08 5:58
led mike3-Jul-08 5:58 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 6:27
Andy H3-Jul-08 6:27 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
led mike3-Jul-08 6:41
led mike3-Jul-08 6:41 
GeneralRe: Calculating DigestValue over URI - URGENT HELP VERY MUCH APPRECIATED Pin
Andy H3-Jul-08 7:56
Andy H3-Jul-08 7:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.