[jdom-interest] I got a Problem with using Namespaces
Amy Lewis
amyzing at talsever.com
Mon May 28 11:39:15 PDT 2001
On Mon, May 28, 2001 at 12:19:04PM -0500, philip.nelson at omniresources.com wrote:
>put the xsi namespace declaration ahead of where it's used and I think
>you'll have it.
If that works, then either the parser or the SAXHandler is not
spec-compliant. Attributes do not have order, and namespace
declarations count (for a change) as attributes in this case. The
parser/builder has to accept the whole set of attributes, extract
namespaces first, then cope with the rest of the things (because
conceptually, namespaces are declared before their parent element)
(ain't it grand that XML is so easy to learn?)
>
>
>> -----Original Message-----
>> From: "Tobias Kämpf" [mailto:Tobias.Kaempf at web.de]
>> Sent: Monday, May 28, 2001 9:28 AM
>> To: jdom-interest at jdom.org; philip.nelson at omniresources.com
>> Subject: RE: [jdom-interest] I got a Problem with using Namespaces
>>
>>
>> Okay, I have downloaded the Files from CVS just a Moment ago
>> and build them with ant.
>> Then I made a Package of them and changed my Classpath.
>> I also use the SAXBuilder Class now, instead of the
>> DOMBuilder but the Error comes up again. Do you have any else
>> Reason why it doesn't work ? Maybe something with the XML Code ?
>>
>> Tobias
>>
>> philip.nelson at omniresources.com schrieb am 28.05.01:
>> > 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.
>> >
>> > > 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
>> _______________________________________________
>> To control your jdom-interest membership:
>>
>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
>t.com
>
>
>_______________________________________________________________________
>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@yourhost.com
--
Amelia A. Lewis alicorn at mindspring.com amyzing at talsever.com
How do you make a cat go moo? Ask it: "Does a dog have the Buddha-nature?"
More information about the jdom-interest
mailing list