count() ) ) { $domElement = dom_import_simplexml( $node ); if ( ( $domElement instanceof \DOMElement ) && ( $domElement->hasChildNodes() ) ) { foreach ( $domElement->childNodes as $child ) { $innerXML .= $child->ownerDocument->saveXML( $child ); } } } return $innerXML; } }