See the FAQ at the bottom of the XMLTask web page. Basically you need to specify the local-name of each element (i.e. prefix with a colon)
Brian > Hi, > > I want to modify a default web.xml file. > > Following does not work: > > <xmltask source="E:\Data\...web.xml" dest="E:\..\web2.xml"> > <replace path="web-app/display-name/text()" withText="${context}"/> > </xmltask> > > It does work when I change in the web.xml file the : > > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > to > > <web-app > (so remove namespace settings) > > How can I solve this so I do not need to remove the namespace setting ? > > Regards, > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. > http://p.sf.net/sfu/bobj-july_______________________________________________ > Xmltask-users mailing list > Xmltask-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xmltask-users > -- Brian Agnew http://www.oopsconsultancy.com OOPS Consultancy Ltd Tel: +44 (0)7720 397526 Fax: +44 (0)20 8682 0012 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users