YedXml - Enum_Element
SINT Enum_Element(void *pvO,XML_ELEMENT *pMStart,SCHAR *pscKeyElement);
The method counts the number of XML elements with same tag into XML internal tree of the object instance pvO. pMStart is a pointer to the XML element from which starting the count: if NULL, counting starts from root XML element. pscKeyElement is the tag that identifies XML elements to count.
Counting XML elements can start from an XML element other than root: in this case, a pointer to this element can be passed through pMStart, and the counting will be related to only the subtree with pMStart element considered as root.
The method returns the number of XML elements having tag pscKeyElement from root element pMStart. In case of error, it returns:
XML source buffer not previously loaded with Get_XML_Buffer method.