ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacopo Cappellato <jacopo.cappell...@hotwaxmedia.com>
Subject Getting NAMESPACE_ERR using echoxml
Date Tue, 03 Feb 2009 17:05:13 GMT
Hi all,

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?

Thanks,

Jacopo


Mime
View raw message