You are here: Re: DOM formatOutput issues « PHP Programming Language « IT news, forums, messages
Re: DOM formatOutput issues

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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация