Suppose I have an XML file that has tags Reg0, Reg1, Reg2. . . The "Reg" prefix is fixed.
How can I count the number of tags that starts with Reg text using TouchXML?
I can search for Reg text in my whole document, but may be this is not the right procedure.
You can check with the if check the current element in the xml document using
hasPrefixor usingrangeOfString. I would recommend you to useNSXMLParserwhich is built in iOS. UsingNSXMLParseryou could check theelementNamewhen parsing the XML document, you could check for the string what you are looking foror you can use
rangeOfStringalso forelementName