Skip to main content
Known Participant
July 31, 2012
Question

ASCII control characters in XML

  • July 31, 2012
  • 1 reply
  • 662 views

hi,guys

I want to export InDesign content to an XML file using javascript.

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.

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
July 31, 2012

You know there is an Indesign Scripting Forum, too?

http://forums.adobe.com/community/indesign/indesign_scripting