Posted by bizt on 10/25/94 11:34
I am not really sure how to parse files with PHP XML other than DOM
XML. Unfortunetely, I have run into a few problems with size and was
told that for the type of parsing I am doing I would be better using
event driven parsing like SAX.
Below I have a simple example of XML similar (although much much
smaller) to the one I am using for real.
XML:
<?xml...
<root>
<name age="25">Martyn</name>
<name age="24">Neil</name>
<name age="24">Robbie</name>
</root>
All I want to do is to output them as:
Martyn (25)
Neil (24)
Robbie (24)
How would I do this uisng something like SAX / EXPAT? I found tutorials
but didnt really understand them enough to know if I was looking up the
correct thing. Any help would be much appreciated.
Cheers
Burnsy
[Back to original message]
|