Hi
folks,
When I try to use Dom4j to read the file with "#"
in the path, it will throw the following exception.
org.dom4j.DocumentException: Error on line 1 of
document file:/C:/Program Files/../../../#l/settings.xml:
Content is not allowed in prolog. Nested exception: Content is not allowed in
prolog.
at org.dom4j.io.SAXReader.read(SAXReader.java:339) at org.dom4j.io.SAXReader.read(SAXReader.java:218) The exception says "Content is not allowed in
prolog", but I am sure everything is legal in the xml. It works if I
change the "#" to a letter in the path.
Why?
|
- [dom4j-user] Content is not allowed in prolog Billy Ng
- RE: [dom4j-user] Content is not allowed in prolog Naveen Murthy
- [dom4j-user] Content is not allowed in prolog Garima Singh