You are here: Re: XML parser « PHP Programming Language « IT news, forums, messages
Re: XML parser

Posted by Andy Hassall on 02/28/06 02:13

On 27 Feb 2006 15:45:05 -0800, "Joshua Morgan" <joshua.morgan@gmail.com> wrote:

>I want to create my own XML parser that is completely independent of
>PHP version (i want it to run on both PHP 4 and 5), and to also not
>require any dependencies (so that the user DOESN'T have to compile php
>with --with-xml).
>
>Can someone point me in the right direction as to how I can go about
>this?

If you really want to write one yourself, perhaps for fun (?!) then:

http://www.w3.org/TR/2004/REC-xml-20040204/

And then you probably want to look up "DOM" and "SAX" parsers for the two main
approaches to parsing XML.

Alternatively you can avoid re-inventing the wheel:

http://www.google.co.uk/search?q=pure+php+xml+parser

(Is it really so much of a hardship to compile with XML support though? PHP4
even comes with a bundled copy of the expat library, and PHP5 is a bit fiddly
to compile _without_ XML support, IIRC, since some other extensions rely on it)

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this 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

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