- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
- dom_import_simplexml: documentation ( source)
<?php
$fc = simplexml_load_string('<QRY_A19 xmlns="urn:hl7-org:v2xml"></QRY_A19>','SimpleXMLElement', LIBXML_NOCDATA);
$domrequest = dom_import_simplexml($fc);
$xml = $c->asXML();
print_r($xml);