[jdom-interest] why "." not allowed in XML name (fwd)

Ching-Kuan Thum ckthum at newstakes.com
Mon Jul 17 08:31:56 PDT 2000


hi,

	I'm using JDOM beta 4.  I've used a xml element with name
"body.head" and got the following exception when I tried to create
Document object:

org.jdom.JDOMException: The name "body.head" is not legal for JDOM/XML
elements:
 . is not allowed in XML names..: The name "body.head" is not legal for
JDOM/XML
 elements: . is not allowed in XML names..
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:231)
        at org.jdom.input.SAXBuilder.build(SAXBuilder.java:323)

I have no problem with the DOM parser of xerces.  Is this JDOM specific
requirement ?

Thanks in advance.

Regards,
Thum





More information about the jdom-interest mailing list