On Fri, 2008-11-28 at 20:39 +0100, Per Jessen wrote: > Andrew Ballard wrote: > > >> XSL will only allow me to convert it into a different document > >> format, which is not what I want as I need to keep a local copy of > >> information in a database for searching and sorting purposes. Nathans > >> class allows me to have the entire document put into an array tree, > >> which is fine for what I need so far. > >> > >> > >> Ash > >> www.ashleysheridan.co.uk > > > > A bit over the top, but you could always use XSL to turn it into CSV. > > LOL > > > > Andrew > > Not over the top at all if your database understands CSV. I think it is > very odd that no-one else is advocating XSL in this case. Extracting > information from an XML file is just another way of converting it, > which is exactly what XSL is good at. I can't imagine how using a pile > of custom PHP code is going to be more efficient than writing a simple > XSL stylesheet according to recognised standards etc. Just my opinion > of course. > > > /Per Jessen, Zürich > > That would destroy the relationship of the data, as it id in no structure that would be easy to port to a CSV format. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php