I&#039;m collecting data from a form, and trying to create from it an xml document. I&#039;m using this code:<BR>set xmlDoc = server.createobject("msxml2.DOMDocument.4.0")<BR>x mlDoc.async= false<BR>xmlDoc.validateOnParse = true<BR>xmlDoc.resolveExternals = False<BR>xmlDoc.preserveWhiteSpace = True<BR>Set node = xmlDoc.createProcessingInstruction("xml", "version=&#039;1.0&#039; encoding=&#039;windows-1255&#039;")<BR> xmlDoc.appendChild node<BR>Set node = Nothing<BR>--------------------------<BR><BR>for some reason it gives me an error whenever non-english text is typed in (arabic & hebrew).<BR>The error i get when hebrew is typed in is:<BR>"An invalid character was found in text content."<BR><BR>Also, the encoding directive that I&#039;ve added doesn&#039;t work.<BR><BR>Does anybody know how to solve these two issues: first to accept arabic and hebrew, and te second to add the encoding directive.<BR><BR>Thanks<BR>