Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Using PHP to parse specific XML tag content?

From: Mechphisto <mechphisto@-----.--->
To: NULL
Date: 12/3/2008 7:26:00 AM
On Dec 2, 9:30=A0am, Martin Honnen <mahotr...@yahoo.de> wrote:
> Mechphisto wrote:
> > I'm trying to write aPHPscript that will grab the info from an XML
> > file, and parse and sort the data into their own variables.
> > Can someone point me a direction for information?
> > Here's what I have so far. The following script will grab ALL data in
> > the file and simply make each one bold and separated by a break.
> > I want to be able to dump the contents of message1 into say $data1 and
> > message2 into $data2, etc.
> > Does that make sense?
>
> Have you considered to use SimpleXml or DOM instead? Those APIs allow
> you to work with XML at a higher level than the xml_parser API.
>

Thanks, but unfortunately, I'm on a shared server host and don't have
control over
what libraries can be installed into PHP. So, I'm kind of stuck with
whatever solution is default built-in PHP5.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent