SV: [jdom-interest] How do you do it in JDOM?
Per Norrman
pernorrman at telia.com
Tue Feb 17 06:04:38 PST 2004
Hi,
make sure that this attribute reports the correct namespace uri:
http://www.w3.org/XML/1998/namespace
/pmn
> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org] För Chris B.
> Skickat: den 17 februari 2004 13:58
> Till: jdom-interest at jdom.org
> Ämne: Re: [jdom-interest] How do you do it in JDOM?
>
>
> Ok, so I override createParser() in SAXBuilder so that I can
> use my own
> custom XMLReader.
>
> The trouble is, my XML reader creates XML elements that contain the
> attribute xml:space="preserve".
>
> And I get the error....
>
> ER org.jdom.IllegalNameException: The name "xml" is not legal for
> JDOM/XML Namespace prefixs: Namespace prefixes cannot begin
> with "xml"
> in any combination of case.
> ER at org.jdom.Namespace.getNamespace(Namespace.java:154)
> ER at org.jdom.input.SAXHandler.startElement(SAXHandler.java:511)
>
> Should this be regarded as a bug in JDOM?
>
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
More information about the jdom-interest
mailing list