parse XML from URL (via SOAP)

Lots of places in WordPress use xml_parse including the Atom library, the XML-RPC Library that we use, and SimplePie

The oembed class uses SimpleXML.

The WordPress Importer and Jetpack actually use both (Jetpack for different things, and the importer tries to use SimpleXML and falls back if it doesn’t exist).

Basically, there’s nothing built into WordPress, it just uses what’s built into PHP. I personally like (and use) SimpleXML as long as the XML isn’t going to be too big (I mean really big), just because you can simply pass the whole XML string to it and get back an object you can work with.

Leave a Comment