Paramanand_Ghod
16 years agoContributor
how to get Count of a tag using groovy scripting
Hi,
How to get the count of a tag which appears multiple times in the XML using groovy scripting.
See the below example:
<GetApplicationDetailsResponse><ApplicationDetails><Attachments>
<DocumentMetaData>
<ID>38273</ID><Reference>43348</Reference><Status><![CDATA[]]></Status>
</DocumentMetaData>
<DocumentMetaData>
<ID>38274</ID><Reference>43349</Reference><Status><![CDATA[]]></Status>
</DocumentMetaData>
</Attachments></ApplicationDetails></GetApplicationDetailsResponse>
How to get the count of a tag which appears multiple times in the XML using groovy scripting.
See the below example:
<GetApplicationDetailsResponse><ApplicationDetails><Attachments>
<DocumentMetaData>
<ID>38273</ID><Reference>43348</Reference><Status><![CDATA[]]></Status>
</DocumentMetaData>
<DocumentMetaData>
<ID>38274</ID><Reference>43349</Reference><Status><![CDATA[]]></Status>
</DocumentMetaData>
</Attachments></ApplicationDetails></GetApplicationDetailsResponse>