YedXml - Enum_Element

NAME:
Enum_Element

SYNOPSIS:
SINT Enum_Element(void *pvO,XML_ELEMENT *pMStart,SCHAR *pscKeyElement);

DESCRIPTION:
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.

RETURN VALUE:
The method returns the number of XML elements having tag pscKeyElement from root element pMStart. In case of error, it returns:

YPRNOBUFFER
XML source buffer not previously loaded with Get_XML_Buffer method.


http://yed.sourceforge.net