The below is executing an XPath on a blank document. Try:
<insert path="/">
<![CDATA[
<test>
<test2/>
</test>
]]>
</insert>
or similar to construct a document from scratch.
Brian
> Hello,
>
> I've read the documentation and would like to create a new XML file.
>
> The documentation says:
> You can create a new document by not specifying a source file, and
> making the first instruction for <xmltask> an <insert> or <paste> with
> the appropriate root node (and any subnodes).
>
> I've tried several xpath expressions but I can't create any nodes.
>
> For example:
> <xmltask dest="test.xml" report="true">
> <insert path="/test/test2/text()" xml="namedBuffer" />
> </xmltask>
>
> Can someone give me a hint, please?
> Thank a lot.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Xmltask-users mailing list
> [email protected]
> 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
------------------------------------------------------------------------------
_______________________________________________
Xmltask-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltask-users