easy!
$xml = simplexml_load_string($xmlstring, "SimpleXMLElement", LIBXML_NOCDATA);
$json = json_encode($xml);
$array = json_decode($json,TRUE);
More Related Contents:
- extract distinct tag value from xml file using php
- Save output in an xml file [closed]
- Search through XML using PHP [duplicate]
- How do you parse and process HTML/XML in PHP?
- PHP library for parsing XML with a colons in tag names? [duplicate]
- How to extract a node attribute from XML using PHP’s DOM Parser
- Is there any way to convert json to xml in PHP?
- How to check if string is a valid XML element name?
- How to write CDATA using SimpleXmlElement?
- Fix malformed XML in PHP before processing using DOMDocument functions
- Output raw XML using php
- How to convert SOAP response to PHP Array?
- Best way to process large XML in PHP [duplicate]
- PHP what is the best approach to using XML? Need to create and parse XML responses
- How to skip invalid characters in XML file using PHP
- How do you make strings “XML safe”?
- Using SimpleXML to load remote URL
- How to retrieve comments from within an XML Document in PHP
- PHP convert XML to JSON group when there is one child
- Getting node’s text in PHP DOM
- How to display XML in HTML in PHP?
- PHP, SimpleXML, decoding entities in CDATA
- PHP SimpleXML + Get Attribute
- PHP – Delete XML Element
- SimpleXML SOAP response Namespace issues
- How to get attribute of node with namespace using SimpleXML? [closed]
- Convert all node’s attributes into child nodes
- PHP exec() not returning error message in output
- How do I iterate through DOM elements in PHP?
- Sending XML data using HTTP POST with PHP