Right you are, Ken (vespa59) wrote,
Right you are, Ken
vespa59

On Vox: LazyVox - I don't know PHP.

What's the best way to parse XML in PHP? I've tried using DOMDocument(), but it's driving me up a fucking wall. The constructor doesn't seem to work as documented, and when I finally do get an object, using domxml_open_mem(string), the documented methods blow up. Hate hate hate hate.

If you're wondering what I'm doing, I just want to walk the items in this feed and pull out the value of the title node as well as the url attribute of the enclosure node. I was able to do it in Javascript using the browsers DOM parser, and would like an easy port.

Originally posted on pop.vox.com

Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 2 comments