Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Is XML Text or CDATA that includes the zero character legal?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Is XML Text or CDATA that includes the zero character legal?
  • Date: Thu, 28 Jul 2005 01:15:06 -0700

Is it legal to have XML Text or CDATA that includes the zero character?
For example, is this legal?

char c = (char)0;
new Text(String.valueOf(c));

XOM's Verifier seems to say it's legal, whereas the Xerces and Saxon method XMLChar.isContent() suggest it's not legal.

Further, am I right in that a zero character must not appear in a surrogate?

Any advice or clarification? Thanks,
Wolfgang.




Archive powered by MHonArc 2.6.24.

Top of Page