2
* Summary: pattern expression handling
3
* Description: allows to compile and test pattern expressions for nodes
4
* either in a tree or based on a parser state.
6
* Copy: See Copyright for the status of this software.
8
* Author: Daniel Veillard
11
#ifndef __XML_PATTERN_H__
12
#define __XML_PATTERN_H__
14
#include <libxml/xmlversion.h>
15
#include <libxml/tree.h>
16
#include <libxml/dict.h>
18
#ifdef LIBXML_PATTERN_ENABLED
27
* A compiled (XPath based) pattern to select nodes
29
typedef struct _xmlPattern xmlPattern;
30
typedef xmlPattern *xmlPatternPtr;
32
XMLPUBFUN void XMLCALL
33
xmlFreePattern (xmlPatternPtr comp);
35
XMLPUBFUN void XMLCALL
36
xmlFreePatternList (xmlPatternPtr comp);
38
XMLPUBFUN xmlPatternPtr XMLCALL
39
xmlPatterncompile (const xmlChar *pattern,
42
const xmlChar **namespaces);
44
xmlPatternMatch (xmlPatternPtr comp,
51
#endif /* LIBXML_PATTERN_ENABLED */
53
#endif /* __XML_PATTERN_H__ */