SV: SV: SV: [jdom-interest] How do you do it in JDOM?

Per Norrman pernorrman at telia.com
Tue Feb 17 15:22:08 PST 2004


Ok,

Xerces and Crimson reports the namespace URI for the xml prefix.
JDOM checks that the namespace URI really is the correct URI, and
barfs if not. XOM (Elliotte's API*) just ignores the namspace URI
for the xml prefix (at least that's the impression I get from code),
so your stuff would probably work there. And I believe DOM4J does the 
same (i.e. igonres the URI).

Who's right? Don't know. But the path of least resistance is to just
add the namespace URI in your XMLReader implementation.

/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 16:22
> Till: Per Norrman
> Kopia: jdom-interest at jdom.org
> Ämne: Re: SV: SV: [jdom-interest] How do you do it in JDOM?
> 
> 
> 
> It's also not intuitive to me why if I generate XML from my 
> XMLReader, 
> write it to a file, then read it in JDOM, there is no 
> complaints. But if 
> I plug the XMLReader straight into JDOM, it complains about 
> xml:space. 
> Why is it different?
> 
> 
> _______________________________________________
> 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