[jdom-interest] I got a Problem with using Namespaces
philip.nelson at omniresources.com
philip.nelson at omniresources.com
Mon May 28 06:14:13 PDT 2001
Sounds like you have an old version of JDOM. I *higly* recomend not using
DOMBuilder to build from a file. The only reason that option is still there
is a convienience for debugging the api. Use SAXBuilder instead.
> Hello, I am a Student in Germany and trying to use JDom for
> reading XML-Files and fill Java-Classes with the Information
> from the XML-File. Now I have a Problem when I get Code like :
>
> <root xsi:type="texttext"
> xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
> ...
> <element xsi:type="text"></element>
> ...
> </root>
>
> While reading the XML-File with DOMBuilder, I get
> "org.jdom.JDOMException: Error on Line 2 : undeclared Prefix
> xsi:type". I don't know what to do, or what I did wrong.
>
> If I change the XML-File, for Example xsi:type -> class or
> something, then my Program can read in all Information
> without any Exception.
>
> I hope someone can help me, or someone can say me where to
> look, because I found nothing in the JavaDoc about using
> Namespaces or how to read them from a File
>
> Thanks
> Tobias Kämpf
> ______________________________________________________________
> _________
> 1.000.000 DM gewinnen - kostenlos tippen -
http://millionenklick.web.de
IhrName at web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list