Dear members,
 
When I use xmltaks for removing a node, I have to use a temporal file in order to have the source file and destination file to be diferent file, why?, the following code work:
 
<copy file="${build.dir}/hibernate/mapping/queries.hbm.xml"
   tofile="${build.dir}/hibernate/mapping/queriesTmp.hbm.xml"/>
  <xmltask
   dest="${build.dir}/hibernate/mapping/queries.hbm.xml"
   >
   <fileset file="${build.dir}/hibernate/mapping/queriesTmp.hbm.xml"/>
   <remove path="hibernate-mapping/[EMAIL PROTECTED]'verifyPositions']"/>   
  </xmltask>
  <delete file="${build.dir}/hibernate/mapping/queriesTmp.hbm.xml"/>
 
so, I have to create a temporal file, now the queries.xml file doesn't have the node sql-query with name="verifyPositions", but the following doesn't work:
 
<xmltask>
   <fileset file="${build.dir}/hibernate/mapping/queries.hbm.xml"/>
   <remove path="hibernate-mapping/[EMAIL PROTECTED]'verifyPositions']"/>   
  </xmltask>
 
I am doing something wrong????
 
Thanks in advance,
 
David


Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min with Yahoo! Messenger with Voice.

Reply via email to