I have an xml with some data and after using filter activity in IBM Cast Iron I am getting below xml in place of badxml. This causing an exception.
badXml.xml
<?xml version="1.0" encoding="UTF-8"?>
<RemitSchemaData xmlns=""><?xml version="1.0"?>
</RemitSchemaData>
Now to resolve this I am trying to use xslt to remove the duplicate xml declaration inside my xml tag. Please help me on how to do this.
Input
<?xml version="1.0" encoding="UTF-8"?>
<RemitSchemaData xmlns=""><?xml version="1.0"?>
</RemitSchemaData>
Expected Ouput
<?xml version="1.0" encoding="UTF-8"?>
<RemitSchemaData/>