Re: [PHP-XML-DEV] Re: Getting data from XML
[email protected] (Adam Maccabee Trachtenberg) Wed, 28 Jul 2004 15:23:51 -0400 (EDT)
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
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 -- [email protected] author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today!