ankit chowdhury <ankit.chowdhury@...> writes: > > I am facing the same issue where i am getting <xmltask> subtasks failed to > find matches ..error . > My xml task is below . > > <xmltask source="ejb-jar.xml" dest="ex1-ejb-jar.xml" failWithoutMatch="true"> > <insert path="//*[local-name()='ejb-jar']/enterprise-beans/message- driven > [last()]" position ="after" file="templateGenEjb_jar.xml"/> > </xmltask> > Ejb-jar.xml has this namespace in the begining . > <ejb-jar id="EjbModule_1" version="2.1" > 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/ > <http://java.sun.com/xml/ns/j2ee> > > if i make it as <ejb-jar id="EjbModule_1" version="2.1" > this works. > The suggestion beolw didnt work . > > ----------------------------------------------------------------------------- - > 10 Tips for Better Server Consolidation > Server virtualization is being driven by many needs. > But none more important than the need to reduce IT complexity > while improving strategic productivity. Learn More! > http://www.accelacomm.com/jaw/sdnl/114/51507609/ >
Thanx Hi , I tried path="//*[name()='message-driven'][last()]" .. as path and this worked . I wanted to insert after last 'message-driven' . But wen i am trin to update ejb-jar-bnd.xmi and am getting Failed to add text to insert/paste <xmltask source="ejb-jar-bnd.xmi" dest="dest_ejb-jar-bnd.xmi" failWithoutMatch="true"> <insert path="//*[name()='ejbBindings'][last()]" position ="after" file="templateejb-jar-bnd.xmi"/> </xmltask> Is there any other way to update xmi as this doesnt have anme spacee or <?xml version="1.0" encoding="UTF-8"?> tag on top . ------------------------------------------------------------------------------ 10 Tips for Better Server Consolidation Server virtualization is being driven by many needs. But none more important than the need to reduce IT complexity while improving strategic productivity. Learn More! http://www.accelacomm.com/jaw/sdnl/114/51507609/ _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users