Checks if the specified element has one or more children that complies with the specified Element Type(s).
This function returns the same result as the following expression:
element.findChild(elementTypeSpec) != null
element
If not specified, the generator context element is assumed,
i.e. the same as the call: contextElement.findChild(elementTypeSpec)
See Also: GOMContext.contextElement
elementTypeSpec
Each of the child elements, whose existence is requested, should comply with at least one of the target Element Types.
filterQuery
This should be a boolean subquery created with BooleanQuery() function.
The subquery will be processed against each initially complying element.
It must return true if the element passes and
false if it should be ignored.
The tested element is passed as the generator context element.
true if the element has at least one child element that complies
with the specified Element Type(s);false otherwise (or in the case element == null)
findChild(), findChildren(), countChildren()
You may call this function in a more method-like style, e.g.:
element.hasChild(elementTypeSpec)