Dear Members,
I didn't know about xmlcatalog, please could you explain how to use this feature in combination with xmltask?
Thanks,
David
Brian Agnew <[EMAIL PROTECTED]> wrote:
Brian Agnew <[EMAIL PROTECTED]> wrote:
Additionally, if you're using the network to get your DTD (as you obviously are) then you can reference a local copy using Ant's <xmlcatalog> mechanism to point to a version stored on a file server. This removes the requirement to grab the DTD from across the web.
That would remove your proxy requirement below.
Brian
Maarten Coene wrote:David,
you can solve this by adding extra attributes to your xmltask:
<xmltask public="-//Hibernate/Hibernate Mapping DTD 3.0//EN"
system="http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
...
</xmltask>
regards,
Maarten
----- Original Message ----
From: David <[EMAIL PROTECTED]>
To: xmltask <xmltask-users@lists.sourceforge.net>
Sent: Monday, May 22, 2006 10:07:38 AM
Subject: [Xmltask-users] Problem on DOCTYPE specification (is deleted on generated xml file)
Dear members,I have realise that the generated xml output delete the DOCTYPE declaration on the xml node root definition.My original header is:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">but I get:<?xml version="1.0" encoding="UTF-8"?>I have tried adding the attribute: omitHeader ="false", with the same result. With such kind of Xml declaration, I have the following exception:java.net.UnknownHostException: hibernate.sourceforge.netbut such problem I have soled creating a depends with my setproxy target:<target name="setproxy" if="proxy.host">
<!--Proxy settings works only with a JDK 1.2 and higher.-->
<echo message="${message.setproxy}"/>
<setproxy proxyuser="${proxy.username}" proxyport="${proxy.port}"
proxypassword="${proxy.password}" proxyhost="${proxy.host}">
</setproxy>
</target>Do you have any idea abut this,Thanks,David
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.-- Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd brian @ oopsconsultancy.com Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.