Hello,
I
found these lines in the dom4j src dir for SaxReader.java
Pls
look at the comment section..It may pertain to ur problem...
/** <p>Reads a Document from the given
<code>File</code></p>
* * @param file is the <code>File</code> to read from. * @return the newly created Document instance * @throws DocumentException if an error occurs during parsing. * @throws MalformedURLException if a URL could not be made for the given File */ public Document read(File file) throws DocumentException, MalformedURLException { try { /* * We cannot convert the file to an URL because if the filename * contains '#' characters, there will be problems with the * URL in the InputSource (because a URL like * http://myhost.com/index#anchor is treated the same as * http://myhost.com/index) * Thanks to Christian Oetterli */ return read( new InputSource(new FileReader(file)) ); } catch (FileNotFoundException e) { throw new MalformedURLException(e.getMessage()); } } THanks,
Naveen
|
- [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