Tuesday, 16 September 2014

How to fetch xml inside an xml



Hi I want to fetch whole <request> tag ie all the things including tags and their values in xml format .Can i do it in java using any of the XML parsers?



XML FILE




<?xml version="1.0" encoding="UTF-8"?>
<apis xmlns:xsi="http://ift.tt/ra1lAU"
xsi:noNamespaceSchemaLocation="vdb-api-config.xsd">
<api>
<serviceName>Billing</serviceName>
<methodName>getBilling</methodName>
<request>
<com.shared.to.wireline.Billing>
<billingPk>
<lsBanPk>
<lsBan>17957</lsBan>
<divisionId>PZA</divisionId>
<systemId>OPWQ</systemId>
</lsBanPk>
<btnPk>
<btn>6184</btn>
<custCode>1</custCode>
<divisionId>ILEPOR</divisionId>
<systemId>ACSQQWE</systemId>
</btnPk>
<attProductType>UVERSE_STANDALONE</attProductType>
</billingPk>
</com.shared.to.wireline.Billing>
</request>
</api>
</apis>

No comments:

Post a Comment