MaikJaek / flying-saucer

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

XMLResource should allow parser customization #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*** This issue was imported from http://java.net/jira/browse/XHTMLRENDERER-204

It was reported by pdoubleya on 05.11.2007 21:51:38 +0100 and last updated in 
the previous bug tracker on 27.01.2008 17:59:43 +0100

Found in
Operating System: All
Platform: All
URL: <a 
href="https://xhtmlrenderer.dev.java.net/servlets/ReadMsg?list=dev&msgNo=3821">h
ttps://xhtmlrenderer.dev.java.net/servlets/ReadMsg?list=dev&msgNo=3821</a>

The priority for this issue at migration was Major.

Original description: 
Task is to open up XMLResource loading so that it isn't tied to our static
loading scheme.

From Joseph Foraci, by email: Hi, I'm using the tagsoup Parser as an XMLReader
for xhtmlrenderer.
Right now I plug it in using
"-Dxr.load.xml-reader=org.ccil.cowan.tagsoup.Parser" as described in the
user guide. However, looking at the code there doesn't seem a way to set
my own features/properties on the XMLReader since it's hidden by the
XMLResourceBuilder. And since there is no way to subclass XMLResource I
can't implement my own way of reading a resource for
UserAgentCallback.getXMLResource().

Original issue reported on code.google.com by pdoubl...@gmail.com on 16 Feb 2011 at 9:55

GoogleCodeExporter commented 8 years ago
pdoubleya wrote on 27.01.2008 17:59:43 +0100:
Need to review calls to static methods on XMLResource. There's no real
justification for them to be static, was just a design decision at the time to
make using them easier.

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:55