on 08-25-2011 4:35 PM
Hi,
We have requirement in our project to process input xml file which is of the below format:
<message>
<data>
<xml version=1.0 code=utf/>
<test>
<data>book</data>
</test>
</data></message>
Since <xml> tag is at the middle it is throwing a exception error in mapping.
Actual requirment is that we need
<test>
<data>book</data>
</test>
The xml of the above format is generated by some external system which PI need to pick it.
I think is not possible in XSLT mapping as it is not starting with xml tag .
So please let me know pointer ot resolve the issue.
Thanks in advance.
Hi Yeshwanth,
If this input XML. Then it is valid XML.
<message>
<data>
<xml version="1.0" code="utf" />
<test>
<data>book</data>
</test>
</data>
</message>
Please paste the error message, input and expected output XML.
Regards,
Raghu_Vamsee
Edited by: Raghu Vamsee on Aug 25, 2011 12:10 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if your source system is generating such a file then you need to make use of JAVA mapping to read the input message .....then use replace function to remove the <xml> tag and then generate the output with a valid format.
But cant the source system generate a proper XML format?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yeshwanth,
Could you please confirm the data what you receiving from source system is valid XML?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.