Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
how to manage an indented file with dom.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="YGUEL, post: 771379"] I try to parse an indented xml file with dom xerces c++. the file is like that : <root> <child1> <field1> blabla </field1> <field2> blibli </field2> </child1> <child2> <field1> blabla </field1> <field2> blibli </field2> </child2> </root> where return an white spaces ar in the xml file. So the program I writed with dom give me this tree root has five childs : text-node child1 text-node child2 text-node the text of the first text-node is "\n " the text of the second text-node is "\n " the text of the third text-node is "\n" this space fact occurs at each step in the tree hierarchy. My questions are : is it possible to strip these node automatically ? Are text-node, which are a mixed soap of text and nodes, part of the standard xml ? Thanks [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
how to manage an indented file with dom.
Top