on 2008 Nov 19 7:17 AM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As said above, it is not possible by any mapping since your XML file is not having a valid structure.
Regads,
Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both are no valid XML files.
So no mapping would help you there.
<Input><Node></Input> would not work.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.