on 01-02-2007 3:02 PM
Hi,
I have some incoming XML with certain elements that are present in the XML document are ignored in both the mapping test tool and at runtime.
For example:
<Credit_Rating Type="Credit_Score"><![CDATA[5]]>
<FreeText Type="Credit_Score_Description"><![CDATA[The UK rating system]]></FreeText>
<FreeText Type="Credit_Score_Explanation"><![CDATA[Trading]]></FreeText>
</Credit_Rating>
In this scenario the value held against <Credit_Rating> ie. 5 is ignored
However, if there is a scenario where there is no free text the value is mapped correctly.
ie.
<Credit_Rating Type="Previous_Credit_Score"><![CDATA[5]]>
</Credit_Rating>
The overall problem seems to be with elements that have values held against and they also have sub-element then the value against the top element is ignored.
I hope I have explained this well enough to illustrate the issue.
Has anyone come up against this before as it seems a pretty common scenario ?
More importantly, how was the issue resolved ?
Cheers
Colin.
No longer required
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No longer required
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Colin,
Check this weblog which may help you:
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is not valid in my case.
Even when the XML is loaded into the test tool, the value held against <Credit_Rating> is not visible when the sub-element for <FreeText> is present in the XML.
To prove the point, we removed the sub-elements and tried reloading it and the value was then visible. However, we need the content of the sub-elements as well so this is not a possibility to remove the sub-elements either.
Cheers
Colin.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.