From d09ab089457ae3c20cc98f9afa03379c6ebf9598 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 25 Mar 2004 06:59:32 +0000 Subject: [svn-inject] Installing original source version --- doc/html/libxml-pattern.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 doc/html/libxml-pattern.html (limited to 'doc/html/libxml-pattern.html') diff --git a/doc/html/libxml-pattern.html b/doc/html/libxml-pattern.html new file mode 100644 index 0000000..6c06a93 --- /dev/null +++ b/doc/html/libxml-pattern.html @@ -0,0 +1,31 @@ + + +Module pattern from libxml2
Action against software patentsGnome2 LogoW3C LogoRed Hat Logo
Made with Libxml2 Logo

Module pattern from libxml2

API Menu
API Indexes
Related links

allows to compile and test pattern expressions for nodes either in a tree or based on a parser state.

Table of Contents

Structure 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

Structure xmlPattern
struct _xmlPattern { +The content of this structure is not made public by the API. +}

Function: xmlFreePattern

void	xmlFreePattern			(xmlPatternPtr comp)
+

Free up the memory allocated by @comp

+
comp:an XSLT comp

Function: xmlFreePatternList

void	xmlFreePatternList		(xmlPatternPtr comp)
+

Free up the memory allocated by all the elements of @comp

+
comp:an XSLT comp list

Function: xmlPatternMatch

int	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: xmlPatterncompile

xmlPatternPtr	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

-- cgit v1.2.3