[jdom-interest] SAXBuilder build error

michael salmon ms at speakeasy.org
Tue Dec 12 19:28:51 PST 2000


on a related note:
I think it would be more appropriate if the exception message reported more 
precisly the true missing closing-tag "</Sites>" rather then "</LookupData>". 
It's probable that this is a bug in the parser you're using though and not 
JDOM itself. Of course the xml was invalid too ;-)

cheers,
ms

On Tuesday 12 December 2000 19:24, you wrote:
> Looks more like you're missing </Sites> to me.
>
> BTW, now would be a good time for me to restate that all potential bug
> reports should provide a JDOM version against which the bug was found.
> And if that version is older than a week or so, I'd strongly recommend
> trying again with the latest snapshot.  Might be your bug's fixed
> already.
>
> -jh-
>
> "Neuman, Ben" wrote:
> > I am trying to build a document using SaxBuilder and a String...
> >
> > SAXBuilder builder = new SAXBuilder();
> > Document doc = builder.build(docString);
> >
> > where docString=
> > <?xml version='1.0'?>
> >   <LookupData>
> >   -1<Sites>
> >     <Site Name="10000000001001">
> >     </Site>
> >     <Site Name="10000000001002">
> >     </Site>
> >     <Site Name="10000000001003">
> >     </Site>
> > </LookupData>
> >
> > I get a JDOMException stating that </LookupData> is not found.
> > Any help would be greatly appreciated.
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@your
> >host.com
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourho
>st.com



More information about the jdom-interest mailing list