Gents,
I have an issue with xmltask not processing an insert operation.
The ant task fragment I use looks like:
 
 <xmltask source="${codebase}/LogicalAttributes.xml" dest="${codebase}/LogicalAttributes.xml" outputter="default" encoding="UTF-8" indent="no" >
  <xmlcatalog refid="lidtd"/>
  <insert path="/LogicalAttributes/Class[position()=last()]" position="after">
   <![CDATA[
   <Class name="wt.enterprise.RevisionControlled">
    <Property>
     <LogicalForm>_IEObjPropsURL</LogicalForm>
     <ExternalForm>NPA|_IEObjPropsURL</ExternalForm>
    </Property>
    </Class>   
       ]]>
  </insert>
 </xmltask>
 
 
 The LogicalAttributes.xml file that looks like:
 
<?xml version="1.0" standalone="no"?>
<!DOCTYPE LogicalAttributes SYSTEM "/com/ptc/core/meta/common/impl/LogicalAttributes.dtd" >
<LogicalAttributes>
...
</LogicalAttributes>
The error message is:
 
  [xmltask] java.io.FileNotFoundException: \com\ptc\core\meta\common\impl\LogicalAttributes.dtd (The system cannot find the path specified)
  [xmltask]     at java.io.FileInputStream.open(Native Method)
  [xmltask]     at java.io.FileInputStream.<init>(FileInputStream.java:106)
  [xmltask]     at java.io.FileInputStream.<init>(FileInputStream.java:66)
  [xmltask]     at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:69)
  [xmltask]     at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:156)
  [xmltask]     at java.net.URL.openStream(URL.java:913)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromStream(XmlTask.java:348)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromFile(XmlTask.java:365)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.access$000(XmlTask.java:27)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask$InputFile.getDocument(XmlTask.java:209)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:548)
  [xmltask]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
  [xmltask]     at org.apache.tools.ant.Task.perform(Task.java:341)
  [xmltask]     at org.apache.tools.ant.Target.execute(Target.java:309)
  [xmltask]     at org.apache.tools.ant.Target.performTasks(Target.java:336)
  [xmltask]     at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
  [xmltask]     at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
  [xmltask]     at org.apache.tools.ant.Main.runBuild(Main.java:609)
  [xmltask]     at org.apache.tools.ant.Main.start(Main.java:196)
  [xmltask]     at org.apache.tools.ant.Main.main(Main.java:235)
 
I played around with <xmlcatalog> variations but couldn't find a way to solve my issue.
 
Any ideas?
 
Regards, Moritz