Subject: preserving ' and "
From: vcg <vdcheung@xxxxxxxxx>
Date: Thu, 16 Apr 2009 09:52:40 -0400
|
hihi all,
how can i preserve the ' and " entities?
of the five basic entities (< > & ' "), why does
' and " get resolved to ' and " respectively even when the
other ones are not resolved (i.e. when i set the XML output encoding
to "us-ascii").
my use case is i may need to wrap the entire XML by quotes or
apostrophes as a string, so any 'inner' quotes and apostrophes need to
be encoded/escaped.
thanks in advance!
-v
|