It looks like you're trying to insert multiple root nodes into a buffer. Unfortunately you can't do that (XML has only one root node).
Brian > Hi, > > I've got the following problem when using XMLTask 1.16 in conjunction > with Ant 1.7.1. Here's the error message I get from the Ant invocation > of the <xmltask>/<insert> combo mentioned below: > > [xmltask] org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt > was made to insert a node where it is not permitted. > > <xmltask destbuffer="web.xml.includes.buff" > omitHeader="yes"> > <insert path="/" > file="${basedir}/../central-suite/script/web-xml-includes.xml" > expandProperties="true" /> > </xmltask> > <!-- For (temporary) debugging purposes --> > <xmltask> > <print buffer="web.xml.includes.buff" > comment="*=*=* Contents of buffer web.xml.includes.buff *=*=*=" > /> > </xmltask> > > The referenced web-xml-includes.xml file whose contents are supposed > to be pasted into the empty buffer contains: > > <ejb-ref> > <ejb-ref-name>PrintTemplateManager</ejb-ref-name> > <ejb-ref-type>Session</ejb-ref-type> > <remote>my.path.to.PrintTemplateManager</remote> > </ejb-ref> > <ejb-ref> > <ejb-ref-name>MyTemplateManager</ejb-ref-name> > <ejb-ref-type>Session</ejb-ref-type> > <remote>a.different.path.to.MyTemplateManager</remote> > </ejb-ref> > > (I need to be able to <insert> multiple <ejb-ref> fragments from the > same input file.) What am I doing wrong and how can I get rid of this > error? > > Thanks in advance for any help! > > Kind regards, > > Holger > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > 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 ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Xmltask-users mailing list Xmltask-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xmltask-users