Defined in file: hzDocument.h

XML Selector - used to extract information from an XML document, such as the set of links in an RSS Feed page. The assumption being that the XML will be of a known form and that the information of interest will be found in known nodes (tags) - usually the case with subscription data feeds. hzXmlSlct comprises selection criteria to locate nodes of interest, together with a method which directs the extraction process. Node location can be on node name alone, but only if the nodes of interest use a node name that is not used within the document for any other purpose. As this is not always the case it is often necessary to provide further qualification. This can be done by specifying node ancestry, by requiring particular attributes and if need be, requiring the attributes to have particular values. In the notation the $ sign is used to separate node names, the -> symbol to state a required attribute and the = sign to specify a value. Location criteria are thus of the form:- [acestor1$]...[ancestorN$]node_name[->attr1[=val1]]...[->attrN[=valN]] The information of interest is usually the content of the node(s) of interest, but it in rare cases it can lay in the attributes. Accordingly, the method of extraction will either be "node" to extract node content or a series of "->attr" to name the attribute(s), or it can be both. The string values extracted will in the case of multiple nodes, be aggregated.

Constructors/Detructors

hzXmlSlct*hzXmlSlct(void)
Default constructorhzXmlSlct()Not specified in code. Default applies

Public Methods:

boolIsNull(void)
boolIsPart(void)
boolIsValid(void)

Overloaded operators:

hzXmlSlct&operator=(hzXmlSlct& op)

Member Variables:

hzStringm_FiltFilter to be applied to the extracted data.
hzStringm_InfoHow to obtain data from the node (eg ->'Date' meaning value of an attr called 'Date')
hzStringm_SlctCriteria needed to locate node