Two answers to two questions follow.


1) As for documentation with the previous by PRamod, take a look at: Guide: http://www.dom4j.org/guide.html FAQ: http://www.dom4j.org/faq.html JavaDoc: http://www.dom4j.org/apidocs/index.html Download: http://sourceforge.net/project/showfiles.php?group_id=16035

From the download page you can obtain the binary and source for either Zip or Tar/Gzip format. Inside the file you can obtain the documentation for javadoc in the directory dom4j-1.4/doc/javadoc .

2) As for this "weird" error that only happens on one machine, I would want more specifics like the xml file being processed, the code being used to process it, the machine type (CPU, memory, Disks size/free/used,etc) and the OS (win95,win98,NT,w2k,XP,Linux,etc).

The problem sounds like a classpath issue (similar to a PATH issue). My guess is to send us your Environment CLASSPATH setting as well. In it you may find a different XML parser being picked up instead of the one you expect. If you are using JDK 1.4 it may be an issue with endorsed jar files being used over the ones you are using. Anything is possible.

To avoid sending too much data to the list, you can send it direct to me if you would like. But it definately sounds like one machine has a different CLASSPATH or JDK configuration.

At least that is my two cents. Anyone else have ideas?

Let me know.
Dave



David Thielen wrote:
It's weirder than that - it works on every system but 1. On that one system
we get this error.

Any ideas?

thanks - dave



----- Original Message -----
From: "David D. Lucas" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 19, 2003 12:48 PM
Subject: Re: [dom4j-user] Document root element is missing - but it isn't!



If your XML file is not very big or if you can simplify the xml to a few
lines that still creates the error, please give us some more info to go

on.


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






--

+------------------------------------------------------------+
| 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 is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to