Need to know the XPath derivation in DS to read an xml
Posted: Wed Mar 02, 2011 4:34 am
hi,
I want to know the XPath derivation for the below XML, tried to figure it out for a while, but ......
want to read the name="MK_T_9117_MOD" and value="MMA" part
Here is the xml i have
<TranslationResponse xmlns="http://w3.ibm.com/xmlns/ibmww/crm/blueh ... nfigurator" xmlns:com="http://w3.ibm.com/xmlns/ibmww/com" xmlns:sap="http://www.ibm.com/bh/cnfg/fed/documents/sap">
<IBM_GWA_Metadata>
<com:CharSet>String</com:CharSet>
</IBM_GWA_Metadata>
<Messages highestSeverity="ok">
<Message severity="ok">ok</Message>
</Messages>
<Differences/>
<Document>
<GenericSAPDocument>
<sap:Material id="9117NEW" quantity="1">
<sap:LineItem>10</sap:LineItem>
<sap:ExternalReferences instanceGUID="12DE2C7688D000002200093F84B50000"/>
<sap:CharacteristicValue name="MK_T_9117_MOD" value="MMA"/>
<sap:CharacteristicValue name="MK_MTM" value="9117MMA"/>
<sap:CharacteristicValue name="MK_PROCESS_TYPE" value="NEW"/>
<sap:CharacteristicValue name="MK_SYSTEM_TYPE" value="9117"/>
I want to know the XPath derivation for the below XML, tried to figure it out for a while, but ......
want to read the name="MK_T_9117_MOD" and value="MMA" part
Here is the xml i have
<TranslationResponse xmlns="http://w3.ibm.com/xmlns/ibmww/crm/blueh ... nfigurator" xmlns:com="http://w3.ibm.com/xmlns/ibmww/com" xmlns:sap="http://www.ibm.com/bh/cnfg/fed/documents/sap">
<IBM_GWA_Metadata>
<com:CharSet>String</com:CharSet>
</IBM_GWA_Metadata>
<Messages highestSeverity="ok">
<Message severity="ok">ok</Message>
</Messages>
<Differences/>
<Document>
<GenericSAPDocument>
<sap:Material id="9117NEW" quantity="1">
<sap:LineItem>10</sap:LineItem>
<sap:ExternalReferences instanceGUID="12DE2C7688D000002200093F84B50000"/>
<sap:CharacteristicValue name="MK_T_9117_MOD" value="MMA"/>
<sap:CharacteristicValue name="MK_MTM" value="9117MMA"/>
<sap:CharacteristicValue name="MK_PROCESS_TYPE" value="NEW"/>
<sap:CharacteristicValue name="MK_SYSTEM_TYPE" value="9117"/>