Using simpleXML:
$xml = new SimpleXMLElement($xmlstr);
echo $xml->file['path']."\n";
Output:
http://www.thesite.com/download/eysjkss.zip
More Related Contents:
- Remove a child with a specific attribute, in SimpleXML for PHP
- Simplify PHP DOM XML parsing – how?
- Getting node’s text in PHP DOM
- Call to undefined method DOMDocument::getElementsByClassName() [duplicate]
- Printing content of a XML file using XML DOM
- How do I iterate through DOM elements in PHP?
- PHP XML inserting element after (or before) another element
- Loop dirs and write xml of content files in php [closed]
- How to echo every var more than $var? [closed]
- Grabbing the href attribute of an A element
- How to convert array to SimpleXML
- How do you parse and process HTML/XML in PHP?
- How to convert XML into array in PHP?
- Selecting a css class with xpath
- How to return outer html of DOMDocument?
- How do you parse and process HTML/XML in PHP?
- SimpleXML and print_r() – why is this empty?
- Is there any way to convert json to xml in PHP?
- Best way to transfer an array between PHP and Javascript [duplicate]
- Fix malformed XML in PHP before processing using DOMDocument functions
- preg_match(); – Unknown modifier ‘+’ [duplicate]
- Accessing @attribute from SimpleXML
- remove xml version tag when a xml is created in php
- Updating XML node with PHP
- PHP – Processing Invalid XML
- XML Parse Error – Extra content at the end of the document
- Using SimpleXML to create an XML object from scratch
- Get MySQL database output via PHP to XML
- How do I see the actual XML generated by PHP SOAP Client Class?
- Remove & from string when writing to xml in PHP