On Tue, Feb 3, 2009 at 11:05 AM, Jacopo Cappellato
<jacopo.cappell...@hotwaxmedia.com> wrote:
> I am trying to run the following task:
> <echoxml file="someFile.xml">
>        <ofbiz-component name="${component-name}"
>                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>
>  
> xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd";>
>        </ofbiz-component>
> </echoxml>
>
> But when I run the ant target that contains it I get the following error:
>
> org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or
> change an object in a way which is incorrect with regard to namespaces.
>
> If I remove the string:
> xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd";
> then everything works fine.
>
> Am I doing something wrong? Or is there a workaround for this?

What are you trying to achieve? Have the XML file echo'd contain the
xsi:noNSL attribute in its top level <ofbiz-component>? I don't think
<echoxml> supports that, although I could be wrong, it's been a while
I tried to use it. --DD

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to