xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: luca <luca AT lavabit.com>
- To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] dtd file 'into' a jar
- Date: Sun, 30 Aug 2009 10:27:01 +0200
Peter Taylor wrote:
To do this you with need a custom:
http://java.sun.com/javase/6/docs/api/org/xml/sax/EntityResolver.html
That can then be set on:
http://java.sun.com/javase/6/docs/api/org/xml/sax/XMLReader.html
#setEntityResolver(org.xml.sax.EntityResolver)
and subsequently passed into:
http://xom.nu/apidocs/nu/xom/Builder.html
#Builder(org.xml.sax.XMLReader, boolean)
Note:
As you are probably already aware, you'll need to get the dtd from inside the
jar using the same technique as the fetching the other resources, i.e. using:
http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html
#getResourceAsStream(java.lang.String)
Thank you, I'll check it out
Regards,
Peter T
-
[XOM-interest] dtd file 'into' a jar,
luca, 08/28/2009
-
Re: [XOM-interest] dtd file 'into' a jar,
Peter Taylor, 08/29/2009
- Re: [XOM-interest] dtd file 'into' a jar, luca, 08/30/2009
-
Re: [XOM-interest] dtd file 'into' a jar,
Peter Taylor, 08/29/2009
Archive powered by MHonArc 2.6.24.