Posted by bobzimuta on 03/22/06 03:22
Tried some variations myself, but no luck. However, I question the need
to view the XML file in a pretty fashion, since XML files aren't meant
for viewing. And if you do view it, view in a web browser that can
display the tree structure nicely.
Also, I wonder why you are constructing the DOM tree the way you are.
The way you have it now:
<users>
<user_id>0</user_id>
<user_name>Mark_0</user_name>
<user_id>1</user_id>
<user_name>Mark_1</user_name>
</users>
Wouldn't you want to seperate out the users into their own nodes? As
in:
<users>
<user>
<user_id>0</user_id>
<user_name>Mark_0</user_name>
</user>
<user>
<user_id>1</user_id>
<user_name>Mark_1</user_name>
</user>
</users>
[Back to original message]
|