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?
 
Billy Ng

Reply via email to