skip to Main Content

Using PHP SimpleXML to access non-default namespace element attributes

I have some annoying XML from an API response that looks like: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><report><QueryResult> <ResumptionToken>123456</ResumptionToken> <IsFinished>true</IsFinished> <ResultXml> <rowset xmlns="urn:schemas-microsoft-com:xml-analysis:rowset"> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:saw-sql="urn:saw-sql" targetNamespace="urn:schemas-microsoft-com:xml-analysis:rowset"> <xsd:complexType name="Row"> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="1" name="Column0" saw-sql:aggregationRule="none" saw-sql:aggregationType="nonAgg" saw-sql:columnHeading="0" saw-sql:displayFormula="0" saw-sql:length="4" saw-sql:precision="12" saw-sql:scale="0" saw-sql:tableHeading=""…

VIEW QUESTION

Search Value In Object PHP

I want to search title in this object and if find the title get link: array(1) { ["item"]=> array(13892) { [0]=> object(SimpleXMLElement)#2 (6) { ["part"]=> string(1) "0" ["search"]=> string(15) "Superfrog Disk1" ["rom_console"]=> string(1) "6" ["title"]=> string(107) "<span class="iconochive-Uplevel" title="Parent Directory"…

VIEW QUESTION
Back To Top
Search