i having xml need parse using xpath want know how can xpath give me child value parent getting parent node value
//*[local-name()='bucketcategory']
but need value bucketbalance can use dynamically xml is
<xsdlocal1:t2bucketbalanceresponse xmlns:xsdlocal1="http://www.tele2.com/t2bucketbalanceresponse_05.00"> <xsdlocal1:header> <xsdlocal1:messageid>654321</xsdlocal1:messageid> <xsdlocal1:conversationid>2aeba17d-e9c2-11e4-b061-f5ff8e3ab34b</xsdlocal1:conversationid> <xsdlocal1:businessprocessid/> <xsdlocal1:messagetargetnamespace>http://www.tele2.com/t2bucketbalanceresponse</xsdlocal1:messagetargetnamespace> <xsdlocal1:messagepriority>4</xsdlocal1:messagepriority> <xsdlocal1:timestamp>2015-05-01 09:26:12.887</xsdlocal1:timestamp> <xsdlocal1:sender>tip</xsdlocal1:sender> <xsdlocal1:recipient>siebelcrm_nl</xsdlocal1:recipient> <xsdlocal1:legalentity>27</xsdlocal1:legalentity> <xsdlocal1:payloadencoding>plain</xsdlocal1:payloadencoding> </xsdlocal1:header> <xsdlocal1:bucketbalance> <xsdlocal1:bucketcategory>vmrc_r2</xsdlocal1:bucketcategory> <xsdlocal1:bucketamount>200.0</xsdlocal1:bucketamount> <xsdlocal1:bucketlevel>service</xsdlocal1:bucketlevel> <xsdlocal1:allocationstartdate>03/25/2015 00:00:00</xsdlocal1:allocationstartdate> </xsdlocal1:bucketbalance> <xsdlocal1:bucketbalance> <xsdlocal1:bucketcategory>vmrc_rertet</xsdlocal1:bucketcategory> <xsdlocal1:bucketamount>456.0</xsdlocal1:bucketamount> <xsdlocal1:bucketlevel>sdfsdff</xsdlocal1:bucketlevel> <xsdlocal1:allocationstartdate>03/25/2015 00:00:00</xsdlocal1:allocationstartdate> </xsdlocal1:bucketbalance>
Comments
Post a Comment