Hi,
I've looked through everything that I can find and can't seem to come up
with a solution to this issue.
I'm running a jsp within Resin 2.0 containing the following code with the
dom4j-full.jar in the WEB-INF/lib directory:
SAXReader reader = new SAXReader();
Document doc = reader.read(new File(ENGLISH_STAGING_FILE));
Now ENGLISH_STAGING_FILE is
"T:\\Dev\\WORKAREA\\britchie_wa\\xml\\english\\content\\publishing.xml"
which exists and is readable just fine, as well as being perfectly valid
xml.
DOM4J however just doesn't seem to like this, and throws the following
error:
org.dom4j.DocumentException:
T:\Dev\WORKAREA\britchie_wa\xml\english\content\publishing.xml:1:
XML file has no top-element. All well-formed XML files have a single
top-level
element. Nested exception:
T:\Dev\WORKAREA\britchie_wa\xml\english\content\publishing.xml:1:
XML file has no top-element. All well-formed XML files have a single
top-level
element.
at org.dom4j.io.SAXReader.read(SAXReader.java:321)
at org.dom4j.io.SAXReader.read(SAXReader.java:219)
at
_publishingmenu__jsp._jspService(C:\a_htdocs\publishinginterface\publishingM
enu.jsp:25)
<snip resin portion of stack trace>
Now this is utter bull, the file is fine and can be read just fine by JDOM
(which I was previously using) as well as syntatically correct according to
xml spy.
Anyone have any ideas as to what the problem could be?
Regards,
Bruce Ritchie
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user