Erikhht / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

XMLUtil.documentFronString fails with FileNotFoundException #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Execute XMLUtil.documentFromString("<html><body>dummy 
contents</body></html>") and you will get a FileNotFoundException.

What is the expected output? What do you see instead?
The expected output is a loaded DOM Document, but I receive and exception.

What version of the product are you using? On what operating system?
R8.  Windows Xp, Windows 7, Mac 10.5 and Mac 10.6.

Please provide any additional information below.
The patch (attached) wraps the supplied content in a StringReader, which is 
necessary when passing it to an InputSource, lest the InputSource attempt to 
use the String to load a File with the specified system ID.

Original issue reported on code.google.com by karlgsch...@gmail.com on 10 Aug 2010 at 8:22

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks.  Fixed in f17a412f.

Original comment by Peter.Br...@gmail.com on 15 Sep 2010 at 2:19