>   What it sounds like from the error is that you haven't closed a tag
> properly - have you checked line 76481 of your document ?

Actually, there still were bad character in tag names... The file was
generated by Access, but in a very bad way.
And as it was quite big, I couldn't reach the line in UltraEdit. 
Now it seems to work.
Thanks.

Jean-Marie Tinghir

 

> JM Tinghir wrote:
> > Hi,
> >
> > I've got a problem while trying to read an XML file with Dom4J :
> >
> >       SAXReader reader = new SAXReader();
> >       Document phenixDoc = null;
> >       try {
> >               phenixDoc = reader.read(file);
> >       }
> >       catch (DocumentException e) {
> >               e.printStackTrace();
> >       }
> >
> > This throws :
> >
> > org.dom4j.DocumentException: Error on line 76481 of document
> > file:///D:/tickets.xml : Expected "</Criticite>" to terminate element
> > starting on line 76 481.
> > Nested exception: Expected "</Criticite>" to terminate element
> > starting on line 76 481.
> >
> >
> > As my XML file is very big (35 Mb) I was wondering if SAXReader could
> > handle such documents or if the problem is somewhere else.
> >
> > Thanks,
> >
> > Jean-Marie Tinghir
> >
> >
>


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to