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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.