<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi folks,<br></div><div><br></div><div>No biggie, just a quirk.<br></div><div><br></div><div>tl;dr<br></div><div><br></div><div>I am using the "monty" version of XML that I understand is larger than the standard shipped XML...<br></div><div><br></div><div>on an XMLElement printString outputs unescaped output<br></div><div>while XMLString printString outputs escaped output<br></div><div><br></div><div><br></div><div>longer stream of consciousness at 3 a.m. version follows....</div><div><br></div><div>In my XTReams parsing project, I frequently get a mixture of XMLElements and XMLStrings as objects during the parsing callbacks.<br></div><div><br></div><div>I just noticed this oddity.<br></div><div><br></div><div>I have an XMLElement on a <span> tag. I inspect it and..<br></div><div><br></div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>self printString -->  '<span style="font-weight: bold">Commanders</span>'<br></div></blockquote><div>which, for readability reasons during development, I want,  as it is unescaped tags.<br></div><div><br></div><div>Later in the parse, I have an XMLString that includes the contents of that XMLElement as above<br></div><div>inspecting it its "self" is escaped xHTML ,which I would expect as it has to live with itself in xml universe.<br></div><div><br></div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>&amp;nbsp;&lt;span style="font-weight: bold"&gt;Commanders&lt;/span&gt;&lt;br&gt;<br></div></blockquote><div><br></div><div>its string is what I want for readability.<br></div><div><br></div><div><br></div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>'&nbsp;<span style="font-weight: bold">Commanders</span><br>'<br></div></blockquote><div>however...and as I type this, it is making sense that this behavior is correct, but since I have typed this long, I will keep typing...<br></div><div><br></div><div>however, when, like the XMLElement, I do a printString on it...<br></div><div><br></div><div><br></div><blockquote style="border: 1px solid rgb(204, 204, 204); padding: 7px; background-color: rgb(245, 245, 245);"><div>self printString -> '&amp;nbsp;&lt;span style="font-weight: bold"&gt;Commanders&lt;/span&gt;&lt;br&gt;'<br></div></blockquote><div><br></div><div>To summarize...<br></div><div>on an XMLElement printString outputs unescaped output<br></div><div>while XMLString printString outputs escaped output</div></div><br></body></html>