ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <ddevie...@gmail.com>
Subject Re: Getting NAMESPACE_ERR using echoxml
Date Tue, 03 Feb 2009 18:59:44 GMT
On Tue, Feb 3, 2009 at 11:05 AM, Jacopo Cappellato
<jacopo.cappellato@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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message