I have this XML file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAXML-MaintenanceRequest version="3.4" xmlns="http://www.naxml.org/POSBO/Vocabulary/2003-10-16">
<TransmissionHeader>
<StoreLocationID>AB123</StoreLocationID>
<VendorName>VeriFone</VendorName>
<VendorModelVersion>Commander Site Controller</VendorModelVersion>
</TransmissionHeader>
<ComboMaintenance>
<TableAction type="initialize"/>
<RecordAction type="addchange"/>
</ComboMaintenance>
</NAXML-MaintenanceRequest>
I would like to get here, simply removing the xmlns=""
on the NAXML-MaintenanceRequest
node:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAXML-MaintenanceRequest version="3.4">
<TransmissionHeader>
<StoreLocationID>AB123</StoreLocationID>
<VendorName>VeriFone</VendorName>
<VendorModelVersion>Commander Site Controller</VendorModelVersion>
</TransmissionHeader>
<ComboMaintenance>
<TableAction type="initialize"/>
<RecordAction type="addchange"/>
</ComboMaintenance>
</NAXML-MaintenanceRequest>
I've seen ways to remove the default namespace on other elements, but never the root node. Could someone point me to a resource/provide a snippet that simply takes off the default namespace on the root node?