Duplicate declaration for namespace prefix

609 views
Skip to first unread message

luca racca

unread,
Jul 30, 2015, 5:31:53 AM7/30/15
to beanio-users
Hello,
during the unmarshalling of an XML i have this error:
Duplicate declaration for namespace prefix 'XXX'

I use camel framework to split the xml file on a tag, and using the camel splitter option inheritNamespaceTagName="XXX" i inherit  the XXX namespace from the root tag.
This is necessary because otherwise beanio does not recognize the namespace prefix during the unmarshall. Although there are some file that on the tag on which i split redeclared the namespace XXX and in this case i got this kind of error.
If i remove from camel route the inheritNamespaceTagName it works for this file, but i have error for the others.
Is there a solution to overcome this issue?
A solution i thought is to remove always the namespece declaration or to ignore it. Is it possible?

Thanks
Luca
Reply all
Reply to author
Forward
0 new messages