[jdom-interest] Not legal JDOM characters?

Dave Byrne dave-lists at intelligentendeavors.com
Mon Aug 23 11:18:50 PDT 2004


When parsing a document that contains MathML, JDOM throws an
IllegalDataException when it encounters 𝒥. A quick character search
on zvon.org shows that this character is legal to have in XML documents,
just not in names of attributes and elements.

Why does JDOM choke on SAXBuilder.build() when encountering this char?  Is
there a work-around of some sort to be able to parse the document with JDOM?

Below is the message thrown, and an example xml doc that will trigger it.

Thanks
Dave Byrne


The data "?" is not legal for a JDOM character content: 0xd835 is not a
legal XML character.

<?xml version="1.0" encoding="UTF-8"?>
<foo>
	<bar>&#x1d4a5;</bar>
</foo>




More information about the jdom-interest mailing list