Click here to Skip to main content
15,921,179 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralCache problem Pin
Anonymous12-Dec-02 23:41
Anonymous12-Dec-02 23:41 
GeneralRe: Cache problem Pin
Not Active13-Dec-02 3:24
mentorNot Active13-Dec-02 3:24 
QuestionHow to get the current line of a xml element / node? Pin
Daniel Strigl11-Dec-02 21:50
Daniel Strigl11-Dec-02 21:50 
AnswerRe: How to get the current line of a xml element / node? Pin
Michael A. Barnhart12-Dec-02 0:26
Michael A. Barnhart12-Dec-02 0:26 
GeneralRe: How to get the current line of a xml element / node? Pin
Daniel Strigl12-Dec-02 0:58
Daniel Strigl12-Dec-02 0:58 
GeneralRe: How to get the current line of a xml element / node? Pin
John M.12-Dec-02 7:20
John M.12-Dec-02 7:20 
GeneralRe: How to get the current line of a xml element / node? Pin
Daniel Strigl12-Dec-02 19:57
Daniel Strigl12-Dec-02 19:57 
GeneralRe: How to get the current line of a xml element / node? Pin
Michael A. Barnhart12-Dec-02 8:44
Michael A. Barnhart12-Dec-02 8:44 
Daniel S. wrote:
What I mean is the current line of a xml node / element in the xml file, like the get_line() function of the IXMLDOMParseError return.

Do not confuse the parser error messages that help identify where an error occurs by referencing the line in the file that contains the xml file with how the DOM is structured. All ascii data (non attribute values, comments, processing instructions, etc) is text nodes in the the DOM (line feeds etc. inlcuded)

To get the value of an attribute node:
hr = pIXMLDOMElement->getAttribute(bstrAttributeName, &varValue);

see "IXMLDOMAttribute" in the MSXML 4 help file for the above code sample.

YOu need to get the root node and then work your way down the child nodes handling them as appropriate.

"I will find a new sig someday."
QuestionHow to use format-number() function? Pin
amica5-Dec-02 5:15
amica5-Dec-02 5:15 
AnswerRe: How to use format-number() function? Pin
Bjoern Graf5-Dec-02 10:14
Bjoern Graf5-Dec-02 10:14 
GeneralIXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Daniel Strigl4-Dec-02 1:57
Daniel Strigl4-Dec-02 1:57 
GeneralRe: IXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Bjoern Graf4-Dec-02 4:29
Bjoern Graf4-Dec-02 4:29 
GeneralRe: IXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Michael Dunn4-Dec-02 16:57
sitebuilderMichael Dunn4-Dec-02 16:57 
GeneralRe: IXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Daniel Strigl4-Dec-02 19:57
Daniel Strigl4-Dec-02 19:57 
GeneralMSXML and CString !!! Pin
Daniel Strigl3-Dec-02 23:18
Daniel Strigl3-Dec-02 23:18 
GeneralRe: MSXML and CString !!! Pin
Daniel Turini3-Dec-02 23:55
Daniel Turini3-Dec-02 23:55 
GeneralRe: MSXML and CString !!! Pin
Daniel Strigl4-Dec-02 0:32
Daniel Strigl4-Dec-02 0:32 
GeneralRe: MSXML and CString !!! Pin
Retsof Nawor4-Dec-02 8:25
Retsof Nawor4-Dec-02 8:25 
GeneralRe: MSXML and CString !!! Pin
Daniel Strigl4-Dec-02 19:57
Daniel Strigl4-Dec-02 19:57 
Generalput_nodeTypedValue Pin
Bash28-Nov-02 2:37
Bash28-Nov-02 2:37 
GeneralRe: put_nodeTypedValue Pin
Christian Graus28-Nov-02 10:50
protectorChristian Graus28-Nov-02 10:50 
GeneralRe: put_nodeTypedValue Pin
berndg28-Nov-02 20:03
berndg28-Nov-02 20:03 
GeneralXML DOM in ATL Pin
i++26-Nov-02 23:57
i++26-Nov-02 23:57 
GeneralRe: XML DOM in ATL Pin
Christian Graus27-Nov-02 0:04
protectorChristian Graus27-Nov-02 0:04 
GeneralRe: XML DOM in ATL Pin
Lizp27-Nov-02 0:25
Lizp27-Nov-02 0:25 

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.