I have the following xml snippet:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
"http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="reports">
<typeAlias alias="Header" type="VerificationVO"/>
</sqlMap>
While trying to parse this xml using:
def sqlMapOld = new XmlParser().parse(file)
I get the following error:
Exception thrown: Connection refused: connect
java.net.ConnectException: Connection refused: connect
This error goes away if I remove the DOCTYPE from the xml snippet. Is there a way to stop groovy script from trying to connect to the URL?