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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to