allows to compile and test pattern expressions for nodes either in a tree or based on a parser state. Table of ContentsStructure xmlPattern struct _xmlPattern
The content of this structure is not made public by the API.
Typedef xmlPattern * xmlPatternPtr
void xmlFreePattern (xmlPatternPtr comp)
void xmlFreePatternList (xmlPatternPtr comp)
int xmlPatternMatch (xmlPatternPtr comp, xmlNodePtr node)
xmlPatternPtr xmlPatterncompile (const xmlChar * pattern, xmlDict * dict, int flags, const xmlChar ** namespaces)
Description
Structure xmlPattern struct _xmlPattern {
The content of this structure is not made public by the API.
} Function: xmlFreePatternvoid xmlFreePattern (xmlPatternPtr comp)
Free up the memory allocated by @comp
Function: xmlFreePatternListvoid xmlFreePatternList (xmlPatternPtr comp)
Free up the memory allocated by all the elements of @comp
Function: xmlPatternMatchint xmlPatternMatch (xmlPatternPtr comp, xmlNodePtr node)
Test wether the node matches the pattern
comp: | the precompiled pattern | node: | a node | Returns: | 1 if it matches, 0 if it doesn't and -1 in case of failure |
Function: xmlPatterncompilexmlPatternPtr xmlPatterncompile (const xmlChar * pattern, xmlDict * dict, int flags, const xmlChar ** namespaces)
Compile a pattern.
pattern: | the pattern to compile | dict: | an optional dictionnary for interned strings | flags: | compilation flags, undefined yet | namespaces: | the prefix definitions, array of [URI, prefix] or NULL | Returns: | the compiled for of the pattern or NULL in case of error |
Daniel Veillard |