Re: XML parser
On 27 Feb 2006 15:45:05 -0800, "Joshua Morgan" <joshua.morgan@xxxxxxxxx> 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@xxxxxxxxxxx ::
http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
.
Relevant Pages
- Re: com_dotnet
... And if MySQL isn't installed, the DLL won't load and phpinfowill show MySQL support isn't enabled. ... The MySQL interface is NOT compiled into PHP on the distributed Windows binaries - or you'd never be able to run PHP unless you had MySQL installed. ... *SOME* extensions are protocols, some are functional resources, and some are just type libraries. ... If you're going to compile the extension into PHP itself, the libraries must be available at compile time, and when you run PHP, or PHP won't load. ... (comp.lang.php) - Re: upgrage from 4.1.2 to 4.3.3+?
... > every available RPM for the distro...and there isn't one for PHP. ... > And also, I uh, don't believe I've ever recompiled Apache or PHP. ... Well - You could compile your own version of Apache and PHP and place it ... port number - By this I mean, whenever you visit a website, it defaults ... (comp.lang.php) - Re: HOWTO: FreeTDS for Newbies (almost complete)
... it still wouldn't compile properly. ... cool -- PHP provides 3 ways to load extensions dynamically. ... So I tried changing the comma "," in $server to a colon ":". ... learning how to compile Apache with all the proper modules enabled ... (comp.lang.php) - Re: HOWTO: FreeTDS for Newbies (almost complete)
... it still wouldn't compile properly. ... >above inside php.ini, or to use dlto the top of your php ... >learning how to compile Apache with all the proper modules enabled ... >* Or I'll need a .so that someone has made for PHP that enables SQL ... (comp.lang.php) - Re: php compile options
... On Friday 09 September 2005 11:13, the author Kevin Kinsey contributed to the ... Re: php compile options: ... When php5 is compiled from ports I understand a file is generated to ... Options expressed on the command line for php are normally in lower ... (freebsd-questions) |
|