node-xml
node-xml copied to clipboard
Fix for xml processing instructions
As all XML processing instructions begin with a '?' in their name, I modified xml#format to use a '?' instead of a '/' when closing a tag. This also means that xml#addXmlDeclaration no longer needs to manually replace the trailing '/' for the xml declaration.
https://www.w3.org/TR/xml11/#sec-pi
Fixes #35