Hi all,<br />
I am having a requirement in ABAP-IXML ie., i need to find how many times a same element name(ComponentUsage) gets repeat in an xml.<br />
here is the xml,<br />
<br />
<Component mmRelease="6.30" mmVersion="2.0" mmTimestamp="1180099591892" name="Comp_three" package="sap.com" masterLanguage="en">
<br />
<Component.ComponentUsages><br />
<<u><b>ComponentUsage</b></u> lifecycleControl="createOnDemand" name="comp1"><br />
<ComponentUsage.ComponentControllerUsages><br />
<ComponentControllerUsage name="Configuration"><br />
</ComponentControllerUsage><br />
</ComponentUsage.ComponentControllerUsages><br />
<ComponentUsage.UsedComponent><br />
<Core.Reference package="sap.com" name="Comp_twoInterface" type="ComponentInterfaceImplementation"/>
</ComponentUsage.UsedComponent><br />
</ComponentUsage><br />
</Component.ComponentUsages><br />
<br />
<Component.ComponentUsages><br />
<<u><b>ComponentUsage</b></u> lifecycleControl="createOnDemand" name="comp2"><br />
<ComponentUsage.ComponentControllerUsages><br />
<ComponentControllerUsage name="Configuration"><br />
</ComponentControllerUsage><br />
</ComponentUsage.ComponentControllerUsages><br />
<ComponentUsage.UsedComponent><br />
<Core.Reference package="sap.com" name="Comp_twoInterface" type="ComponentInterfaceImplementation"/>
</ComponentUsage.UsedComponent><br />
</ComponentUsage><br />
</Component.ComponentUsages><br />
</Component><br />
<br />
Here as the xml is short so i manually knows tat the element "ComponentUsage" are used 2 times, but suppose if i use a big xml and the component usage element is used "N" number of times then how can i count mannually....... so is there any method or code to find how many times does "ComponentUsage" element present in an XML.<br />
<br />
Thanks in advance,<br />
Vishnu<br />