Re: Re: Getting data from XML
| From: | Adam Maccabee Trachtenberg | Date: | Wed, 28 Jul 2004 19:23:51 +0000 |
| Subject: | Re: Re: Getting data from XML | ||
| References: | 1 2 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-440@lists.php.net to get a copy of this message | ||
On Wed, 28 Jul 2004, Eamon Reyn wrote:
> this will print everything out but will do an extra lot at the beginning for
> the root node e.g.
>
> root = Hello Bye
> Tag1 = Hello
> Tag2 = Bye
You should check the element's node type. (i.e. nodeType ==
XML_ELEMENT_NODE or XML_TEXT_NODE)
-adam
--
adam@trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!