function SimpleXMLElement_innerXML($xml)
{
$innerXML= '';
foreach (dom_import_simplexml($xml)->childNodes as $child)
{
$innerXML .= $child->ownerDocument->saveXML( $child );
}
return $innerXML;
};
More Related Contents:
- How to convert array to SimpleXML
- Accessing @attribute from SimpleXML
- SimpleXML: Selecting Elements Which Have A Certain Attribute Value
- How to use XMLReader in PHP?
- PHP simpleXML how to save the file in a formatted way?
- parse an XML with SimpleXML which has multiple namespaces [duplicate]
- Error: “Input is not proper UTF-8, indicate encoding !” using PHP’s simplexml_load_string
- SimpleXML and print_r() – why is this empty?
- How can I set text value of SimpleXmlElement without using its parent?
- What’s the difference between PHP’s DOM and SimpleXML extensions?
- Using SimpleXML to read RSS feed
- Accessing @attribute from SimpleXML
- ‘xmlParseEntityRef: no name’ warnings while loading xml into a php file
- Updating XML node with PHP
- PHP – Processing Invalid XML
- How to Paginate lines in a foreach loop with PHP
- Loop through an XML object with SimpleXML
- Using SimpleXML to create an XML object from scratch
- simplexml error handling php
- PHP SimpleXML Namespace Problem
- php SimpleXML check if a child exists
- PHP get values from SimpleXMLElement array
- edit XML with simpleXML
- converting SOAP XML response to a PHP object or array
- How do you rename a tag in SimpleXML through a DOM object?
- Format output of $SimpleXML->asXML(); [duplicate]
- adding a namespace when using SimpleXMLElement
- “At sign” @ in SimpleXML object?
- simple xml add namespaced child
- How to import XML string in a php DOMDocument