FluidXML provides an easy way to import existing XML documents from a variety of formats.
The resulting object is a FluidXml instance filled with the XML of the imported document.
FluidXml
$xml = <<<XML
There was an error while loading. Please reload this page.