Skip navigation
Currently Being Moderated

ASCII control characters in XML

Jul 30, 2012 8:45 PM

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.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points