Re: Working with XML: DomDocument or SimpleXML?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-09-20 at 20:34 +0100, Colin Guthrie wrote:
> Hi,
> 
> Just wondering what people's general opinion is on working with XML in PHP?
> 
> I like working with SimpleXML but DomDocument seems more useful in some
> cases (e.g. working with XSLT transforms etc.).
> 
> So what do you thing? Or do would you simply create a few utility
> classes to handle conversions?
> 
> I have written a utility class myself that represents XML internall in
> either DomDocument, SimpleXML or String format and allows you to access
> it any of the three which means you can just pass XML "object" around
> and use it accordingly depending on the circumstances.
> 
> I'd be interested to hear other peoples thoughts on the matter tho'.

I still use PHP4 so I wrote my own XML handling class that wraps the
xml_xxx() series of functions. Haven't had a problem with it. Makes
working with XML very easy since it uses a path string syntax to
focus/access nodes and attributes:

    http://www.interjinn.com/jinnDoc/interJinn.class.JinnSimpleXml.phtml

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux