I am using the Confluence REST API to update the storage content of a page. I am using the node implementation of xmldom. Aftert I update my document and serialize to a string, xmlns="" is inserted by the serializer into all custom elements (example ac:structured-macro), causing validation to fail with the error
“Error parsing xhtml: Non-default namespace can not map to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents”
How can I get my document to pass validation? The module does not appear to provide a way to scrub the xmlns from the serialized document.