OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: Exporting XML with characters less than #x20

[ Lists Home | Date Index | Thread Index ]
  • From: Steve Harris <sharris@primus.com>
  • To: xml-dev@xml.org
  • Date: 09 Apr 2000 10:36:38 -0700

"Brian Fitzpatrick" <bmf@opentext.com> writes:

> How should characters less than #x20 (excluding #x9, #xA and #D) be handled
> in the output?

Another commonly-recommended approach is to Base64-encode the
character content, then tack on a sentinel attribute to the parent
element. Your consuming application then watches for this attribute
(you can limit the check to certain elements if you like) and decodes
any character content within such a marked element. It gets sticky
with mixed content, but we usually avoid that situation anyway.

There was even a brief discussion here about a "standard" attribute
("packed" or something?) that would indicate such an encoding, but
again I think it got dropped.

Steven E. Harris
Primus Knowledge Solutions, Inc.

This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS