Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Using PHP to parse specific XML tag content? >Thread Next - Re: Using PHP to parse specific XML tag content? Re: Using PHP to parse specific XML tag content?To: NULL Date: 12/2/2008 4:31:00 PM Mechphisto wrote: > I'm trying to write a PHP script 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. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
