Not sure whether it is of any importance, because it seems zXMLSerializer class is not used in the library, but there are minor errors in its code:
1. Misprints in code for comments (nodeType == 8) and processing instructions (nodeType == 7) nodes:
should be
2. Code for processing instructions nodes serialization doesn't take into account target (or name) of processing instruction:
Code:
sXml = "<?" + oNode.nodevalue + "?>";
should be
Code:
sXml = "<?" + oNode.target + " " + oNode.nodeValue + "?>";
Alexei Gorkov