Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Text - Character not allowed in XML Content

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Daed Lee" <daed.lee AT gmail.com>
  • To: "Diego Campo" <diego.campo AT properazzi.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Text - Character not allowed in XML Content
  • Date: Fri, 7 Mar 2008 10:44:41 -0500

0x3 is the ETX character. Where in the spec did you see that this is legal?

A quick search reveals:

http://www.sklar.com/blog/archives/96-XML-vs.-Control-Characters.html


On Fri, Mar 7, 2008 at 7:41 AM, Diego Campo <diego.campo AT properazzi.com>
wrote:
> Hi,
>
> According to the XML spec., this character is legal, so I'm not
> filtering it beforehand. But I'm finding this:
>
> Exception in thread "Worker0" nu.xom.IllegalCharacterDataException: 0x3
> is not allowed in XML content
> at
> nu.xom.Verifier.throwIllegalCharacterDataException(Verifier.java:154)
> at nu.xom.Verifier.checkPCDATA(Verifier.java:205)
> at nu.xom.Text._setValue(Text.java:126)
> at nu.xom.Text.<init>(Text.java:62)
>
> Cheers
> Diego
>
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>




Archive powered by MHonArc 2.6.24.

Top of Page