Re: Parsing XML

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

 



On Fri, 2008-11-28 at 13:14 +0100, Per Jessen wrote:
> Ashley Sheridan wrote:
> 
> > On Fri, 2008-11-28 at 10:15 +0100, Per Jessen wrote:
> >> Ashley Sheridan wrote:
> >> 
> >> > Do any of you have a copy of this extension, or failing that, a
> >> > suggestion of how I can parse XML files without having to install
> >> > anything on the remote server, as I do not have that level off
> >> > access to it.
> >> 
> >> Parsing XML is best done with XSL - if that's out of the question,
> >> you're in for a difficult time.
> >> 
> >> 
> >> /Per Jessen, Zürich
> >> 
> >> 
> > 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.
> 
> That's cool, but XSL is still the more appropriate tool IMO.  It does
> exactly what you need - it parses and validates the XML document,
> allows you to extract the bits you need and in virtually any format you
> need - which could be a text document with SQL statements for piping to
> mysql. 
> 
> 
> /Per Jessen, Zürich
> 
> 
Possibly, but I wouldn't want to trust the end content in such a way;
I'd like to check out the values first. All-in-all, I think XSL is not
the right tool for the job in this case, but it is A way of doing it. 


Ash
www.ashleysheridan.co.uk


-- 
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