Hi..
Below is the XML file.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_Sender xmlns:ns0="http://Test">
- <Root>
<Input><Node></Input>
</Root>
- <Root>
<Input><Company>Satyam</Company></Input>
</Root>
- <Root>
<Input><NAME>Leela</NAME></Input>
</Root>
- <Root>
<Input><END-Node></Input>
</Root>
</ns0:MT_Sender>
I need to convert the above xml file to correct xml file.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_Sender xmlns:ns0="http://Test">
- <Root>
<Input><Node></Input>
</Root>
- <Root>
<Input><Company>Satyam</Company></Input>
</Root>
- <Root>
<Input><NAME>Leela</NAME></Input>
</Root>
- <Root>
<Input><END-Node></Input>
</Root>
</ns0:MT_Sender>
I need the output file like
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_Sender xmlns:ns0="http://Test">
- <Root>
<Input><Node></Input>
</Root>
- <Root>
<Input><Company>Satyam</Company></Input>
</Root>
- <Root>
<Input><NAME>Leela</NAME></Input>
</Root>
- <Root>
<Input></Node></Input>
</Root>
</ns0:MT_Sender>
Could you please help in having XSLT or Java mapping for the above requirement.?
Thanks
Leela