Jump to content

Help needed to parse some tricky XML


digitalformula

Recommended Posts

Hi all,

 

I'm looking for some help in parsing an XML file from geocaching.com.  It's pretty far beyond me as I've never tried parsing XML like using PHP before (although I'm OK at PHP in a general sense).

 

Ideally I'm looking to be able to query every element in this file (attached, renamed to .txt - was originally .gpx) so that I can do stuff with it.  I don't need to update the file, just read it and create a UI from the contents.  Should I use SimpleXMLElement, xml_parser or something else?  The structure of the file isn't something I've encountered before because of the <groundspeak:log> formatted elements.  I'm only used to relatively simple XML files with the colon-separate bits.

 

Can anyone help?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/226513-help-needed-to-parse-some-tricky-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.