Trying to read a XML files and capture the output in a table. Got the basic part working as but getting the repeating elements working has become a challenge, hence shouting for help (have seen other threads along the same lines but not quite the same). Anyway, here is the format of the XML repeating element that I want to read -
Code: Select all
<actionResultStatus action="SomeAction">
<status>Success</status>
</actionResultStatus>
<actionResultStatus action="ActionAgain">
<status>Failure</status>
<message>
<code>SomeCode_1</code>
<context>SomeContext_1</context>
<message>SomeMessage_1</message>
<severity>ERROR</severity>
<action>failed</action>
<oid>oid</oid>
<pathToFailedComponent>/Root/SomePath_1</pathToFailedComponent>
</message>
<message>
<code>SomeCode_2</code>
<context>SomeContext_2</context>
<message>SomeMessage_2</message>
<severity>ERROR</severity>
<action>failed</action>
<oid>oid</oid>
<pathToFailedComponent>/Root/SomePath_2</pathToFailedComponent>
</message>
</actionResultStatus>
In my definition \ XML Metadata I have text of "status", "code" & "message" (at the second level).
What is happening is I'm getting the first of the status which in this case is "Success" and code and & message for the first instance of the Failure section. I need to be able to capture all of the repeating elements (preferably would like to skip the success one - only need to Failures to be honest).
Thanks,
Bikram