How can you count number of occurrences of a specific tag in an xml, using Rational Robot

Showing Answers 1 - 3 of 3 Answers

bizzzzzare

  • Oct 26th, 2007
 

Hi Suma,

To get the count of occurenec of a specific tag in xml, use the getElementsbyTagName function

set objX = CreateObject("Microsoft.XMLDOM")
objX.async = false
objX.load(:xml filename:)

set oNodeList = objX.getElementsbyTagName(:Element tag to be counted:)
set oCount = oNodeList.length...

Let me know if this helps

Cheers

Umesh.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions