Hi Brian (and all other list members),

[replying to my own mail since I can't find Brian's reply in my mail
box, only via the archives hosted at SourceForge]

yes, I'm aware that there's only one root node, but I just want
reinsert the filled buffer later on into a web.xml file, so in the end
there will be a "real" root node, just not in the intermediate insert
buffers.

So, if I conclude correctly, I have to create some kind of a "fake
root node" in my web-xml-includes.xml file(s) for the insert to work
and there's no way of telling <insert> something like "just ignore XML
well-formedness, I will take care of it myself"?

Thanks for clarification & kind regards,

    Holger

On Tue, 10 Aug 2010, Holger Rauch wrote:

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


--
=========================================
Holger Rauch
Entwicklung Anwendungs-Software
Systemadministration UNIX

Tel.: +49 / 9131 / 877 - 141
Fax: +49 / 9131 / 877 - 266
Email: holger.ra...@empic.de
=========================================

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