But, based on the error, it sounds like you have an xml file that does not have a high level root element. IE may not care if there is a root element.
Based on the error you might have a document that looks like this:
<level2> <!-- blah blah --> </level2> <level2> <!-- blah blah --> </level2>
It may look like well formed xml, but there is no root element like this:
<top> <level2> <!-- blah blah --> </level2> <level2> <!-- blah blah --> </level2> </top>
More info appreciated.
Thanks, Dave
David Thielen wrote:
Hi;
I am getting the following error on well formed xml (for a final check I read the xml file with Internet Explorer and it is happy with it). Any ideas?
thanks - dave
Exception occurred: org.dom4j.DocumentException: Error on line 1 of document : Document root element is missing. Nested exception: Document root element is missing.
org.dom4j.DocumentException: Error on line 1 of document : Document root element is missing. Nested exception: Document root element is missing.
--
+------------------------------------------------------------+ | David Lucas mailto:[EMAIL PROTECTED] | | Lucas Software Engineering, Inc. (740) 964-6248 Voice | | Unix,Java,C++,CORBA,XML,EJB (614) 668-4020 Mobile | | Middleware,Frameworks (888) 866-4728 Fax/Msg | +------------------------------------------------------------+ | GPS Location: 40.0150 deg Lat, -82.6378 deg Long | | IMHC: "Jesus Christ is the way, the truth, and the life." | | IMHC: "I know where I am; I know where I'm going." <>< | +------------------------------------------------------------+
Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt IMHO="in my humble opinion" IMHC="in my humble conviction" All trademarks above are those of their respective owners.
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user