Reply to Parsing XML with PHP - not DOM XML

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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