node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

Fix for xml processing instructions

Open Rojuinex opened this issue 8 years ago • 1 comments

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

Rojuinex avatar Jul 03 '16 05:07 Rojuinex