ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Adams" <kad...@gfs.com>
Subject Re: Adding XMLCatalog support
Date Thu, 26 Sep 2002 14:15:57 GMT
Thanks - this caught my (simple/stupid) error.  I just needed to set the
EntityResolver two lines later in my code:

DocumentBuilder db = null;
try {
  db = dbf.newDocumentBuilder();
  db.setEntityResolver(xmlCatalog);

instead of:

DocumentBuilder db = null;
db.setEntityResolver(xmlCatalog);
try {
  db = dbf.newDocumentBuilder();

Kyle

>>> dion@multitask.com.au 09/24/02 11:03AM >>>
> // Step 1: create a DocumentBuilderFactory and configure it
> DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
>
> // Step 2: create a DocumentBuilder that satisfies the constraints
> // specified by the DocumentBuilderFactory
> DocumentBuilder db = null;
> db.setEntityResolver(xmlCatalog);

In step 2, before using db, set it to something other than null......

--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au 
Developers: http://adslgateway.multitask.com.au/developers 


--
To unsubscribe, e-mail:  
<mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:ant-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message