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
    

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
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

Reply via email to