The problem is, except for TAB, LF, and CR the control characters (those below ASCII 32) are not allowed in well-formed XML and any parser worth its salt will puke.
Adobe (mis)uses some ASCII control characters for their own purposes; e.g. "End nested format here" becomes ASCII 3 (ETX - end of text).
Now how can i export the well-formed XML?
Although i can replace these characters, but i don't know what should i replace it to correctly, and can be used it correctly in my web page.
You know there is an Indesign Scripting Forum, too?