cancel
Showing results for 
Search instead for 
Did you mean: 

Incoming XML - certain elements with content are ignored and not processed

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

No longer required

Former Member
0 Kudos

No longer required

Former Member
0 Kudos

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

Former Member
0 Kudos

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.