3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xmlstr = " <employee> <employeename>test</employeename> <employeeaddress>test123</employeeaddress> <SSN>12343456</SSN> <company>TOPXML</company> </employee> "; $dom = new \DOMDocument; $dom->loadXML($xmlstr); $dom->firstChild->normalize(); echo $dom->C14N(); ?>
based on QOf60
Output for 5.6.38 - 7.3.0rc3
<employee> <employeename>test</employeename> <employeeaddress>test123</employeeaddress> <SSN>12343456</SSN> <company>TOPXML</company> </employee>