I have a XML with an XML string inside
<?xml version="1.0" encoding="UTF-8"?><body xmlns:ns0="http://ift.tt/1Iho3QG" xmlns:ns1="http://ift.tt/1gHepOD">
<ns0:JMSTextBody_element>
<ns1:value><delivery gduid="6395" sduid="2392">
<object type="issue" id="C0.ISS.1451" alt_id="BBG000BH7B07">
<attributes>
<simple id="bb_global_id" changed="true">BBG000BH7B07</simple>
<simple id="dv_source1" changed="true">BB</simple>
<simple id="nominal_value" changed="true">0.1</simple>
</attributes>
</object>
</delivery></ns1:value>
</ns0:JMSTextBody_element>
</body>
I need to fetch the values from the inline XML reformat and create a new XML string
<?xml version="1.0" encoding="UTF-8"?><body xmlns:ns0="http://ift.tt/1Iho3QG" xmlns:ns1="http://ift.tt/1gHepOD">
<ns0:JMSTextBody_element>
<ns1:value>
<ac_connect_type>issue</ac_connect_type><ac_connect_id>C0.ISS.1451</ac_connect_id><ac_connect_alt_id>BBG000BH7B07</ac_connect_alt_id><bb_global_id>BBG000BH7B07</bb_global_id>
<dv_source1>BB</dv_source1><nominal_value>0.1</nominal_value></ns1:value>
</ns0:JMSTextBody_element>
</body>
I'm having trouble to get to the elements in the inline XML
<xsl:apply-templates select="/delivery/object/attributes/bb_global_id" />
doesn't seem to work, obviously I'm missing something here Thanks
Aucun commentaire:
Enregistrer un commentaire