# insertNodes

Insert an xml fragment into other elements specified by an XPath expression. This operation is namespace aware.

Sample request:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.xservices.brutex.net">
       <soapenv:Header/>
       <soapenv:Body>
          <ws:insertNodes>
             <sourcexml><![CDATA[
             <books>
    			<author>
    				<name>Mensiok</name>
    				<surname>Bello</surname>
    			</author>
    			<author>
    				<name>Schwab</name>
    				<surname>Rumsau</surname>
    			</author>
    			<author>
    				<name>Dollibert</name>
    				<surname>Rach</surname>
    			</author>
             </books>
             ]]></sourcexml>
             <encoding>utf-8</encoding>
             <namespaceList>
                <!--Zero or more repetitions:-->
                <namespace>
                   <prefix></prefix>
                   <uri></uri>
                </namespace>
             </namespaceList>
             <xpath>/books/author</xpath>
             <!--Optional:-->
             <xmldata><![CDATA[<age namespace="http://btx"/>]]></xmldata>
          </ws:insertNodes>
       </soapenv:Body>
    </soapenv:Envelope>

Sample response:

    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:Body>
          <ns2:insertNodesResponse xmlns:ns2="http://ws.xservices.brutex.net">
             <return><![CDATA[<?xml version='1.0' encoding='UTF-8'?>
             <books>
    			<author>
    				<name>Mensiok</name>
    				<surname>Bello</surname>
    			<age namespace="http://btx"/></author>
    			<author>
    				<name>Schwab</name>
    				<surname>Rumsau</surname>
    			<age namespace="http://btx"/></author>
    			<author>
    				<name>Dollibert</name>
    				<surname>Rach</surname>
    			<age namespace="http://btx"/></author>
             </books>]]></!></return>
          </ns2:insertNodesResponse>
       </soap:Body>
    </soap:Envelope>