...

View Full Version : XML Parser



Evlich
02-24-2003, 11:57 PM
Hello, I want to work with XML, so I took a look at expat, but it seems like it doesn't offer some of the fflexibility that I need. For instance, I need a way to parse only certain parts of a document or count the number of child tags that a tag has. Is there a parser that I would be able to access nodes in a more random order? Thanks a lot.
~evlich

mordred
02-25-2003, 01:13 PM
Alternatively, you could try the DOMXML extension. Though as I understand, it also parses the complete tree into memory. Depending on the size of your document, that might be quite resource demanding.
http://www.php.net/manual/en/ref.domxml.php

There's also lot of stuff in the XML department of PEAR:
http://pear.php.net/packages.php?catpid=22&catname=XML

Maybe you find something of interest to you there. Good luck. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum