mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-07 17:17:39 +03:00
fixing a function comment switching to the XML/XSLT doc generation closing
* xmlschemas.c doc/libxml2-api.xml: fixing a function comment * doc/Makefile.am doc/apibuild.py doc/gnome-xml.sgml: switching to the XML/XSLT doc generation closing #111799 * doc/html/*: complete update of the HTML results Daniel
This commit is contained in:
parent
a28d236577
commit
d433046ae5
@ -1,3 +1,10 @@
|
||||
Tue Apr 29 14:36:49 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlschemas.c doc/libxml2-api.xml: fixing a function comment
|
||||
* doc/Makefile.am doc/apibuild.py doc/gnome-xml.sgml: switching
|
||||
to the XML/XSLT doc generation closing #111799
|
||||
* doc/html/*: complete update of the HTML results
|
||||
|
||||
Mon Apr 28 14:51:41 CEST 2003 Igor Zlatkovic <igor@zlatkovic.com>
|
||||
|
||||
* win32/defgen.xsl: fixed the conditional for unicode map,
|
||||
|
@ -4,7 +4,7 @@
|
||||
DOC_MODULE=libxml2-$(VERSION)
|
||||
|
||||
# The top-level SGML file.
|
||||
DOC_MAIN_SGML_FILE=gnome-xml.sgml
|
||||
DOC_MAIN_XML_FILE=gnome-xml.xml
|
||||
|
||||
# The directory containing the source code (if it contains documentation).
|
||||
DOC_SOURCE_DIR=..
|
||||
@ -62,12 +62,10 @@ templates: scan
|
||||
-gtkdoc-mktmpl --module=libxml
|
||||
|
||||
sgml: templates
|
||||
-gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR)
|
||||
-gtkdoc-mkdb --module=libxml --source-dir=$(DOC_SOURCE_DIR) --output-format=xml --main-sgml-file=$(DOC_MAIN_XML_FILE)
|
||||
|
||||
xml: sgml
|
||||
if test -d xml ; then rm xml/* ; else mkdir xml ; fi
|
||||
-@(for s in sgml/*.sgml ; do name=`basename $$s .sgml` ; \
|
||||
xmllint --sgml $$s > xml/"$$name".xml ; done)
|
||||
|
||||
libxml2-api.xml: apibuild.py ../include/libxml/*.h
|
||||
-(./apibuild.py)
|
||||
@ -76,7 +74,7 @@ api: libxml2-api.xml libxml2-refs.xml
|
||||
|
||||
html:
|
||||
if test -n -d html ; then mkdir html ; fi
|
||||
-cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_SGML_FILE)
|
||||
-cd html && gtkdoc-mkhtml libxml ../$(DOC_MAIN_XML_FILE)
|
||||
|
||||
clean-local:
|
||||
rm -f *~ *.bak *.hierarchy *.signals *-unused.txt
|
||||
|
@ -1464,8 +1464,7 @@ def rebuild():
|
||||
if glob.glob("../parser.c") != [] :
|
||||
print "Rebuilding API description for libxml2"
|
||||
builder = docBuilder("libxml2", ["..", "../include/libxml"],
|
||||
["xmlwin32version.h", "tst.c",
|
||||
"schemasInternals.h", "xmlschemas" ])
|
||||
["xmlwin32version.h", "tst.c"])
|
||||
elif glob.glob("../libxslt/transform.c") != [] :
|
||||
print "Rebuilding API description for libxslt"
|
||||
builder = docBuilder("libxslt", ["../libxslt"],
|
||||
|
@ -1,131 +0,0 @@
|
||||
<!doctype book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
|
||||
<!entity SAX SYSTEM "sgml/SAX.sgml">
|
||||
<!entity entities SYSTEM "sgml/entities.sgml">
|
||||
<!entity encoding SYSTEM "sgml/encoding.sgml">
|
||||
<!entity parser SYSTEM "sgml/parser.sgml">
|
||||
<!entity parserInternals SYSTEM "sgml/parserInternals.sgml">
|
||||
<!entity error SYSTEM "sgml/xmlerror.sgml">
|
||||
<!entity HTMLparser SYSTEM "sgml/HTMLparser.sgml">
|
||||
<!entity HTMLtree SYSTEM "sgml/HTMLtree.sgml">
|
||||
<!entity debugXML SYSTEM "sgml/debugXML.sgml">
|
||||
<!entity tree SYSTEM "sgml/tree.sgml">
|
||||
<!entity uri SYSTEM "sgml/uri.sgml">
|
||||
<!entity xpath SYSTEM "sgml/xpath.sgml">
|
||||
<!entity xpathInternals SYSTEM "sgml/xpathInternals.sgml">
|
||||
<!entity xpointer SYSTEM "sgml/xpointer.sgml">
|
||||
<!entity xinclude SYSTEM "sgml/xinclude.sgml">
|
||||
<!entity xmlIO SYSTEM "sgml/xmlIO.sgml">
|
||||
<!entity catalog SYSTEM "sgml/catalog.sgml">
|
||||
<!entity c14n SYSTEM "sgml/c14n.sgml">
|
||||
<!entity DOCBparser SYSTEM "sgml/DOCBparser.sgml">
|
||||
<!entity xmlmemory SYSTEM "sgml/xmlmemory.sgml">
|
||||
<!entity nanohttp SYSTEM "sgml/nanohttp.sgml">
|
||||
<!entity nanoftp SYSTEM "sgml/nanoftp.sgml">
|
||||
<!entity valid SYSTEM "sgml/valid.sgml">
|
||||
<!entity hash SYSTEM "sgml/hash.sgml">
|
||||
<!entity threads SYSTEM "sgml/threads.sgml">
|
||||
<!entity globals SYSTEM "sgml/globals.sgml">
|
||||
<!entity xmlregexp SYSTEM "sgml/xmlregexp.sgml">
|
||||
<!entity xmlautomata SYSTEM "sgml/xmlautomata.sgml">
|
||||
<!entity xmlunicode SYSTEM "sgml/xmlunicode.sgml">
|
||||
<!entity xmlschemas SYSTEM "sgml/xmlschemas.sgml">
|
||||
<!entity xmlschemastypes SYSTEM "sgml/xmlschemastypes.sgml">
|
||||
<!entity schemasInternals SYSTEM "sgml/schemasInternals.sgml">
|
||||
<!entity relaxng SYSTEM "sgml/relaxng.sgml">
|
||||
<!entity xmlreader SYSTEM "sgml/xmlreader.sgml">
|
||||
]>
|
||||
|
||||
<book>
|
||||
<bookinfo>
|
||||
<title>Gnome XML Library Reference Manual</title>
|
||||
<authorgroup>
|
||||
<author>
|
||||
<firstname>Daniel</firstname>
|
||||
<surname>Veillard</surname>
|
||||
<affiliation>
|
||||
<address>
|
||||
<email>daniel@veillard.com</email>
|
||||
</address>
|
||||
</affiliation>
|
||||
</author>
|
||||
</authorgroup>
|
||||
<copyright>
|
||||
<year>1999</year>
|
||||
<holder>Daniel Veillard</holder>
|
||||
</copyright>
|
||||
|
||||
<legalnotice>
|
||||
<para>Permission is granted to make and distribute verbatim
|
||||
copies of this manual provided the copyright notice and this
|
||||
permission notice are preserved on all copies.</para>
|
||||
|
||||
<para>Permission is granted to copy and distribute modified
|
||||
versions of this manual under the conditions for verbatim
|
||||
copying, provided also that the entire resulting derived work is
|
||||
distributed under the terms of a permission notice identical to
|
||||
this one.</para>
|
||||
|
||||
<para>Permission is granted to copy and distribute translations
|
||||
of this manual into another language, under the above conditions
|
||||
for modified versions.</para>
|
||||
</legalnotice>
|
||||
|
||||
<abstract>
|
||||
<para>This manual documents the interfaces of the libxml
|
||||
library and has some short notes to help get you up to speed
|
||||
with using the library.</para>
|
||||
</abstract>
|
||||
</bookinfo>
|
||||
|
||||
<chapter id="libxml-notes">
|
||||
<title>Libxml Programming Notes</title>
|
||||
|
||||
<para>Libxml is an XML toolkit library, it allows to parse, edit
|
||||
search and write XML documents. There is also an HTML parser front-end
|
||||
so the same range of tools can be used with HTML input.</para>
|
||||
</chapter>
|
||||
<chapter id="libxml-lib">
|
||||
<title>Libxml Library Reference</title>
|
||||
|
||||
<para>This section contains the API reference for libxml. All
|
||||
the public interfaces are documented here. This reference guide is
|
||||
build by extracting comments from the code sources. </para>
|
||||
|
||||
&parser;
|
||||
&xmlreader;
|
||||
&SAX;
|
||||
&tree;
|
||||
&entities;
|
||||
&valid;
|
||||
&relaxng;
|
||||
&uri;
|
||||
&error;
|
||||
&HTMLparser;
|
||||
&HTMLtree;
|
||||
&xpath;
|
||||
&xpathInternals;
|
||||
&xpointer;
|
||||
&xinclude;
|
||||
&nanohttp;
|
||||
&nanoftp;
|
||||
&xmlIO;
|
||||
&catalog;
|
||||
&c14n;
|
||||
&threads;
|
||||
&globals;
|
||||
&global_functions;
|
||||
&DOCBparser;
|
||||
&parserInternals;
|
||||
&encoding;
|
||||
&hash;
|
||||
&debugXML;
|
||||
&xmlmemory;
|
||||
&xmlregexp;
|
||||
&xmlautomata;
|
||||
&xmlunicode;
|
||||
&xmlschemas;
|
||||
&xmlschemastypes;
|
||||
&schemasInternals;
|
||||
</chapter>
|
||||
</book>
|
||||
|
BIN
doc/html/home.png
Normal file
BIN
doc/html/home.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 654 B |
46
doc/html/index.html
Normal file
46
doc/html/index.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Gnome XML Library Reference Manual</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><meta name="description" content="This manual documents the interfaces of the libxml
|
||||
library and has some short notes to help get you up to speed
|
||||
with using the library."><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="next" href="libxml-notes.html" title="Libxml Programming Notes"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="book" lang="en"><div class="titlepage"><div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">Gnome XML Library Reference Manual</p></th></tr></table></div><div><div class="authorgroup"><div class="author"><h3 class="author">Daniel Veillard</h3><div class="affiliation"><div class="address"><p><br>
|
||||
<tt><<a href="mailto:daniel@veillard.com">daniel@veillard.com</a>></tt><br>
|
||||
</p></div></div></div></div></div><div><p class="copyright">Copyright © 1999 Daniel Veillard</p></div><div><div class="legalnotice"><p>Permission is granted to make and distribute verbatim
|
||||
copies of this manual provided the copyright notice and this
|
||||
permission notice are preserved on all copies.</p><p>Permission is granted to copy and distribute modified
|
||||
versions of this manual under the conditions for verbatim
|
||||
copying, provided also that the entire resulting derived work is
|
||||
distributed under the terms of a permission notice identical to
|
||||
this one.</p><p>Permission is granted to copy and distribute translations
|
||||
of this manual into another language, under the above conditions
|
||||
for modified versions.</p></div></div><div><div class="abstract"><p class="title"><b>Abstract</b></p><p>This manual documents the interfaces of the libxml
|
||||
library and has some short notes to help get you up to speed
|
||||
with using the library.</p></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="libxml-notes.html">Libxml Programming Notes</a></dt><dt><a href="libxml-lib.html">Libxml Library Reference</a></dt></dl></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"></td><td align="right"><a accesskey="n" href="libxml-notes.html"><b>Libxml Programming Notes >></b></a></td></tr></table></body></html>
|
1530
doc/html/index.sgml
1530
doc/html/index.sgml
File diff suppressed because it is too large
Load Diff
BIN
doc/html/left.png
Normal file
BIN
doc/html/left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 459 B |
215
doc/html/libxml-DOCBparser.html
Normal file
215
doc/html/libxml-DOCBparser.html
Normal file
@ -0,0 +1,215 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>DOCBparser</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-globals.html" title="globals"><link rel="next" href="libxml-parserInternals.html" title="parserInternals"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-globals.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-parserInternals.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-DOCBparser"></a><div class="titlepage"></div><div class="refnamediv"><h2>DOCBparser</h2><p>DOCBparser — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
typedef <a href="libxml-DOCBparser.html#docbParserCtxt">docbParserCtxt</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbParserNodeInfo">docbParserNodeInfo</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbSAXHandler">docbSAXHandler</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbParserInput">docbParserInput</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbParserInputPtr">docbParserInputPtr</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a>;
|
||||
typedef <a href="libxml-DOCBparser.html#docbNodePtr">docbNodePtr</a>;
|
||||
int <a href="libxml-DOCBparser.html#docbEncodeEntities">docbEncodeEntities</a> (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
int *inlen,
|
||||
int quoteChar);
|
||||
<a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> <a href="libxml-DOCBparser.html#docbSAXParseDoc">docbSAXParseDoc</a> (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding,
|
||||
<a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a> sax,
|
||||
void *userData);
|
||||
<a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> <a href="libxml-DOCBparser.html#docbParseDoc">docbParseDoc</a> (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding);
|
||||
<a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> <a href="libxml-DOCBparser.html#docbSAXParseFile">docbSAXParseFile</a> (const char *filename,
|
||||
const char *encoding,
|
||||
<a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a> sax,
|
||||
void *userData);
|
||||
<a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> <a href="libxml-DOCBparser.html#docbParseFile">docbParseFile</a> (const char *filename,
|
||||
const char *encoding);
|
||||
void <a href="libxml-DOCBparser.html#docbFreeParserCtxt">docbFreeParserCtxt</a> (<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> ctxt);
|
||||
<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> <a href="libxml-DOCBparser.html#docbCreatePushParserCtxt">docbCreatePushParserCtxt</a> (<a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a> sax,
|
||||
void *user_data,
|
||||
const char *chunk,
|
||||
int size,
|
||||
const char *filename,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
int <a href="libxml-DOCBparser.html#docbParseChunk">docbParseChunk</a> (<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> ctxt,
|
||||
const char *chunk,
|
||||
int size,
|
||||
int terminate);
|
||||
<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> <a href="libxml-DOCBparser.html#docbCreateFileParserCtxt">docbCreateFileParserCtxt</a> (const char *filename,
|
||||
const char *encoding);
|
||||
int <a href="libxml-DOCBparser.html#docbParseDocument">docbParseDocument</a> (<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> ctxt);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="docbParserCtxt"></a>docbParserCtxt</h3><pre class="programlisting">typedef xmlParserCtxt docbParserCtxt;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParserCtxtPtr"></a>docbParserCtxtPtr</h3><pre class="programlisting">typedef xmlParserCtxtPtr docbParserCtxtPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParserNodeInfo"></a>docbParserNodeInfo</h3><pre class="programlisting">typedef xmlParserNodeInfo docbParserNodeInfo;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbSAXHandler"></a>docbSAXHandler</h3><pre class="programlisting">typedef xmlSAXHandler docbSAXHandler;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbSAXHandlerPtr"></a>docbSAXHandlerPtr</h3><pre class="programlisting">typedef xmlSAXHandlerPtr docbSAXHandlerPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParserInput"></a>docbParserInput</h3><pre class="programlisting">typedef xmlParserInput docbParserInput;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParserInputPtr"></a>docbParserInputPtr</h3><pre class="programlisting">typedef xmlParserInputPtr docbParserInputPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbDocPtr"></a>docbDocPtr</h3><pre class="programlisting">typedef xmlDocPtr docbDocPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbNodePtr"></a>docbNodePtr</h3><pre class="programlisting">typedef xmlNodePtr docbNodePtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbEncodeEntities"></a>docbEncodeEntities ()</h3><pre class="programlisting">int docbEncodeEntities (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
int *inlen,
|
||||
int quoteChar);</pre><p>
|
||||
Take a block of UTF-8 chars in and try to convert it to an ASCII
|
||||
plus SGML entities block of chars out.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i> :</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i> :</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>quoteChar</tt></i> :</span></td><td> the quote character to escape (' or ") or zero.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if success, -2 if the transcoding fails, or -1 otherwise
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of octets consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbSAXParseDoc"></a>docbSAXParseDoc ()</h3><pre class="programlisting"><a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> docbSAXParseDoc (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding,
|
||||
<a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a> sax,
|
||||
void *userData);</pre><p>
|
||||
parse an SGML in-memory document and build a tree.
|
||||
It use the given SAX function block to handle the parsing callback.
|
||||
If sax is NULL, fallback to the default DOM tree building routines.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> a pointer to an array of xmlChar
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the SGML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>sax</tt></i> :</span></td><td> the SAX handler block
|
||||
</td></tr><tr><td><span class="term"><i><tt>userData</tt></i> :</span></td><td> if using SAX, this pointer will be provided on callbacks.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParseDoc"></a>docbParseDoc ()</h3><pre class="programlisting"><a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> docbParseDoc (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding);</pre><p>
|
||||
parse an SGML in-memory document and build a tree.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> a pointer to an array of xmlChar
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the SGML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbSAXParseFile"></a>docbSAXParseFile ()</h3><pre class="programlisting"><a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> docbSAXParseFile (const char *filename,
|
||||
const char *encoding,
|
||||
<a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a> sax,
|
||||
void *userData);</pre><p>
|
||||
parse an SGML file and build a tree. Automatic support for ZLIB/Compress
|
||||
compressed document is provided by default if found at compile-time.
|
||||
It use the given SAX function block to handle the parsing callback.
|
||||
If sax is NULL, fallback to the default DOM tree building routines.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the SGML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>sax</tt></i> :</span></td><td> the SAX handler block
|
||||
</td></tr><tr><td><span class="term"><i><tt>userData</tt></i> :</span></td><td> if using SAX, this pointer will be provided on callbacks.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParseFile"></a>docbParseFile ()</h3><pre class="programlisting"><a href="libxml-DOCBparser.html#docbDocPtr">docbDocPtr</a> docbParseFile (const char *filename,
|
||||
const char *encoding);</pre><p>
|
||||
parse a Docbook SGML file and build a tree. Automatic support for
|
||||
ZLIB/Compress compressed document is provided by default if found
|
||||
at compile-time.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbFreeParserCtxt"></a>docbFreeParserCtxt ()</h3><pre class="programlisting">void docbFreeParserCtxt (<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> ctxt);</pre><p>
|
||||
Free all the memory used by a parser context. However the parsed
|
||||
document in ctxt->myDoc is not freed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an SGML parser context
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbCreatePushParserCtxt"></a>docbCreatePushParserCtxt ()</h3><pre class="programlisting"><a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> docbCreatePushParserCtxt (<a href="libxml-DOCBparser.html#docbSAXHandlerPtr">docbSAXHandlerPtr</a> sax,
|
||||
void *user_data,
|
||||
const char *chunk,
|
||||
int size,
|
||||
const char *filename,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a parser context for using the DocBook SGML parser in push mode
|
||||
To allow content encoding detection, <i><tt>size</tt></i> should be >= 4
|
||||
The value of <i><tt>filename</tt></i> is used for fetching external entities
|
||||
and error/warning reports.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>sax</tt></i> :</span></td><td> a SAX handler
|
||||
</td></tr><tr><td><span class="term"><i><tt>user_data</tt></i> :</span></td><td> The user data returned on SAX callbacks
|
||||
</td></tr><tr><td><span class="term"><i><tt>chunk</tt></i> :</span></td><td> a pointer to an array of chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> number of chars in the array
|
||||
</td></tr><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> an optional file name or URI
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> an optional encoding
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser context or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParseChunk"></a>docbParseChunk ()</h3><pre class="programlisting">int docbParseChunk (<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> ctxt,
|
||||
const char *chunk,
|
||||
int size,
|
||||
int terminate);</pre><p>
|
||||
Parse a Chunk of memory</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XML parser context
|
||||
</td></tr><tr><td><span class="term"><i><tt>chunk</tt></i> :</span></td><td> an char array
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> the size in byte of the chunk
|
||||
</td></tr><tr><td><span class="term"><i><tt>terminate</tt></i> :</span></td><td> last chunk indicator
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>zero if no error, the xmlParserErrors otherwise.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbCreateFileParserCtxt"></a>docbCreateFileParserCtxt ()</h3><pre class="programlisting"><a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> docbCreateFileParserCtxt (const char *filename,
|
||||
const char *encoding);</pre><p>
|
||||
Create a parser context for a file content.
|
||||
Automatic support for ZLIB/Compress compressed document is provided
|
||||
by default if found at compile-time.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the SGML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser context or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbParseDocument"></a>docbParseDocument ()</h3><pre class="programlisting">int docbParseDocument (<a href="libxml-DOCBparser.html#docbParserCtxtPtr">docbParserCtxtPtr</a> ctxt);</pre><p>
|
||||
parse an SGML document (and build a tree if using the standard SAX
|
||||
interface).</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an SGML parser context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0, -1 in case of error. the parser context is augmented
|
||||
as a result of the parsing.
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-globals.html"><b><< globals</b></a></td><td align="right"><a accesskey="n" href="libxml-parserInternals.html"><b>parserInternals >></b></a></td></tr></table></body></html>
|
371
doc/html/libxml-HTMLparser.html
Normal file
371
doc/html/libxml-HTMLparser.html
Normal file
@ -0,0 +1,371 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>HTMLparser</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-xmlerror.html" title="xmlerror"><link rel="next" href="libxml-HTMLtree.html" title="HTMLtree"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-xmlerror.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-HTMLtree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-HTMLparser"></a><div class="titlepage"></div><div class="refnamediv"><h2>HTMLparser</h2><p>HTMLparser — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
typedef <a href="libxml-HTMLparser.html#htmlParserCtxt">htmlParserCtxt</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlParserNodeInfo">htmlParserNodeInfo</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlSAXHandler">htmlSAXHandler</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlParserInput">htmlParserInput</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlParserInputPtr">htmlParserInputPtr</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlNodePtr">htmlNodePtr</a>;
|
||||
struct <a href="libxml-HTMLparser.html#htmlElemDesc">htmlElemDesc</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlElemDescPtr">htmlElemDescPtr</a>;
|
||||
struct <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>;
|
||||
typedef <a href="libxml-HTMLparser.html#htmlEntityDescPtr">htmlEntityDescPtr</a>;
|
||||
const <a href="libxml-HTMLparser.html#htmlElemDesc">htmlElemDesc</a>* <a href="libxml-HTMLparser.html#htmlTagLookup">htmlTagLookup</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *tag);
|
||||
const <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>* <a href="libxml-HTMLparser.html#htmlEntityLookup">htmlEntityLookup</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
const <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>* <a href="libxml-HTMLparser.html#htmlEntityValueLookup">htmlEntityValueLookup</a> (unsigned int value);
|
||||
int <a href="libxml-HTMLparser.html#htmlIsAutoClosed">htmlIsAutoClosed</a> (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc,
|
||||
<a href="libxml-HTMLparser.html#htmlNodePtr">htmlNodePtr</a> elem);
|
||||
int <a href="libxml-HTMLparser.html#htmlAutoCloseTag">htmlAutoCloseTag</a> (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
<a href="libxml-HTMLparser.html#htmlNodePtr">htmlNodePtr</a> elem);
|
||||
const <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>* <a href="libxml-HTMLparser.html#htmlParseEntityRef">htmlParseEntityRef</a> (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> **str);
|
||||
int <a href="libxml-HTMLparser.html#htmlParseCharRef">htmlParseCharRef</a> (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);
|
||||
void <a href="libxml-HTMLparser.html#htmlParseElement">htmlParseElement</a> (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);
|
||||
<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> <a href="libxml-HTMLparser.html#htmlCreateMemoryParserCtxt">htmlCreateMemoryParserCtxt</a>
|
||||
(const char *buffer,
|
||||
int size);
|
||||
int <a href="libxml-HTMLparser.html#htmlParseDocument">htmlParseDocument</a> (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);
|
||||
<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> <a href="libxml-HTMLparser.html#htmlSAXParseDoc">htmlSAXParseDoc</a> (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding,
|
||||
<a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a> sax,
|
||||
void *userData);
|
||||
<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> <a href="libxml-HTMLparser.html#htmlParseDoc">htmlParseDoc</a> (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding);
|
||||
<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> <a href="libxml-HTMLparser.html#htmlSAXParseFile">htmlSAXParseFile</a> (const char *filename,
|
||||
const char *encoding,
|
||||
<a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a> sax,
|
||||
void *userData);
|
||||
<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> <a href="libxml-HTMLparser.html#htmlParseFile">htmlParseFile</a> (const char *filename,
|
||||
const char *encoding);
|
||||
int <a href="libxml-HTMLparser.html#UTF8ToHtml">UTF8ToHtml</a> (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
int *inlen);
|
||||
int <a href="libxml-HTMLparser.html#htmlEncodeEntities">htmlEncodeEntities</a> (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
int *inlen,
|
||||
int quoteChar);
|
||||
int <a href="libxml-HTMLparser.html#htmlIsScriptAttribute">htmlIsScriptAttribute</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
int <a href="libxml-HTMLparser.html#htmlHandleOmittedElem">htmlHandleOmittedElem</a> (int val);
|
||||
void <a href="libxml-HTMLparser.html#htmlFreeParserCtxt">htmlFreeParserCtxt</a> (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);
|
||||
<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> <a href="libxml-HTMLparser.html#htmlCreatePushParserCtxt">htmlCreatePushParserCtxt</a> (<a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a> sax,
|
||||
void *user_data,
|
||||
const char *chunk,
|
||||
int size,
|
||||
const char *filename,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
int <a href="libxml-HTMLparser.html#htmlParseChunk">htmlParseChunk</a> (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt,
|
||||
const char *chunk,
|
||||
int size,
|
||||
int terminate);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="htmlParserCtxt"></a>htmlParserCtxt</h3><pre class="programlisting">typedef xmlParserCtxt htmlParserCtxt;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParserCtxtPtr"></a>htmlParserCtxtPtr</h3><pre class="programlisting">typedef xmlParserCtxtPtr htmlParserCtxtPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParserNodeInfo"></a>htmlParserNodeInfo</h3><pre class="programlisting">typedef xmlParserNodeInfo htmlParserNodeInfo;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSAXHandler"></a>htmlSAXHandler</h3><pre class="programlisting">typedef xmlSAXHandler htmlSAXHandler;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSAXHandlerPtr"></a>htmlSAXHandlerPtr</h3><pre class="programlisting">typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParserInput"></a>htmlParserInput</h3><pre class="programlisting">typedef xmlParserInput htmlParserInput;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParserInputPtr"></a>htmlParserInputPtr</h3><pre class="programlisting">typedef xmlParserInputPtr htmlParserInputPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDocPtr"></a>htmlDocPtr</h3><pre class="programlisting">typedef xmlDocPtr htmlDocPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNodePtr"></a>htmlNodePtr</h3><pre class="programlisting">typedef xmlNodePtr htmlNodePtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlElemDesc"></a>struct htmlElemDesc</h3><pre class="programlisting">struct htmlElemDesc {
|
||||
const char *name; /* The tag name */
|
||||
char startTag; /* Whether the start tag can be implied */
|
||||
char endTag; /* Whether the end tag can be implied */
|
||||
char saveEndTag; /* Whether the end tag should be saved */
|
||||
char empty; /* Is this an empty element ? */
|
||||
char depr; /* Is this a deprecated element ? */
|
||||
char dtd; /* 1: only in Loose DTD, 2: only Frameset one */
|
||||
char isinline; /* is this a block 0 or inline 1 element */
|
||||
const char *desc; /* the description */
|
||||
|
||||
/* NRK Jan.2003
|
||||
* New fields encapsulating HTML structure
|
||||
*
|
||||
* Bugs:
|
||||
* This is a very limited representation. It fails to tell us when
|
||||
* an element *requires* subelements (we only have whether they're
|
||||
* allowed or not), and it doesn't tell us where CDATA and PCDATA
|
||||
* are allowed. Some element relationships are not fully represented:
|
||||
* these are flagged with the word MODIFIER
|
||||
*/
|
||||
const char** subelts; /* allowed sub-elements of this element */
|
||||
const char* defaultsubelt; /* subelement for suggested auto-repair
|
||||
if necessary or NULL */
|
||||
const char** attrs_opt; /* Optional Attributes */
|
||||
const char** attrs_depr; /* Additional deprecated attributes */
|
||||
const char** attrs_req; /* Required attributes */
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlElemDescPtr"></a>htmlElemDescPtr</h3><pre class="programlisting">typedef htmlElemDesc *htmlElemDescPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlEntityDesc"></a>struct htmlEntityDesc</h3><pre class="programlisting">struct htmlEntityDesc {
|
||||
unsigned int value; /* the UNICODE value for the character */
|
||||
const char *name; /* The entity name */
|
||||
const char *desc; /* the description */
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlEntityDescPtr"></a>htmlEntityDescPtr</h3><pre class="programlisting">typedef htmlEntityDesc *htmlEntityDescPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlTagLookup"></a>htmlTagLookup ()</h3><pre class="programlisting">const <a href="libxml-HTMLparser.html#htmlElemDesc">htmlElemDesc</a>* htmlTagLookup (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *tag);</pre><p>
|
||||
Lookup the HTML tag in the ElementTable</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>tag</tt></i> :</span></td><td> The tag name in lowercase
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the related htmlElemDescPtr or NULL if not found.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlEntityLookup"></a>htmlEntityLookup ()</h3><pre class="programlisting">const <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>* htmlEntityLookup (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
Lookup the given entity in EntitiesTable
|
||||
</p><p>
|
||||
TODO: the linear scan is really ugly, an hash table is really needed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the entity name
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the associated htmlEntityDescPtr if found, NULL otherwise.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlEntityValueLookup"></a>htmlEntityValueLookup ()</h3><pre class="programlisting">const <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>* htmlEntityValueLookup (unsigned int value);</pre><p>
|
||||
Lookup the given entity in EntitiesTable
|
||||
</p><p>
|
||||
TODO: the linear scan is really ugly, an hash table is really needed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> the entity's unicode value
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the associated htmlEntityDescPtr if found, NULL otherwise.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlIsAutoClosed"></a>htmlIsAutoClosed ()</h3><pre class="programlisting">int htmlIsAutoClosed (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc,
|
||||
<a href="libxml-HTMLparser.html#htmlNodePtr">htmlNodePtr</a> elem);</pre><p>
|
||||
The HTML DTD allows a tag to implicitly close other tags.
|
||||
The list is kept in htmlStartClose array. This function checks
|
||||
if a tag is autoclosed by one of it's child</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the HTML document
|
||||
</td></tr><tr><td><span class="term"><i><tt>elem</tt></i> :</span></td><td> the HTML element
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if autoclosed, 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlAutoCloseTag"></a>htmlAutoCloseTag ()</h3><pre class="programlisting">int htmlAutoCloseTag (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
<a href="libxml-HTMLparser.html#htmlNodePtr">htmlNodePtr</a> elem);</pre><p>
|
||||
The HTML DTD allows a tag to implicitly close other tags.
|
||||
The list is kept in htmlStartClose array. This function checks
|
||||
if the element or one of it's children would autoclose the
|
||||
given tag.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the HTML document
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The tag name
|
||||
</td></tr><tr><td><span class="term"><i><tt>elem</tt></i> :</span></td><td> the HTML element
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if autoclose, 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseEntityRef"></a>htmlParseEntityRef ()</h3><pre class="programlisting">const <a href="libxml-HTMLparser.html#htmlEntityDesc">htmlEntityDesc</a>* htmlParseEntityRef (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> **str);</pre><p>
|
||||
parse an HTML ENTITY references
|
||||
</p><p>
|
||||
[68] EntityRef ::= '&' Name ';'</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an HTML parser context
|
||||
</td></tr><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> location to store the entity name
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the associated htmlEntityDescPtr if found, or NULL otherwise,
|
||||
if non-NULL *str will have to be freed by the caller.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseCharRef"></a>htmlParseCharRef ()</h3><pre class="programlisting">int htmlParseCharRef (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);</pre><p>
|
||||
parse Reference declarations
|
||||
</p><p>
|
||||
[66] CharRef ::= '&#' [0-9]+ ';' |
|
||||
'&<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="x">x</GTKDOCLINK>' [0-9a-fA-F]+ ';'</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an HTML parser context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the value parsed (as an int)
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseElement"></a>htmlParseElement ()</h3><pre class="programlisting">void htmlParseElement (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);</pre><p>
|
||||
parse an HTML element, this is highly recursive
|
||||
</p><p>
|
||||
[39] element ::= EmptyElemTag | STag content ETag
|
||||
</p><p>
|
||||
[41] Attribute ::= Name Eq AttValue</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an HTML parser context
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlCreateMemoryParserCtxt"></a>htmlCreateMemoryParserCtxt ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> htmlCreateMemoryParserCtxt
|
||||
(const char *buffer,
|
||||
int size);</pre><p>
|
||||
Create a parser context for an HTML in-memory document.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> a pointer to a char array
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> the size of the array
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser context or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseDocument"></a>htmlParseDocument ()</h3><pre class="programlisting">int htmlParseDocument (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);</pre><p>
|
||||
parse an HTML document (and build a tree if using the standard SAX
|
||||
interface).</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an HTML parser context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0, -1 in case of error. the parser context is augmented
|
||||
as a result of the parsing.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSAXParseDoc"></a>htmlSAXParseDoc ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> htmlSAXParseDoc (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding,
|
||||
<a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a> sax,
|
||||
void *userData);</pre><p>
|
||||
Parse an HTML in-memory document. If sax is not NULL, use the SAX callbacks
|
||||
to handle parse events. If sax is NULL, fallback to the default DOM
|
||||
behavior and return a tree.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> a pointer to an array of xmlChar
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the HTML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>sax</tt></i> :</span></td><td> the SAX handler block
|
||||
</td></tr><tr><td><span class="term"><i><tt>userData</tt></i> :</span></td><td> if using SAX, this pointer will be provided on callbacks.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree unless SAX is NULL or the document is
|
||||
not well formed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseDoc"></a>htmlParseDoc ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> htmlParseDoc (<a href="libxml-tree.html#xmlChar">xmlChar</a> *cur,
|
||||
const char *encoding);</pre><p>
|
||||
parse an HTML in-memory document and build a tree.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> a pointer to an array of xmlChar
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the HTML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSAXParseFile"></a>htmlSAXParseFile ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> htmlSAXParseFile (const char *filename,
|
||||
const char *encoding,
|
||||
<a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a> sax,
|
||||
void *userData);</pre><p>
|
||||
parse an HTML file and build a tree. Automatic support for ZLIB/Compress
|
||||
compressed document is provided by default if found at compile-time.
|
||||
It use the given SAX function block to handle the parsing callback.
|
||||
If sax is NULL, fallback to the default DOM tree building routines.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the HTML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>sax</tt></i> :</span></td><td> the SAX handler block
|
||||
</td></tr><tr><td><span class="term"><i><tt>userData</tt></i> :</span></td><td> if using SAX, this pointer will be provided on callbacks.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree unless SAX is NULL or the document is
|
||||
not well formed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseFile"></a>htmlParseFile ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> htmlParseFile (const char *filename,
|
||||
const char *encoding);</pre><p>
|
||||
parse an HTML file and build a tree. Automatic support for ZLIB/Compress
|
||||
compressed document is provided by default if found at compile-time.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> a free form C string describing the HTML document encoding, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the resulting document tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="UTF8ToHtml"></a>UTF8ToHtml ()</h3><pre class="programlisting">int UTF8ToHtml (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
int *inlen);</pre><p>
|
||||
Take a block of UTF-8 chars in and try to convert it to an ASCII
|
||||
plus HTML entities block of chars out.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i> :</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i> :</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if success, -2 if the transcoding fails, or -1 otherwise
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of octets consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlEncodeEntities"></a>htmlEncodeEntities ()</h3><pre class="programlisting">int htmlEncodeEntities (unsigned char *out,
|
||||
int *outlen,
|
||||
unsigned char *in,
|
||||
int *inlen,
|
||||
int quoteChar);</pre><p>
|
||||
Take a block of UTF-8 chars in and try to convert it to an ASCII
|
||||
plus HTML entities block of chars out.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a pointer to an array of bytes to store the result
|
||||
</td></tr><tr><td><span class="term"><i><tt>outlen</tt></i> :</span></td><td> the length of <i><tt>out</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a pointer to an array of UTF-8 chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>inlen</tt></i> :</span></td><td> the length of <i><tt>in</tt></i>
|
||||
</td></tr><tr><td><span class="term"><i><tt>quoteChar</tt></i> :</span></td><td> the quote character to escape (' or ") or zero.
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if success, -2 if the transcoding fails, or -1 otherwise
|
||||
The value of <i><tt>inlen</tt></i> after return is the number of octets consumed
|
||||
as the return value is positive, else unpredictable.
|
||||
The value of <i><tt>outlen</tt></i> after return is the number of octets consumed.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlIsScriptAttribute"></a>htmlIsScriptAttribute ()</h3><pre class="programlisting">int htmlIsScriptAttribute (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
Check if an attribute is of content type Script</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> an attribute name
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 is the attribute is a script 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlHandleOmittedElem"></a>htmlHandleOmittedElem ()</h3><pre class="programlisting">int htmlHandleOmittedElem (int val);</pre><p>
|
||||
Set and return the previous value for handling HTML omitted tags.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> int 0 or 1
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the last value for 0 for no handling, 1 for auto insertion.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlFreeParserCtxt"></a>htmlFreeParserCtxt ()</h3><pre class="programlisting">void htmlFreeParserCtxt (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt);</pre><p>
|
||||
Free all the memory used by a parser context. However the parsed
|
||||
document in ctxt->myDoc is not freed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an HTML parser context
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlCreatePushParserCtxt"></a>htmlCreatePushParserCtxt ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> htmlCreatePushParserCtxt (<a href="libxml-HTMLparser.html#htmlSAXHandlerPtr">htmlSAXHandlerPtr</a> sax,
|
||||
void *user_data,
|
||||
const char *chunk,
|
||||
int size,
|
||||
const char *filename,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a parser context for using the HTML parser in push mode
|
||||
The value of <i><tt>filename</tt></i> is used for fetching external entities
|
||||
and error/warning reports.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>sax</tt></i> :</span></td><td> a SAX handler
|
||||
</td></tr><tr><td><span class="term"><i><tt>user_data</tt></i> :</span></td><td> The user data returned on SAX callbacks
|
||||
</td></tr><tr><td><span class="term"><i><tt>chunk</tt></i> :</span></td><td> a pointer to an array of chars
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> number of chars in the array
|
||||
</td></tr><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> an optional file name or URI
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> an optional encoding
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser context or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlParseChunk"></a>htmlParseChunk ()</h3><pre class="programlisting">int htmlParseChunk (<a href="libxml-HTMLparser.html#htmlParserCtxtPtr">htmlParserCtxtPtr</a> ctxt,
|
||||
const char *chunk,
|
||||
int size,
|
||||
int terminate);</pre><p>
|
||||
Parse a Chunk of memory</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XML parser context
|
||||
</td></tr><tr><td><span class="term"><i><tt>chunk</tt></i> :</span></td><td> an char array
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> the size in byte of the chunk
|
||||
</td></tr><tr><td><span class="term"><i><tt>terminate</tt></i> :</span></td><td> last chunk indicator
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>zero if no error, the xmlParserErrors otherwise.
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-xmlerror.html"><b><< xmlerror</b></a></td><td align="right"><a accesskey="n" href="libxml-HTMLtree.html"><b>HTMLtree >></b></a></td></tr></table></body></html>
|
271
doc/html/libxml-HTMLtree.html
Normal file
271
doc/html/libxml-HTMLtree.html
Normal file
@ -0,0 +1,271 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>HTMLtree</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-HTMLparser.html" title="HTMLparser"><link rel="next" href="libxml-xpath.html" title="xpath"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-HTMLparser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-xpath.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-HTMLtree"></a><div class="titlepage"></div><div class="refnamediv"><h2>HTMLtree</h2><p>HTMLtree — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
#define <a href="libxml-HTMLtree.html#HTML-TEXT-NODE-CAPS">HTML_TEXT_NODE</a>
|
||||
#define <a href="libxml-HTMLtree.html#HTML-ENTITY-REF-NODE-CAPS">HTML_ENTITY_REF_NODE</a>
|
||||
#define <a href="libxml-HTMLtree.html#HTML-COMMENT-NODE-CAPS">HTML_COMMENT_NODE</a>
|
||||
#define <a href="libxml-HTMLtree.html#HTML-PRESERVE-NODE-CAPS">HTML_PRESERVE_NODE</a>
|
||||
#define <a href="libxml-HTMLtree.html#HTML-PI-NODE-CAPS">HTML_PI_NODE</a>
|
||||
<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> <a href="libxml-HTMLtree.html#htmlNewDoc">htmlNewDoc</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *URI,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID);
|
||||
<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> <a href="libxml-HTMLtree.html#htmlNewDocNoDtD">htmlNewDocNoDtD</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *URI,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID);
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-HTMLtree.html#htmlGetMetaEncoding">htmlGetMetaEncoding</a> (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc);
|
||||
int <a href="libxml-HTMLtree.html#htmlSetMetaEncoding">htmlSetMetaEncoding</a> (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *encoding);
|
||||
void <a href="libxml-HTMLtree.html#htmlDocDumpMemory">htmlDocDumpMemory</a> (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> **mem,
|
||||
int *size);
|
||||
int <a href="libxml-HTMLtree.html#htmlDocDump">htmlDocDump</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *f,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur);
|
||||
int <a href="libxml-HTMLtree.html#htmlSaveFile">htmlSaveFile</a> (const char *filename,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur);
|
||||
int <a href="libxml-HTMLtree.html#htmlNodeDump">htmlNodeDump</a> (<a href="libxml-tree.html#xmlBufferPtr">xmlBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);
|
||||
void <a href="libxml-HTMLtree.html#htmlNodeDumpFile">htmlNodeDumpFile</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *out,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);
|
||||
int <a href="libxml-HTMLtree.html#htmlNodeDumpFileFormat">htmlNodeDumpFileFormat</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *out,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);
|
||||
int <a href="libxml-HTMLtree.html#htmlSaveFileEnc">htmlSaveFileEnc</a> (const char *filename,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding);
|
||||
int <a href="libxml-HTMLtree.html#htmlSaveFileFormat">htmlSaveFileFormat</a> (const char *filename,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);
|
||||
void <a href="libxml-HTMLtree.html#htmlNodeDumpFormatOutput">htmlNodeDumpFormatOutput</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);
|
||||
void <a href="libxml-HTMLtree.html#htmlDocContentDumpOutput">htmlDocContentDumpOutput</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding);
|
||||
void <a href="libxml-HTMLtree.html#htmlDocContentDumpFormatOutput">htmlDocContentDumpFormatOutput</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);
|
||||
int <a href="libxml-HTMLtree.html#htmlIsBooleanAttr">htmlIsBooleanAttr</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
void <a href="libxml-HTMLtree.html#htmlNodeDumpOutput">htmlNodeDumpOutput</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur,
|
||||
const char *encoding);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="HTML-TEXT-NODE-CAPS"></a>HTML_TEXT_NODE</h3><pre class="programlisting">#define HTML_TEXT_NODE XML_TEXT_NODE
|
||||
</pre><p>
|
||||
Macro. A text node in a HTML document is really implemented
|
||||
the same way as a text node in an XML document.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="HTML-ENTITY-REF-NODE-CAPS"></a>HTML_ENTITY_REF_NODE</h3><pre class="programlisting">#define HTML_ENTITY_REF_NODE XML_ENTITY_REF_NODE
|
||||
</pre><p>
|
||||
Macro. An entity reference in a HTML document is really implemented
|
||||
the same way as an entity reference in an XML document.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="HTML-COMMENT-NODE-CAPS"></a>HTML_COMMENT_NODE</h3><pre class="programlisting">#define HTML_COMMENT_NODE XML_COMMENT_NODE
|
||||
</pre><p>
|
||||
Macro. A comment in a HTML document is really implemented
|
||||
the same way as a comment in an XML document.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="HTML-PRESERVE-NODE-CAPS"></a>HTML_PRESERVE_NODE</h3><pre class="programlisting">#define HTML_PRESERVE_NODE XML_CDATA_SECTION_NODE
|
||||
</pre><p>
|
||||
Macro. A preserved node in a HTML document is really implemented
|
||||
the same way as a CDATA section in an XML document.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="HTML-PI-NODE-CAPS"></a>HTML_PI_NODE</h3><pre class="programlisting">#define HTML_PI_NODE XML_PI_NODE
|
||||
</pre><p>
|
||||
Macro. A processing instruction in a HTML document is really implemented
|
||||
the same way as a processing instruction in an XML document.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNewDoc"></a>htmlNewDoc ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> htmlNewDoc (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *URI,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID);</pre><p>
|
||||
Creates a new HTML document</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>URI</tt></i> :</span></td><td> URI for the dtd, or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>ExternalID</tt></i> :</span></td><td> the external ID of the DTD, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a new document
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNewDocNoDtD"></a>htmlNewDocNoDtD ()</h3><pre class="programlisting"><a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> htmlNewDocNoDtD (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *URI,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID);</pre><p>
|
||||
Creates a new HTML document without a DTD node if <i><tt>URI</tt></i> and <i><tt>ExternalID</tt></i>
|
||||
are NULL</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>URI</tt></i> :</span></td><td> URI for the dtd, or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>ExternalID</tt></i> :</span></td><td> the external ID of the DTD, or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a new document, do not initialize the DTD if not provided
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlGetMetaEncoding"></a>htmlGetMetaEncoding ()</h3><pre class="programlisting">const <a href="libxml-tree.html#xmlChar">xmlChar</a>* htmlGetMetaEncoding (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc);</pre><p>
|
||||
Encoding definition lookup in the Meta tags</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the current encoding as flagged in the HTML source
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSetMetaEncoding"></a>htmlSetMetaEncoding ()</h3><pre class="programlisting">int htmlSetMetaEncoding (<a href="libxml-HTMLparser.html#htmlDocPtr">htmlDocPtr</a> doc,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *encoding);</pre><p>
|
||||
Sets the current encoding in the Meta tags
|
||||
NOTE: this will not change the document content encoding, just
|
||||
the META flag associated.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the encoding string
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success and -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDocDumpMemory"></a>htmlDocDumpMemory ()</h3><pre class="programlisting">void htmlDocDumpMemory (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> **mem,
|
||||
int *size);</pre><p>
|
||||
Dump an HTML document in memory and return the xmlChar * and it's size.
|
||||
It's up to the caller to free the memory.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>mem</tt></i> :</span></td><td> OUT: the memory pointer
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> OUT: the memory length
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDocDump"></a>htmlDocDump ()</h3><pre class="programlisting">int htmlDocDump (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *f,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur);</pre><p>
|
||||
Dump an HTML document to an open FILE.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>f</tt></i> :</span></td><td> the FILE*
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the number of byte written or -1 in case of failure.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSaveFile"></a>htmlSaveFile ()</h3><pre class="programlisting">int htmlSaveFile (const char *filename,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur);</pre><p>
|
||||
Dump an HTML document to a file. If <i><tt>filename</tt></i> is "-" the stdout file is
|
||||
used.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename (or URL)
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the number of byte written or -1 in case of failure.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNodeDump"></a>htmlNodeDump ()</h3><pre class="programlisting">int htmlNodeDump (<a href="libxml-tree.html#xmlBufferPtr">xmlBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p>
|
||||
Dump an HTML node, recursive behaviour,children are printed too,
|
||||
and formatting returns are added.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> the HTML buffer output
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNodeDumpFile"></a>htmlNodeDumpFile ()</h3><pre class="programlisting">void htmlNodeDumpFile (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *out,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p>
|
||||
Dump an HTML node, recursive behaviour,children are printed too,
|
||||
and formatting returns are added.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> the FILE pointer
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNodeDumpFileFormat"></a>htmlNodeDumpFileFormat ()</h3><pre class="programlisting">int htmlNodeDumpFileFormat (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *out,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);</pre><p>
|
||||
Dump an HTML node, recursive behaviour,children are printed too.
|
||||
</p><p>
|
||||
TODO: if encoding == NULL try to save in the doc encoding</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> the FILE pointer
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the document encoding
|
||||
</td></tr><tr><td><span class="term"><i><tt>format</tt></i> :</span></td><td> should formatting spaces been added
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the number of byte written or -1 in case of failure.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSaveFileEnc"></a>htmlSaveFileEnc ()</h3><pre class="programlisting">int htmlSaveFileEnc (const char *filename,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding);</pre><p>
|
||||
Dump an HTML document to a file using a given encoding
|
||||
and formatting returns/spaces are added.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the document encoding
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the number of byte written or -1 in case of failure.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlSaveFileFormat"></a>htmlSaveFileFormat ()</h3><pre class="programlisting">int htmlSaveFileFormat (const char *filename,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);</pre><p>
|
||||
Dump an HTML document to a file using a given encoding.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the document encoding
|
||||
</td></tr><tr><td><span class="term"><i><tt>format</tt></i> :</span></td><td> should formatting spaces been added
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> the number of byte written or -1 in case of failure.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNodeDumpFormatOutput"></a>htmlNodeDumpFormatOutput ()</h3><pre class="programlisting">void htmlNodeDumpFormatOutput (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);</pre><p>
|
||||
Dump an HTML node, recursive behaviour,children are printed too.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> the HTML buffer output
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the encoding string
|
||||
</td></tr><tr><td><span class="term"><i><tt>format</tt></i> :</span></td><td> should formatting spaces been added
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDocContentDumpOutput"></a>htmlDocContentDumpOutput ()</h3><pre class="programlisting">void htmlDocContentDumpOutput (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding);</pre><p>
|
||||
Dump an HTML document. Formating return/spaces are added.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> the HTML buffer output
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the encoding string
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDocContentDumpFormatOutput"></a>htmlDocContentDumpFormatOutput ()</h3><pre class="programlisting">void htmlDocContentDumpFormatOutput (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> cur,
|
||||
const char *encoding,
|
||||
int format);</pre><p>
|
||||
Dump an HTML document.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> the HTML buffer output
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the encoding string
|
||||
</td></tr><tr><td><span class="term"><i><tt>format</tt></i> :</span></td><td> should formatting spaces been added
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlIsBooleanAttr"></a>htmlIsBooleanAttr ()</h3><pre class="programlisting">int htmlIsBooleanAttr (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
Determine if a given attribute is a boolean attribute.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the name of the attribute to check
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> false if the attribute is not boolean, true otherwise.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlNodeDumpOutput"></a>htmlNodeDumpOutput ()</h3><pre class="programlisting">void htmlNodeDumpOutput (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> buf,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur,
|
||||
const char *encoding);</pre><p>
|
||||
Dump an HTML node, recursive behaviour,children are printed too,
|
||||
and formatting returns/spaces are added.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> the HTML buffer output
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoding</tt></i> :</span></td><td> the encoding string
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-HTMLparser.html"><b><< HTMLparser</b></a></td><td align="right"><a accesskey="n" href="libxml-xpath.html"><b>xpath >></b></a></td></tr></table></body></html>
|
420
doc/html/libxml-SAX.html
Normal file
420
doc/html/libxml-SAX.html
Normal file
@ -0,0 +1,420 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>SAX</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-xmlreader.html" title="xmlreader"><link rel="next" href="libxml-tree.html" title="tree"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-xmlreader.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-tree.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-SAX"></a><div class="titlepage"></div><div class="refnamediv"><h2>SAX</h2><p>SAX — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-SAX.html#getPublicId">getPublicId</a> (void *ctx);
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-SAX.html#getSystemId">getSystemId</a> (void *ctx);
|
||||
void <a href="libxml-SAX.html#setDocumentLocator">setDocumentLocator</a> (void *ctx,
|
||||
<a href="libxml-tree.html#xmlSAXLocatorPtr">xmlSAXLocatorPtr</a> loc);
|
||||
int <a href="libxml-SAX.html#getLineNumber">getLineNumber</a> (void *ctx);
|
||||
int <a href="libxml-SAX.html#getColumnNumber">getColumnNumber</a> (void *ctx);
|
||||
int <a href="libxml-SAX.html#isStandalone">isStandalone</a> (void *ctx);
|
||||
int <a href="libxml-SAX.html#hasInternalSubset">hasInternalSubset</a> (void *ctx);
|
||||
int <a href="libxml-SAX.html#hasExternalSubset">hasExternalSubset</a> (void *ctx);
|
||||
void <a href="libxml-SAX.html#internalSubset">internalSubset</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *SystemID);
|
||||
void <a href="libxml-SAX.html#externalSubset">externalSubset</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *SystemID);
|
||||
<a href="libxml-tree.html#xmlEntityPtr">xmlEntityPtr</a> <a href="libxml-SAX.html#getEntity">getEntity</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
<a href="libxml-tree.html#xmlEntityPtr">xmlEntityPtr</a> <a href="libxml-SAX.html#getParameterEntity">getParameterEntity</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
<a href="libxml-tree.html#xmlParserInputPtr">xmlParserInputPtr</a> <a href="libxml-SAX.html#resolveEntity">resolveEntity</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId);
|
||||
void <a href="libxml-SAX.html#entityDecl">entityDecl</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
int type,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> *content);
|
||||
void <a href="libxml-SAX.html#attributeDecl">attributeDecl</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *elem,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *fullname,
|
||||
int type,
|
||||
int def,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *defaultValue,
|
||||
<a href="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> tree);
|
||||
void <a href="libxml-SAX.html#elementDecl">elementDecl</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
int type,
|
||||
<a href="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> content);
|
||||
void <a href="libxml-SAX.html#notationDecl">notationDecl</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId);
|
||||
void <a href="libxml-SAX.html#unparsedEntityDecl">unparsedEntityDecl</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *notationName);
|
||||
void <a href="libxml-SAX.html#startDocument">startDocument</a> (void *ctx);
|
||||
void <a href="libxml-SAX.html#endDocument">endDocument</a> (void *ctx);
|
||||
void <a href="libxml-SAX.html#attribute">attribute</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *fullname,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *value);
|
||||
void <a href="libxml-SAX.html#startElement">startElement</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *fullname,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> **atts);
|
||||
void <a href="libxml-SAX.html#endElement">endElement</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
void <a href="libxml-SAX.html#reference">reference</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
void <a href="libxml-SAX.html#characters">characters</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ch,
|
||||
int len);
|
||||
void <a href="libxml-SAX.html#ignorableWhitespace">ignorableWhitespace</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ch,
|
||||
int len);
|
||||
void <a href="libxml-SAX.html#processingInstruction">processingInstruction</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *target,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *data);
|
||||
void <a href="libxml-SAX.html#globalNamespace">globalNamespace</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *href,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix);
|
||||
void <a href="libxml-SAX.html#setNamespace">setNamespace</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);
|
||||
<a href="libxml-tree.html#xmlNsPtr">xmlNsPtr</a> <a href="libxml-SAX.html#getNamespace">getNamespace</a> (void *ctx);
|
||||
int <a href="libxml-SAX.html#checkNamespace">checkNamespace</a> (void *ctx,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> *nameSpace);
|
||||
void <a href="libxml-SAX.html#namespaceDecl">namespaceDecl</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *href,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix);
|
||||
void <a href="libxml-SAX.html#comment">comment</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *value);
|
||||
void <a href="libxml-SAX.html#cdataBlock">cdataBlock</a> (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *value,
|
||||
int len);
|
||||
void <a href="libxml-SAX.html#initxmlDefaultSAXHandler">initxmlDefaultSAXHandler</a> (<a href="libxml-parser.html#xmlSAXHandler">xmlSAXHandler</a> *hdlr,
|
||||
int warning);
|
||||
void <a href="libxml-SAX.html#inithtmlDefaultSAXHandler">inithtmlDefaultSAXHandler</a> (<a href="libxml-parser.html#xmlSAXHandler">xmlSAXHandler</a> *hdlr);
|
||||
void <a href="libxml-SAX.html#initdocbDefaultSAXHandler">initdocbDefaultSAXHandler</a> (<a href="libxml-parser.html#xmlSAXHandler">xmlSAXHandler</a> *hdlr);
|
||||
void <a href="libxml-SAX.html#xmlDefaultSAXHandlerInit">xmlDefaultSAXHandlerInit</a> (void);
|
||||
void <a href="libxml-SAX.html#htmlDefaultSAXHandlerInit">htmlDefaultSAXHandlerInit</a> (void);
|
||||
void <a href="libxml-SAX.html#docbDefaultSAXHandlerInit">docbDefaultSAXHandlerInit</a> (void);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="getPublicId"></a>getPublicId ()</h3><pre class="programlisting">const <a href="libxml-tree.html#xmlChar">xmlChar</a>* getPublicId (void *ctx);</pre><p>
|
||||
Provides the public ID e.g. "-//SGMLSOURCE//DTD DEMO//EN"</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a xmlChar *
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="getSystemId"></a>getSystemId ()</h3><pre class="programlisting">const <a href="libxml-tree.html#xmlChar">xmlChar</a>* getSystemId (void *ctx);</pre><p>
|
||||
Provides the system ID, basically URL or filename e.g.
|
||||
http://www.sgmlsource.com/dtds/memo.dtd</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a xmlChar *
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="setDocumentLocator"></a>setDocumentLocator ()</h3><pre class="programlisting">void setDocumentLocator (void *ctx,
|
||||
<a href="libxml-tree.html#xmlSAXLocatorPtr">xmlSAXLocatorPtr</a> loc);</pre><p>
|
||||
Receive the document locator at startup, actually xmlDefaultSAXLocator
|
||||
Everything is available on the context, so this is useless in our case.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>loc</tt></i> :</span></td><td> A SAX Locator
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="getLineNumber"></a>getLineNumber ()</h3><pre class="programlisting">int getLineNumber (void *ctx);</pre><p>
|
||||
Provide the line number of the current parsing point.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>an int
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="getColumnNumber"></a>getColumnNumber ()</h3><pre class="programlisting">int getColumnNumber (void *ctx);</pre><p>
|
||||
Provide the column number of the current parsing point.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>an int
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="isStandalone"></a>isStandalone ()</h3><pre class="programlisting">int isStandalone (void *ctx);</pre><p>
|
||||
Is this document tagged standalone ?</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if true
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="hasInternalSubset"></a>hasInternalSubset ()</h3><pre class="programlisting">int hasInternalSubset (void *ctx);</pre><p>
|
||||
Does this document has an internal subset</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if true
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="hasExternalSubset"></a>hasExternalSubset ()</h3><pre class="programlisting">int hasExternalSubset (void *ctx);</pre><p>
|
||||
Does this document has an external subset</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if true
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="internalSubset"></a>internalSubset ()</h3><pre class="programlisting">void internalSubset (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *SystemID);</pre><p>
|
||||
Callback on internal subset declaration.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the root element name
|
||||
</td></tr><tr><td><span class="term"><i><tt>ExternalID</tt></i> :</span></td><td> the external ID
|
||||
</td></tr><tr><td><span class="term"><i><tt>SystemID</tt></i> :</span></td><td> the SYSTEM ID (e.g. filename or URL)
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="externalSubset"></a>externalSubset ()</h3><pre class="programlisting">void externalSubset (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ExternalID,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *SystemID);</pre><p>
|
||||
Callback on external subset declaration.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the root element name
|
||||
</td></tr><tr><td><span class="term"><i><tt>ExternalID</tt></i> :</span></td><td> the external ID
|
||||
</td></tr><tr><td><span class="term"><i><tt>SystemID</tt></i> :</span></td><td> the SYSTEM ID (e.g. filename or URL)
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="getEntity"></a>getEntity ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlEntityPtr">xmlEntityPtr</a> getEntity (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
Get an entity by name</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The entity name
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlEntityPtr if found.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="getParameterEntity"></a>getParameterEntity ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlEntityPtr">xmlEntityPtr</a> getParameterEntity (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
Get a parameter entity by name</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The entity name
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlEntityPtr if found.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="resolveEntity"></a>resolveEntity ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputPtr">xmlParserInputPtr</a> resolveEntity (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId);</pre><p>
|
||||
The entity loader, to control the loading of external entities,
|
||||
the application can either:
|
||||
- override this <a href="libxml-SAX.html#resolveEntity">resolveEntity</a>() callback in the SAX block
|
||||
- or better use the <a href="libxml-parser.html#xmlSetExternalEntityLoader">xmlSetExternalEntityLoader</a>() function to
|
||||
set up it's own entity resolution routine</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>publicId</tt></i> :</span></td><td> The public ID of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>systemId</tt></i> :</span></td><td> The system ID of the entity
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlParserInputPtr if inlined or NULL for DOM behaviour.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="entityDecl"></a>entityDecl ()</h3><pre class="programlisting">void entityDecl (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
int type,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> *content);</pre><p>
|
||||
An entity definition has been parsed</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the entity name
|
||||
</td></tr><tr><td><span class="term"><i><tt>type</tt></i> :</span></td><td> the entity type
|
||||
</td></tr><tr><td><span class="term"><i><tt>publicId</tt></i> :</span></td><td> The public ID of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>systemId</tt></i> :</span></td><td> The system ID of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>content</tt></i> :</span></td><td> the entity value (without processing).
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="attributeDecl"></a>attributeDecl ()</h3><pre class="programlisting">void attributeDecl (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *elem,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *fullname,
|
||||
int type,
|
||||
int def,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *defaultValue,
|
||||
<a href="libxml-tree.html#xmlEnumerationPtr">xmlEnumerationPtr</a> tree);</pre><p>
|
||||
An attribute definition has been parsed</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>elem</tt></i> :</span></td><td> the name of the element
|
||||
</td></tr><tr><td><span class="term"><i><tt>fullname</tt></i> :</span></td><td> the attribute name
|
||||
</td></tr><tr><td><span class="term"><i><tt>type</tt></i> :</span></td><td> the attribute type
|
||||
</td></tr><tr><td><span class="term"><i><tt>def</tt></i> :</span></td><td> the type of default value
|
||||
</td></tr><tr><td><span class="term"><i><tt>defaultValue</tt></i> :</span></td><td> the attribute default value
|
||||
</td></tr><tr><td><span class="term"><i><tt>tree</tt></i> :</span></td><td> the tree of enumerated value set
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="elementDecl"></a>elementDecl ()</h3><pre class="programlisting">void elementDecl (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
int type,
|
||||
<a href="libxml-tree.html#xmlElementContentPtr">xmlElementContentPtr</a> content);</pre><p>
|
||||
An element definition has been parsed</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the element name
|
||||
</td></tr><tr><td><span class="term"><i><tt>type</tt></i> :</span></td><td> the element type
|
||||
</td></tr><tr><td><span class="term"><i><tt>content</tt></i> :</span></td><td> the element value tree
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="notationDecl"></a>notationDecl ()</h3><pre class="programlisting">void notationDecl (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId);</pre><p>
|
||||
What to do when a notation declaration has been parsed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The name of the notation
|
||||
</td></tr><tr><td><span class="term"><i><tt>publicId</tt></i> :</span></td><td> The public ID of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>systemId</tt></i> :</span></td><td> The system ID of the entity
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="unparsedEntityDecl"></a>unparsedEntityDecl ()</h3><pre class="programlisting">void unparsedEntityDecl (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *publicId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *systemId,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *notationName);</pre><p>
|
||||
What to do when an unparsed entity declaration is parsed</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The name of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>publicId</tt></i> :</span></td><td> The public ID of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>systemId</tt></i> :</span></td><td> The system ID of the entity
|
||||
</td></tr><tr><td><span class="term"><i><tt>notationName</tt></i> :</span></td><td> the name of the notation
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="startDocument"></a>startDocument ()</h3><pre class="programlisting">void startDocument (void *ctx);</pre><p>
|
||||
called when the document start being processed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="endDocument"></a>endDocument ()</h3><pre class="programlisting">void endDocument (void *ctx);</pre><p>
|
||||
called when the document end has been detected.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="attribute"></a>attribute ()</h3><pre class="programlisting">void attribute (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *fullname,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *value);</pre><p>
|
||||
Handle an attribute that has been read by the parser.
|
||||
The default handling is to convert the attribute into an
|
||||
DOM subtree and past it in a new xmlAttr element added to
|
||||
the element.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>fullname</tt></i> :</span></td><td> The attribute name, including namespace prefix
|
||||
</td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> The attribute value
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="startElement"></a>startElement ()</h3><pre class="programlisting">void startElement (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *fullname,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> **atts);</pre><p>
|
||||
called when an opening tag has been processed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>fullname</tt></i> :</span></td><td> The element name, including namespace prefix
|
||||
</td></tr><tr><td><span class="term"><i><tt>atts</tt></i> :</span></td><td> An array of name/value attributes pairs, NULL terminated
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="endElement"></a>endElement ()</h3><pre class="programlisting">void endElement (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
called when the end of an element has been detected.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The element name
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="reference"></a>reference ()</h3><pre class="programlisting">void reference (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
called when an entity reference is detected.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> The entity name
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="characters"></a>characters ()</h3><pre class="programlisting">void characters (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ch,
|
||||
int len);</pre><p>
|
||||
receiving some chars from the parser.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>ch</tt></i> :</span></td><td> a xmlChar string
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the number of xmlChar
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="ignorableWhitespace"></a>ignorableWhitespace ()</h3><pre class="programlisting">void ignorableWhitespace (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ch,
|
||||
int len);</pre><p>
|
||||
receiving some ignorable whitespaces from the parser.
|
||||
UNUSED: by default the DOM building will use characters</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>ch</tt></i> :</span></td><td> a xmlChar string
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the number of xmlChar
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="processingInstruction"></a>processingInstruction ()</h3><pre class="programlisting">void processingInstruction (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *target,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *data);</pre><p>
|
||||
A processing instruction has been parsed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>target</tt></i> :</span></td><td> the target name
|
||||
</td></tr><tr><td><span class="term"><i><tt>data</tt></i> :</span></td><td> the PI data's
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="globalNamespace"></a>globalNamespace ()</h3><pre class="programlisting">void globalNamespace (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *href,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix);</pre><p>
|
||||
An old global namespace has been parsed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>href</tt></i> :</span></td><td> the namespace associated URN
|
||||
</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i> :</span></td><td> the namespace prefix
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="setNamespace"></a>setNamespace ()</h3><pre class="programlisting">void setNamespace (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p>
|
||||
Set the current element namespace.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the namespace prefix
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="getNamespace"></a>getNamespace ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNsPtr">xmlNsPtr</a> getNamespace (void *ctx);</pre><p>
|
||||
Get the current element namespace.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlNsPtr or NULL if none
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="checkNamespace"></a>checkNamespace ()</h3><pre class="programlisting">int checkNamespace (void *ctx,
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a> *nameSpace);</pre><p>
|
||||
Check that the current element namespace is the same as the
|
||||
one read upon parsing.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>nameSpace</tt></i> :</span></td><td> the namespace to check against
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if true 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="namespaceDecl"></a>namespaceDecl ()</h3><pre class="programlisting">void namespaceDecl (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *href,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix);</pre><p>
|
||||
A namespace has been parsed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>href</tt></i> :</span></td><td> the namespace associated URN
|
||||
</td></tr><tr><td><span class="term"><i><tt>prefix</tt></i> :</span></td><td> the namespace prefix
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="comment"></a>comment ()</h3><pre class="programlisting">void comment (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *value);</pre><p>
|
||||
A comment has been parsed.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> the comment content
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="cdataBlock"></a>cdataBlock ()</h3><pre class="programlisting">void cdataBlock (void *ctx,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *value,
|
||||
int len);</pre><p>
|
||||
called when a pcdata block has been parsed</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctx</tt></i> :</span></td><td> the user data (XML parser context)
|
||||
</td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> The pcdata content
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the block length
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="initxmlDefaultSAXHandler"></a>initxmlDefaultSAXHandler ()</h3><pre class="programlisting">void initxmlDefaultSAXHandler (<a href="libxml-parser.html#xmlSAXHandler">xmlSAXHandler</a> *hdlr,
|
||||
int warning);</pre><p>
|
||||
Initialize the default XML SAX handler</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>hdlr</tt></i> :</span></td><td> the SAX handler
|
||||
</td></tr><tr><td><span class="term"><i><tt>warning</tt></i> :</span></td><td> flag if non-zero sets the handler warning procedure
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="inithtmlDefaultSAXHandler"></a>inithtmlDefaultSAXHandler ()</h3><pre class="programlisting">void inithtmlDefaultSAXHandler (<a href="libxml-parser.html#xmlSAXHandler">xmlSAXHandler</a> *hdlr);</pre><p>
|
||||
Initialize the default HTML SAX handler</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>hdlr</tt></i> :</span></td><td> the SAX handler
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="initdocbDefaultSAXHandler"></a>initdocbDefaultSAXHandler ()</h3><pre class="programlisting">void initdocbDefaultSAXHandler (<a href="libxml-parser.html#xmlSAXHandler">xmlSAXHandler</a> *hdlr);</pre><p>
|
||||
Initialize the default DocBook SAX handler</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>hdlr</tt></i> :</span></td><td> the SAX handler
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDefaultSAXHandlerInit"></a>xmlDefaultSAXHandlerInit ()</h3><pre class="programlisting">void xmlDefaultSAXHandlerInit (void);</pre><p>
|
||||
Initialize the default SAX handler</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDefaultSAXHandlerInit"></a>htmlDefaultSAXHandlerInit ()</h3><pre class="programlisting">void htmlDefaultSAXHandlerInit (void);</pre><p>
|
||||
Initialize the default SAX handler</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbDefaultSAXHandlerInit"></a>docbDefaultSAXHandlerInit ()</h3><pre class="programlisting">void docbDefaultSAXHandlerInit (void);</pre><p>
|
||||
Initialize the default SAX handler</p><p>
|
||||
|
||||
</p></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-xmlreader.html"><b><< xmlreader</b></a></td><td align="right"><a accesskey="n" href="libxml-tree.html"><b>tree >></b></a></td></tr></table></body></html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
385
doc/html/libxml-debugXML.html
Normal file
385
doc/html/libxml-debugXML.html
Normal file
@ -0,0 +1,385 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>debugXML</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-hash.html" title="hash"><link rel="next" href="libxml-xmlmemory.html" title="xmlmemory"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-hash.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-xmlmemory.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-debugXML"></a><div class="titlepage"></div><div class="refnamediv"><h2>debugXML</h2><p>debugXML — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpString">xmlDebugDumpString</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpAttr">xmlDebugDumpAttr</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr,
|
||||
int depth);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpAttrList">xmlDebugDumpAttrList</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr,
|
||||
int depth);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpOneNode">xmlDebugDumpOneNode</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
int depth);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpNode">xmlDebugDumpNode</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
int depth);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpNodeList">xmlDebugDumpNodeList</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
int depth);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpDocumentHead">xmlDebugDumpDocumentHead</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpDocument">xmlDebugDumpDocument</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpDTD">xmlDebugDumpDTD</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd);
|
||||
void <a href="libxml-debugXML.html#xmlDebugDumpEntities">xmlDebugDumpEntities</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
|
||||
void <a href="libxml-debugXML.html#xmlLsOneNode">xmlLsOneNode</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);
|
||||
int <a href="libxml-debugXML.html#xmlLsCountNode">xmlLsCountNode</a> (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);
|
||||
char* (<a href="libxml-debugXML.html#xmlShellReadlineFunc">*xmlShellReadlineFunc</a>) (char *prompt);
|
||||
struct <a href="libxml-debugXML.html#xmlShellCtxt">xmlShellCtxt</a>;
|
||||
typedef <a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a>;
|
||||
int (<a href="libxml-debugXML.html#xmlShellCmd">*xmlShellCmd</a>) (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
void <a href="libxml-debugXML.html#xmlShellPrintXPathError">xmlShellPrintXPathError</a> (int errorType,
|
||||
const char *arg);
|
||||
void <a href="libxml-debugXML.html#xmlShellPrintNode">xmlShellPrintNode</a> (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);
|
||||
void <a href="libxml-debugXML.html#xmlShellPrintXPathResult">xmlShellPrintXPathResult</a> (<a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> list);
|
||||
int <a href="libxml-debugXML.html#xmlShellList">xmlShellList</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellBase">xmlShellBase</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellDir">xmlShellDir</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellCat">xmlShellCat</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellLoad">xmlShellLoad</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *filename,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellWrite">xmlShellWrite</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *filename,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellSave">xmlShellSave</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *filename,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellValidate">xmlShellValidate</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *dtd,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellDu">xmlShellDu</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> tree,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
int <a href="libxml-debugXML.html#xmlShellPwd">xmlShellPwd</a> (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *buffer,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);
|
||||
void <a href="libxml-debugXML.html#xmlShell">xmlShell</a> (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
char *filename,
|
||||
<a href="libxml-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input,
|
||||
<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpString"></a>xmlDebugDumpString ()</h3><pre class="programlisting">void xmlDebugDumpString (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str);</pre><p>
|
||||
Dumps informations about the string, shorten it if necessary</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> the string
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpAttr"></a>xmlDebugDumpAttr ()</h3><pre class="programlisting">void xmlDebugDumpAttr (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr,
|
||||
int depth);</pre><p>
|
||||
Dumps debug information for the attribute</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>attr</tt></i> :</span></td><td> the attribute
|
||||
</td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> the indentation level.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpAttrList"></a>xmlDebugDumpAttrList ()</h3><pre class="programlisting">void xmlDebugDumpAttrList (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlAttrPtr">xmlAttrPtr</a> attr,
|
||||
int depth);</pre><p>
|
||||
Dumps debug information for the attribute list</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>attr</tt></i> :</span></td><td> the attribute list
|
||||
</td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> the indentation level.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpOneNode"></a>xmlDebugDumpOneNode ()</h3><pre class="programlisting">void xmlDebugDumpOneNode (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
int depth);</pre><p>
|
||||
Dumps debug information for the element node, it is not recursive</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> the node
|
||||
</td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> the indentation level.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpNode"></a>xmlDebugDumpNode ()</h3><pre class="programlisting">void xmlDebugDumpNode (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
int depth);</pre><p>
|
||||
Dumps debug information for the element node, it is recursive</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> the node
|
||||
</td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> the indentation level.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpNodeList"></a>xmlDebugDumpNodeList ()</h3><pre class="programlisting">void xmlDebugDumpNodeList (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
int depth);</pre><p>
|
||||
Dumps debug information for the list of element node, it is recursive</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> the node list
|
||||
</td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> the indentation level.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDocumentHead"></a>xmlDebugDumpDocumentHead ()</h3><pre class="programlisting">void xmlDebugDumpDocumentHead (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p>
|
||||
Dumps debug information cncerning the document, not recursive</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDocument"></a>xmlDebugDumpDocument ()</h3><pre class="programlisting">void xmlDebugDumpDocument (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p>
|
||||
Dumps debug information for the document, it's recursive</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpDTD"></a>xmlDebugDumpDTD ()</h3><pre class="programlisting">void xmlDebugDumpDTD (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDtdPtr">xmlDtdPtr</a> dtd);</pre><p>
|
||||
Dumps debug information for the DTD</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>dtd</tt></i> :</span></td><td> the DTD
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDebugDumpEntities"></a>xmlDebugDumpEntities ()</h3><pre class="programlisting">void xmlDebugDumpEntities (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p>
|
||||
Dumps debug information for all the entities in use by the document</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the document
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlLsOneNode"></a>xmlLsOneNode ()</h3><pre class="programlisting">void xmlLsOneNode (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p>
|
||||
Dump to <i><tt>output</tt></i> the type and name of <i><tt>node</tt></i>.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> the node to dump
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlLsCountNode"></a>xmlLsCountNode ()</h3><pre class="programlisting">int xmlLsCountNode (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p>
|
||||
Count the children of <i><tt>node</tt></i>.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> the node to count
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of children of <i><tt>node</tt></i>.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellReadlineFunc"></a>xmlShellReadlineFunc ()</h3><pre class="programlisting">char* (*xmlShellReadlineFunc) (char *prompt);</pre><p>
|
||||
This is a generic signature for the XML shell input function.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>prompt</tt></i> :</span></td><td> a string prompt
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a string which will be freed by the Shell.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCtxt"></a>struct xmlShellCtxt</h3><pre class="programlisting">struct xmlShellCtxt {
|
||||
char *filename;
|
||||
xmlDocPtr doc;
|
||||
xmlNodePtr node;
|
||||
xmlXPathContextPtr pctxt;
|
||||
int loaded;
|
||||
FILE *output;
|
||||
xmlShellReadlineFunc input;
|
||||
};
|
||||
</pre><p>
|
||||
A debugging shell context.
|
||||
TODO: add the defined function tables.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCtxtPtr"></a>xmlShellCtxtPtr</h3><pre class="programlisting">typedef xmlShellCtxt *xmlShellCtxtPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCmd"></a>xmlShellCmd ()</h3><pre class="programlisting">int (*xmlShellCmd) (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
This is a generic signature for the XML shell functions.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> a shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> a string argument
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a first node
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> a second node
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>an int, negative returns indicating errors.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPrintXPathError"></a>xmlShellPrintXPathError ()</h3><pre class="programlisting">void xmlShellPrintXPathError (int errorType,
|
||||
const char *arg);</pre><p>
|
||||
Print the xpath error to libxml default error channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>errorType</tt></i> :</span></td><td> valid xpath error id
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> the argument that cause xpath to fail
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPrintNode"></a>xmlShellPrintNode ()</h3><pre class="programlisting">void xmlShellPrintNode (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p>
|
||||
Print node to the output FILE</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a non-null node to print to the output FILE
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPrintXPathResult"></a>xmlShellPrintXPathResult ()</h3><pre class="programlisting">void xmlShellPrintXPathResult (<a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> list);</pre><p>
|
||||
Prints result to the output FILE</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>list</tt></i> :</span></td><td> a valid result generated by an xpath evaluation
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellList"></a>xmlShellList ()</h3><pre class="programlisting">int xmlShellList (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "ls"
|
||||
Does an Unix like listing of the given node (like a directory)</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellBase"></a>xmlShellBase ()</h3><pre class="programlisting">int xmlShellBase (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "base"
|
||||
dumps the current XML base of the node</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellDir"></a>xmlShellDir ()</h3><pre class="programlisting">int xmlShellDir (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "dir"
|
||||
dumps informations about the node (namespace, attributes, content).</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellCat"></a>xmlShellCat ()</h3><pre class="programlisting">int xmlShellCat (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "cat"
|
||||
dumps the serialization node content (XML or HTML).</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellLoad"></a>xmlShellLoad ()</h3><pre class="programlisting">int xmlShellLoad (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *filename,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "load"
|
||||
loads a new document specified by the filename</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the file name
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 if loading failed
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellWrite"></a>xmlShellWrite ()</h3><pre class="programlisting">int xmlShellWrite (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *filename,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "write"
|
||||
Write the current node to the filename, it saves the serialization
|
||||
of the subtree under the <i><tt>node</tt></i> specified</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the file name
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node in the tree
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellSave"></a>xmlShellSave ()</h3><pre class="programlisting">int xmlShellSave (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *filename,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "save"
|
||||
Write the current document to the filename, or it's original name</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the file name (optional)
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellValidate"></a>xmlShellValidate ()</h3><pre class="programlisting">int xmlShellValidate (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *dtd,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "validate"
|
||||
Validate the document, if a DTD path is provided, then the validation
|
||||
is done against the given DTD.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>dtd</tt></i> :</span></td><td> the DTD URI (optional)
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellDu"></a>xmlShellDu ()</h3><pre class="programlisting">int xmlShellDu (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *arg,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> tree,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "du"
|
||||
show the structure of the subtree under node <i><tt>tree</tt></i>
|
||||
If <i><tt>tree</tt></i> is null, the command works on the current node.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>arg</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><i><tt>tree</tt></i> :</span></td><td> a node defining a subtree
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShellPwd"></a>xmlShellPwd ()</h3><pre class="programlisting">int xmlShellPwd (<a href="libxml-debugXML.html#xmlShellCtxtPtr">xmlShellCtxtPtr</a> ctxt,
|
||||
char *buffer,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node,
|
||||
<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node2);</pre><p>
|
||||
Implements the XML shell function "pwd"
|
||||
Show the full path from the root to the node, if needed building
|
||||
thumblers when similar elements exists at a given ancestor level.
|
||||
The output is compatible with XPath commands.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the shell context
|
||||
</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> the output buffer
|
||||
</td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node
|
||||
</td></tr><tr><td><span class="term"><i><tt>node2</tt></i> :</span></td><td> unused
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlShell"></a>xmlShell ()</h3><pre class="programlisting">void xmlShell (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc,
|
||||
char *filename,
|
||||
<a href="libxml-debugXML.html#xmlShellReadlineFunc">xmlShellReadlineFunc</a> input,
|
||||
<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output);</pre><p>
|
||||
Implements the XML shell
|
||||
This allow to load, validate, view, modify and save a document
|
||||
using a environment similar to a UNIX commandline.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> the initial document
|
||||
</td></tr><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the output buffer
|
||||
</td></tr><tr><td><span class="term"><i><tt>input</tt></i> :</span></td><td> the line reading function
|
||||
</td></tr><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the output FILE*, defaults to stdout if NULL
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-hash.html"><b><< hash</b></a></td><td align="right"><a accesskey="n" href="libxml-xmlmemory.html"><b>xmlmemory >></b></a></td></tr></table></body></html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,393 +1,34 @@
|
||||
<HTML
|
||||
><HEAD
|
||||
><TITLE
|
||||
>Libxml Library Reference</TITLE
|
||||
><META
|
||||
NAME="GENERATOR"
|
||||
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||
"><LINK
|
||||
REL="HOME"
|
||||
TITLE="Gnome XML Library Reference Manual"
|
||||
HREF="book1.html"><LINK
|
||||
REL="PREVIOUS"
|
||||
TITLE="Libxml Programming Notes"
|
||||
HREF="libxml-notes.html"><LINK
|
||||
REL="NEXT"
|
||||
TITLE="parser"
|
||||
HREF="libxml-parser.html"></HEAD
|
||||
><BODY
|
||||
CLASS="CHAPTER"
|
||||
BGCOLOR="#FFFFFF"
|
||||
TEXT="#000000"
|
||||
LINK="#0000FF"
|
||||
VLINK="#840084"
|
||||
ALINK="#0000FF"
|
||||
><DIV
|
||||
CLASS="NAVHEADER"
|
||||
><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
BGCOLOR="#000000"
|
||||
CELLPADDING="1"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TH
|
||||
COLSPAN="4"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="5"
|
||||
>Gnome XML Library Reference Manual</FONT
|
||||
></TH
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="left"
|
||||
><A
|
||||
HREF="libxml-notes.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><<< Previous Page</B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#0000C0"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Home</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#00C000"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
> </B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="right"
|
||||
><A
|
||||
HREF="libxml-parser.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Next Page >>></B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="CHAPTER"
|
||||
><H1
|
||||
><A
|
||||
NAME="LIBXML-LIB"
|
||||
></A
|
||||
>Libxml Library Reference</H1
|
||||
><DIV
|
||||
CLASS="TOC"
|
||||
><DL
|
||||
><DT
|
||||
><B
|
||||
>Table of Contents</B
|
||||
></DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-parser.html"
|
||||
>parser</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlreader.html"
|
||||
>xmlreader</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-sax.html"
|
||||
>SAX</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-tree.html"
|
||||
>tree</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-entities.html"
|
||||
>entities</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-valid.html"
|
||||
>valid</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-relaxng.html"
|
||||
>relaxng</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-uri.html"
|
||||
>uri</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlerror.html"
|
||||
>xmlerror</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-htmlparser.html"
|
||||
>HTMLparser</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-htmltree.html"
|
||||
>HTMLtree</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xpath.html"
|
||||
>xpath</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xpathinternals.html"
|
||||
>xpathInternals</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xpointer.html"
|
||||
>xpointer</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xinclude.html"
|
||||
>xinclude</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-nanohttp.html"
|
||||
>nanohttp</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-nanoftp.html"
|
||||
>nanoftp</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlio.html"
|
||||
>xmlIO</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-catalog.html"
|
||||
>catalog</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-c14n.html"
|
||||
>c14n</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-threads.html"
|
||||
>threads</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-globals.html"
|
||||
>globals</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-docbparser.html"
|
||||
>DOCBparser</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-parserinternals.html"
|
||||
>parserInternals</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-encoding.html"
|
||||
>encoding</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-hash.html"
|
||||
>hash</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-debugxml.html"
|
||||
>debugXML</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlmemory.html"
|
||||
>xmlmemory</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlregexp.html"
|
||||
>xmlregexp</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlautomata.html"
|
||||
>xmlautomata</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlunicode.html"
|
||||
>xmlunicode</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlschemas.html"
|
||||
>xmlschemas</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-xmlschemastypes.html"
|
||||
>xmlschemastypes</A
|
||||
> -- </DT
|
||||
><DT
|
||||
><A
|
||||
HREF="libxml-schemasinternals.html"
|
||||
>schemasInternals</A
|
||||
> -- </DT
|
||||
></DL
|
||||
></DIV
|
||||
><P
|
||||
>This section contains the API reference for libxml. All
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Libxml Library Reference</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="index.html" title="Gnome XML Library Reference Manual"><link rel="previous" href="libxml-notes.html" title="Libxml Programming Notes"><link rel="next" href="libxml-parser.html" title="parser"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-notes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-parser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><h2 class="title"><a name="libxml-lib"></a>Libxml Library Reference</h2></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><a href="libxml-parser.html">parser</a> - </dt><dt><a href="libxml-xmlreader.html">xmlreader</a> - </dt><dt><a href="libxml-SAX.html">SAX</a> - </dt><dt><a href="libxml-tree.html">tree</a> - </dt><dt><a href="libxml-entities.html">entities</a> - </dt><dt><a href="libxml-valid.html">valid</a> - </dt><dt><a href="libxml-relaxng.html">relaxng</a> - </dt><dt><a href="libxml-uri.html">uri</a> - </dt><dt><a href="libxml-xmlerror.html">xmlerror</a> - </dt><dt><a href="libxml-HTMLparser.html">HTMLparser</a> - </dt><dt><a href="libxml-HTMLtree.html">HTMLtree</a> - </dt><dt><a href="libxml-xpath.html">xpath</a> - </dt><dt><a href="libxml-xpathInternals.html">xpathInternals</a> - </dt><dt><a href="libxml-xpointer.html">xpointer</a> - </dt><dt><a href="libxml-xinclude.html">xinclude</a> - </dt><dt><a href="libxml-nanohttp.html">nanohttp</a> - </dt><dt><a href="libxml-nanoftp.html">nanoftp</a> - </dt><dt><a href="libxml-xmlIO.html">xmlIO</a> - </dt><dt><a href="libxml-catalog.html">catalog</a> - </dt><dt><a href="libxml-c14n.html">c14n</a> - </dt><dt><a href="libxml-threads.html">threads</a> - </dt><dt><a href="libxml-globals.html">globals</a> - </dt><dt><a href="libxml-DOCBparser.html">DOCBparser</a> - </dt><dt><a href="libxml-parserInternals.html">parserInternals</a> - </dt><dt><a href="libxml-encoding.html">encoding</a> - </dt><dt><a href="libxml-hash.html">hash</a> - </dt><dt><a href="libxml-debugXML.html">debugXML</a> - </dt><dt><a href="libxml-xmlmemory.html">xmlmemory</a> - </dt><dt><a href="libxml-xmlregexp.html">xmlregexp</a> - </dt><dt><a href="libxml-xmlautomata.html">xmlautomata</a> - </dt><dt><a href="libxml-xmlunicode.html">xmlunicode</a> - </dt><dt><a href="libxml-xmlschemas.html">xmlschemas</a> - </dt><dt><a href="libxml-xmlschemastypes.html">xmlschemastypes</a> - </dt><dt><a href="libxml-schemasInternals.html">schemasInternals</a> - </dt></dl></div><p>This section contains the API reference for libxml. All
|
||||
the public interfaces are documented here. This reference guide is
|
||||
build by extracting comments from the code sources. </P
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="NAVFOOTER"
|
||||
><BR
|
||||
CLEAR="all"><BR><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
BGCOLOR="#000000"
|
||||
CELLPADDING="1"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="left"
|
||||
><A
|
||||
HREF="libxml-notes.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><<< Previous Page</B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#0000C0"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Home</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#00C000"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
> </B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="right"
|
||||
><A
|
||||
HREF="libxml-parser.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Next Page >>></B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
COLSPAN="2"
|
||||
ALIGN="left"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Libxml Programming Notes</B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
COLSPAN="2"
|
||||
ALIGN="right"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>parser</B
|
||||
></FONT
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
build by extracting comments from the code sources. </p></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-notes.html"><b><< Libxml Programming Notes</b></a></td><td align="right"><a accesskey="n" href="libxml-parser.html"><b>parser >></b></a></td></tr></table></body></html>
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,214 +1,34 @@
|
||||
<HTML
|
||||
><HEAD
|
||||
><TITLE
|
||||
>Libxml Programming Notes</TITLE
|
||||
><META
|
||||
NAME="GENERATOR"
|
||||
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||
"><LINK
|
||||
REL="HOME"
|
||||
TITLE="Gnome XML Library Reference Manual"
|
||||
HREF="book1.html"><LINK
|
||||
REL="PREVIOUS"
|
||||
TITLE="Gnome XML Library Reference Manual"
|
||||
HREF="book1.html"><LINK
|
||||
REL="NEXT"
|
||||
TITLE="Libxml Library Reference"
|
||||
HREF="libxml-lib.html"></HEAD
|
||||
><BODY
|
||||
CLASS="CHAPTER"
|
||||
BGCOLOR="#FFFFFF"
|
||||
TEXT="#000000"
|
||||
LINK="#0000FF"
|
||||
VLINK="#840084"
|
||||
ALINK="#0000FF"
|
||||
><DIV
|
||||
CLASS="NAVHEADER"
|
||||
><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
BGCOLOR="#000000"
|
||||
CELLPADDING="1"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TH
|
||||
COLSPAN="4"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="5"
|
||||
>Gnome XML Library Reference Manual</FONT
|
||||
></TH
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="left"
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><<< Previous Page</B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#0000C0"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Home</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#00C000"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
> </B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="right"
|
||||
><A
|
||||
HREF="libxml-lib.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Next Page >>></B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="CHAPTER"
|
||||
><H1
|
||||
><A
|
||||
NAME="LIBXML-NOTES"
|
||||
></A
|
||||
>Libxml Programming Notes</H1
|
||||
><P
|
||||
>Libxml is an XML toolkit library, it allows to parse, edit
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Libxml Programming Notes</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="index.html" title="Gnome XML Library Reference Manual"><link rel="previous" href="index.html" title="Gnome XML Library Reference Manual"><link rel="next" href="libxml-lib.html" title="Libxml Library Reference"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="index.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-lib.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="chapter" lang="en"><div class="titlepage"><div><h2 class="title"><a name="libxml-notes"></a>Libxml Programming Notes</h2></div></div><p>Libxml is an XML toolkit library, it allows to parse, edit
|
||||
search and write XML documents. There is also an HTML parser front-end
|
||||
so the same range of tools can be used with HTML input.</P
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="NAVFOOTER"
|
||||
><BR
|
||||
CLEAR="all"><BR><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
BGCOLOR="#000000"
|
||||
CELLPADDING="1"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="left"
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><<< Previous Page</B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#0000C0"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Home</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#00C000"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
> </B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="right"
|
||||
><A
|
||||
HREF="libxml-lib.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Next Page >>></B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
COLSPAN="2"
|
||||
ALIGN="left"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Gnome XML Library Reference Manual</B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
COLSPAN="2"
|
||||
ALIGN="right"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Libxml Library Reference</B
|
||||
></FONT
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
so the same range of tools can be used with HTML input.</p></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="index.html"><b><< Gnome XML Library Reference Manual</b></a></td><td align="right"><a accesskey="n" href="libxml-lib.html"><b>Libxml Library Reference >></b></a></td></tr></table></body></html>
|
||||
|
File diff suppressed because it is too large
Load Diff
1431
doc/html/libxml-parserInternals.html
Normal file
1431
doc/html/libxml-parserInternals.html
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
347
doc/html/libxml-schemasInternals.html
Normal file
347
doc/html/libxml-schemasInternals.html
Normal file
@ -0,0 +1,347 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>schemasInternals</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-xmlschemastypes.html" title="xmlschemastypes"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-xmlschemastypes.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th></tr></table><div class="refentry" lang="en"><a name="libxml-schemasInternals"></a><div class="titlepage"></div><div class="refnamediv"><h2>schemasInternals</h2><p>schemasInternals — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
enum <a href="libxml-schemasInternals.html#xmlSchemaTypeType">xmlSchemaTypeType</a>;
|
||||
enum <a href="libxml-schemasInternals.html#xmlSchemaContentType">xmlSchemaContentType</a>;
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaVal">xmlSchemaVal</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaValPtr">xmlSchemaValPtr</a>;
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaType">xmlSchemaType</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaTypePtr">xmlSchemaTypePtr</a>;
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaFacet">xmlSchemaFacet</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaFacetPtr">xmlSchemaFacetPtr</a>;
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaAnnot">xmlSchemaAnnot</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaAnnotPtr">xmlSchemaAnnotPtr</a>;
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ANYATTR-SKIP-CAPS">XML_SCHEMAS_ANYATTR_SKIP</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ANYATTR-LAX-CAPS">XML_SCHEMAS_ANYATTR_LAX</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ANYATTR-STRICT-CAPS">XML_SCHEMAS_ANYATTR_STRICT</a>
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaAttribute">xmlSchemaAttribute</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaAttributePtr">xmlSchemaAttributePtr</a>;
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaAttributeGroup">xmlSchemaAttributeGroup</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaAttributeGroupPtr">xmlSchemaAttributeGroupPtr</a>;
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-TYPE-MIXED-CAPS">XML_SCHEMAS_TYPE_MIXED</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-NILLABLE-CAPS">XML_SCHEMAS_ELEM_NILLABLE</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-GLOBAL-CAPS">XML_SCHEMAS_ELEM_GLOBAL</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-DEFAULT-CAPS">XML_SCHEMAS_ELEM_DEFAULT</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-FIXED-CAPS">XML_SCHEMAS_ELEM_FIXED</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-ABSTRACT-CAPS">XML_SCHEMAS_ELEM_ABSTRACT</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-TOPLEVEL-CAPS">XML_SCHEMAS_ELEM_TOPLEVEL</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-ELEM-REF-CAPS">XML_SCHEMAS_ELEM_REF</a>
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaElement">xmlSchemaElement</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaElementPtr">xmlSchemaElementPtr</a>;
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-FACET-UNKNOWN-CAPS">XML_SCHEMAS_FACET_UNKNOWN</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-FACET-PRESERVE-CAPS">XML_SCHEMAS_FACET_PRESERVE</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-FACET-REPLACE-CAPS">XML_SCHEMAS_FACET_REPLACE</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-FACET-COLLAPSE-CAPS">XML_SCHEMAS_FACET_COLLAPSE</a>
|
||||
struct <a href="libxml-schemasInternals.html#xmlSchemaNotation">xmlSchemaNotation</a>;
|
||||
typedef <a href="libxml-schemasInternals.html#xmlSchemaNotationPtr">xmlSchemaNotationPtr</a>;
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-QUALIF-ELEM-CAPS">XML_SCHEMAS_QUALIF_ELEM</a>
|
||||
#define <a href="libxml-schemasInternals.html#XML-SCHEMAS-QUALIF-ATTR-CAPS">XML_SCHEMAS_QUALIF_ATTR</a>
|
||||
struct <a href="libxml-xmlschemas.html#xmlSchema">xmlSchema</a>;
|
||||
void <a href="libxml-schemasInternals.html#xmlSchemaFreeType">xmlSchemaFreeType</a> (<a href="libxml-schemasInternals.html#xmlSchemaTypePtr">xmlSchemaTypePtr</a> type);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlSchemaTypeType"></a>enum xmlSchemaTypeType</h3><pre class="programlisting">typedef enum {
|
||||
XML_SCHEMA_TYPE_BASIC = 1,
|
||||
XML_SCHEMA_TYPE_ANY,
|
||||
XML_SCHEMA_TYPE_FACET,
|
||||
XML_SCHEMA_TYPE_SIMPLE,
|
||||
XML_SCHEMA_TYPE_COMPLEX,
|
||||
XML_SCHEMA_TYPE_SEQUENCE,
|
||||
XML_SCHEMA_TYPE_CHOICE,
|
||||
XML_SCHEMA_TYPE_ALL,
|
||||
XML_SCHEMA_TYPE_SIMPLE_CONTENT,
|
||||
XML_SCHEMA_TYPE_COMPLEX_CONTENT,
|
||||
XML_SCHEMA_TYPE_UR,
|
||||
XML_SCHEMA_TYPE_RESTRICTION,
|
||||
XML_SCHEMA_TYPE_EXTENSION,
|
||||
XML_SCHEMA_TYPE_ELEMENT,
|
||||
XML_SCHEMA_TYPE_ATTRIBUTE,
|
||||
XML_SCHEMA_TYPE_ATTRIBUTEGROUP,
|
||||
XML_SCHEMA_TYPE_GROUP,
|
||||
XML_SCHEMA_TYPE_NOTATION,
|
||||
XML_SCHEMA_TYPE_LIST,
|
||||
XML_SCHEMA_TYPE_UNION,
|
||||
XML_SCHEMA_FACET_MININCLUSIVE = 1000,
|
||||
XML_SCHEMA_FACET_MINEXCLUSIVE,
|
||||
XML_SCHEMA_FACET_MAXINCLUSIVE,
|
||||
XML_SCHEMA_FACET_MAXEXCLUSIVE,
|
||||
XML_SCHEMA_FACET_TOTALDIGITS,
|
||||
XML_SCHEMA_FACET_FRACTIONDIGITS,
|
||||
XML_SCHEMA_FACET_PATTERN,
|
||||
XML_SCHEMA_FACET_ENUMERATION,
|
||||
XML_SCHEMA_FACET_WHITESPACE,
|
||||
XML_SCHEMA_FACET_LENGTH,
|
||||
XML_SCHEMA_FACET_MAXLENGTH,
|
||||
XML_SCHEMA_FACET_MINLENGTH
|
||||
} xmlSchemaTypeType;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaContentType"></a>enum xmlSchemaContentType</h3><pre class="programlisting">typedef enum {
|
||||
XML_SCHEMA_CONTENT_UNKNOWN = 0,
|
||||
XML_SCHEMA_CONTENT_EMPTY = 1,
|
||||
XML_SCHEMA_CONTENT_ELEMENTS,
|
||||
XML_SCHEMA_CONTENT_MIXED,
|
||||
XML_SCHEMA_CONTENT_SIMPLE,
|
||||
XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS,
|
||||
XML_SCHEMA_CONTENT_BASIC,
|
||||
XML_SCHEMA_CONTENT_ANY
|
||||
} xmlSchemaContentType;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaVal"></a>struct xmlSchemaVal</h3><pre class="programlisting">struct xmlSchemaVal;</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaValPtr"></a>xmlSchemaValPtr</h3><pre class="programlisting">typedef xmlSchemaVal *xmlSchemaValPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaType"></a>struct xmlSchemaType</h3><pre class="programlisting">struct xmlSchemaType {
|
||||
xmlSchemaTypeType type; /* The kind of type */
|
||||
struct _xmlSchemaType *next;/* the next type if in a sequence ... */
|
||||
xmlChar *name;
|
||||
xmlChar *id;
|
||||
xmlChar *ref;
|
||||
xmlChar *refNs;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
xmlSchemaTypePtr subtypes;
|
||||
xmlSchemaAttributePtr attributes;
|
||||
xmlNodePtr node;
|
||||
int minOccurs;
|
||||
int maxOccurs;
|
||||
|
||||
int flags;
|
||||
xmlSchemaContentType contentType;
|
||||
xmlChar *base;
|
||||
xmlChar *baseNs;
|
||||
xmlSchemaTypePtr baseType;
|
||||
xmlSchemaFacetPtr facets;
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaTypePtr"></a>xmlSchemaTypePtr</h3><pre class="programlisting">typedef xmlSchemaType *xmlSchemaTypePtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaFacet"></a>struct xmlSchemaFacet</h3><pre class="programlisting">struct xmlSchemaFacet {
|
||||
xmlSchemaTypeType type; /* The kind of type */
|
||||
struct _xmlSchemaFacet *next;/* the next type if in a sequence ... */
|
||||
xmlChar *value;
|
||||
xmlChar *id;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
xmlNodePtr node;
|
||||
int fixed;
|
||||
int whitespace;
|
||||
xmlSchemaValPtr val;
|
||||
xmlRegexpPtr regexp;
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaFacetPtr"></a>xmlSchemaFacetPtr</h3><pre class="programlisting">typedef xmlSchemaFacet *xmlSchemaFacetPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaAnnot"></a>struct xmlSchemaAnnot</h3><pre class="programlisting">struct xmlSchemaAnnot {
|
||||
struct _xmlSchemaAnnot *next;
|
||||
xmlNodePtr content; /* the annotation */
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaAnnotPtr"></a>xmlSchemaAnnotPtr</h3><pre class="programlisting">typedef xmlSchemaAnnot *xmlSchemaAnnotPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ANYATTR-SKIP-CAPS"></a>XML_SCHEMAS_ANYATTR_SKIP</h3><pre class="programlisting">#define XML_SCHEMAS_ANYATTR_SKIP 1
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ANYATTR-LAX-CAPS"></a>XML_SCHEMAS_ANYATTR_LAX</h3><pre class="programlisting">#define XML_SCHEMAS_ANYATTR_LAX 2
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ANYATTR-STRICT-CAPS"></a>XML_SCHEMAS_ANYATTR_STRICT</h3><pre class="programlisting">#define XML_SCHEMAS_ANYATTR_STRICT 3
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaAttribute"></a>struct xmlSchemaAttribute</h3><pre class="programlisting">struct xmlSchemaAttribute {
|
||||
xmlSchemaTypeType type; /* The kind of type */
|
||||
struct _xmlSchemaAttribute *next;/* the next attribute if in a group ... */
|
||||
xmlChar *name;
|
||||
xmlChar *id;
|
||||
xmlChar *ref;
|
||||
xmlChar *refNs;
|
||||
xmlChar *typeName;
|
||||
xmlChar *typeNs;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
|
||||
xmlSchemaTypePtr base;
|
||||
int occurs;
|
||||
xmlChar *defValue;
|
||||
xmlSchemaTypePtr subtypes;
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaAttributePtr"></a>xmlSchemaAttributePtr</h3><pre class="programlisting">typedef xmlSchemaAttribute *xmlSchemaAttributePtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaAttributeGroup"></a>struct xmlSchemaAttributeGroup</h3><pre class="programlisting">struct xmlSchemaAttributeGroup {
|
||||
xmlSchemaTypeType type; /* The kind of type */
|
||||
struct _xmlSchemaAttribute *next;/* the next attribute if in a group ... */
|
||||
xmlChar *name;
|
||||
xmlChar *id;
|
||||
xmlChar *ref;
|
||||
xmlChar *refNs;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
|
||||
xmlSchemaAttributePtr attributes;
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaAttributeGroupPtr"></a>xmlSchemaAttributeGroupPtr</h3><pre class="programlisting">typedef xmlSchemaAttributeGroup *xmlSchemaAttributeGroupPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-TYPE-MIXED-CAPS"></a>XML_SCHEMAS_TYPE_MIXED</h3><pre class="programlisting">#define XML_SCHEMAS_TYPE_MIXED 1 << 0
|
||||
</pre><p>
|
||||
the element content type is mixed</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-NILLABLE-CAPS"></a>XML_SCHEMAS_ELEM_NILLABLE</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_NILLABLE 1 << 0
|
||||
</pre><p>
|
||||
the element is nillable</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-GLOBAL-CAPS"></a>XML_SCHEMAS_ELEM_GLOBAL</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_GLOBAL 1 << 1
|
||||
</pre><p>
|
||||
the element is global</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-DEFAULT-CAPS"></a>XML_SCHEMAS_ELEM_DEFAULT</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_DEFAULT 1 << 2
|
||||
</pre><p>
|
||||
the element has a default value</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-FIXED-CAPS"></a>XML_SCHEMAS_ELEM_FIXED</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_FIXED 1 << 3
|
||||
</pre><p>
|
||||
the element has a fixed value</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-ABSTRACT-CAPS"></a>XML_SCHEMAS_ELEM_ABSTRACT</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_ABSTRACT 1 << 4
|
||||
</pre><p>
|
||||
the element is abstract</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-TOPLEVEL-CAPS"></a>XML_SCHEMAS_ELEM_TOPLEVEL</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_TOPLEVEL 1 << 5
|
||||
</pre><p>
|
||||
the element is top level</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-ELEM-REF-CAPS"></a>XML_SCHEMAS_ELEM_REF</h3><pre class="programlisting">#define XML_SCHEMAS_ELEM_REF 1 << 6
|
||||
</pre><p>
|
||||
the element is a reference to a type</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaElement"></a>struct xmlSchemaElement</h3><pre class="programlisting">struct xmlSchemaElement {
|
||||
xmlSchemaTypeType type; /* The kind of type */
|
||||
struct _xmlSchemaType *next;/* the next type if in a sequence ... */
|
||||
xmlChar *name;
|
||||
xmlChar *id;
|
||||
xmlChar *ref;
|
||||
xmlChar *refNs;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
xmlSchemaTypePtr subtypes;
|
||||
xmlSchemaAttributePtr attributes;
|
||||
xmlNodePtr node;
|
||||
int minOccurs;
|
||||
int maxOccurs;
|
||||
|
||||
int flags;
|
||||
xmlChar *targetNamespace;
|
||||
xmlChar *namedType;
|
||||
xmlChar *namedTypeNs;
|
||||
xmlChar *substGroup;
|
||||
xmlChar *substGroupNs;
|
||||
xmlChar *scope;
|
||||
xmlChar *value;
|
||||
struct _xmlSchemaElement *refDecl;
|
||||
xmlRegexpPtr contModel;
|
||||
xmlSchemaContentType contentType;
|
||||
};
|
||||
</pre><p>
|
||||
xmlSchemaType, xmlSchemaFacet and xmlSchemaElement start of
|
||||
structures must be kept similar</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaElementPtr"></a>xmlSchemaElementPtr</h3><pre class="programlisting">typedef xmlSchemaElement *xmlSchemaElementPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-FACET-UNKNOWN-CAPS"></a>XML_SCHEMAS_FACET_UNKNOWN</h3><pre class="programlisting">#define XML_SCHEMAS_FACET_UNKNOWN 0
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-FACET-PRESERVE-CAPS"></a>XML_SCHEMAS_FACET_PRESERVE</h3><pre class="programlisting">#define XML_SCHEMAS_FACET_PRESERVE 1
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-FACET-REPLACE-CAPS"></a>XML_SCHEMAS_FACET_REPLACE</h3><pre class="programlisting">#define XML_SCHEMAS_FACET_REPLACE 2
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-FACET-COLLAPSE-CAPS"></a>XML_SCHEMAS_FACET_COLLAPSE</h3><pre class="programlisting">#define XML_SCHEMAS_FACET_COLLAPSE 3
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaNotation"></a>struct xmlSchemaNotation</h3><pre class="programlisting">struct xmlSchemaNotation {
|
||||
xmlSchemaTypeType type; /* The kind of type */
|
||||
xmlChar *name;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
xmlChar *identifier;
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaNotationPtr"></a>xmlSchemaNotationPtr</h3><pre class="programlisting">typedef xmlSchemaNotation *xmlSchemaNotationPtr;
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-QUALIF-ELEM-CAPS"></a>XML_SCHEMAS_QUALIF_ELEM</h3><pre class="programlisting">#define XML_SCHEMAS_QUALIF_ELEM 1 << 0
|
||||
</pre><p>
|
||||
the shemas requires qualified elements</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XML-SCHEMAS-QUALIF-ATTR-CAPS"></a>XML_SCHEMAS_QUALIF_ATTR</h3><pre class="programlisting">#define XML_SCHEMAS_QUALIF_ATTR 1 << 1
|
||||
</pre><p>
|
||||
the shemas requires qualified attributes</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchema"></a>struct xmlSchema</h3><pre class="programlisting">struct xmlSchema {
|
||||
xmlChar *name; /* schema name */
|
||||
xmlChar *targetNamespace; /* the target namespace */
|
||||
xmlChar *version;
|
||||
xmlChar *id;
|
||||
xmlDocPtr doc;
|
||||
xmlSchemaAnnotPtr annot;
|
||||
int flags;
|
||||
|
||||
xmlHashTablePtr typeDecl;
|
||||
xmlHashTablePtr attrDecl;
|
||||
xmlHashTablePtr attrgrpDecl;
|
||||
xmlHashTablePtr elemDecl;
|
||||
xmlHashTablePtr notaDecl;
|
||||
|
||||
xmlHashTablePtr schemasImports;
|
||||
|
||||
void *_private; /* unused by the library for users or bindings */
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSchemaFreeType"></a>xmlSchemaFreeType ()</h3><pre class="programlisting">void xmlSchemaFreeType (<a href="libxml-schemasInternals.html#xmlSchemaTypePtr">xmlSchemaTypePtr</a> type);</pre><p>
|
||||
Deallocate a Schema Type structure.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>type</tt></i> :</span></td><td> a schema type structure
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-xmlschemastypes.html"><b><< xmlschemastypes</b></a></td><td align="right"></td></tr></table></body></html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,374 +1,45 @@
|
||||
<HTML
|
||||
><HEAD
|
||||
><TITLE
|
||||
>xinclude</TITLE
|
||||
><META
|
||||
NAME="GENERATOR"
|
||||
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||
"><LINK
|
||||
REL="HOME"
|
||||
TITLE="Gnome XML Library Reference Manual"
|
||||
HREF="book1.html"><LINK
|
||||
REL="UP"
|
||||
TITLE="Libxml Library Reference"
|
||||
HREF="libxml-lib.html"><LINK
|
||||
REL="PREVIOUS"
|
||||
TITLE="xpointer"
|
||||
HREF="libxml-xpointer.html"><LINK
|
||||
REL="NEXT"
|
||||
TITLE="nanohttp"
|
||||
HREF="libxml-nanohttp.html"></HEAD
|
||||
><BODY
|
||||
CLASS="REFENTRY"
|
||||
BGCOLOR="#FFFFFF"
|
||||
TEXT="#000000"
|
||||
LINK="#0000FF"
|
||||
VLINK="#840084"
|
||||
ALINK="#0000FF"
|
||||
><DIV
|
||||
CLASS="NAVHEADER"
|
||||
><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
BGCOLOR="#000000"
|
||||
CELLPADDING="1"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TH
|
||||
COLSPAN="4"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="5"
|
||||
>Gnome XML Library Reference Manual</FONT
|
||||
></TH
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="left"
|
||||
><A
|
||||
HREF="libxml-xpointer.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><<< Previous Page</B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#0000C0"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Home</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#00C000"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="libxml-lib.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Up</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="right"
|
||||
><A
|
||||
HREF="libxml-nanohttp.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Next Page >>></B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
><H1
|
||||
><A
|
||||
NAME="LIBXML-XINCLUDE"
|
||||
></A
|
||||
>xinclude</H1
|
||||
><DIV
|
||||
CLASS="REFNAMEDIV"
|
||||
><A
|
||||
NAME="AEN19514"
|
||||
></A
|
||||
><H2
|
||||
>Name</H2
|
||||
>xinclude -- </DIV
|
||||
><DIV
|
||||
CLASS="REFSYNOPSISDIV"
|
||||
><A
|
||||
NAME="AEN19517"
|
||||
></A
|
||||
><H2
|
||||
>Synopsis</H2
|
||||
><TABLE
|
||||
BORDER="0"
|
||||
BGCOLOR="#D6E8FF"
|
||||
WIDTH="100%"
|
||||
CELLPADDING="6"
|
||||
><TR
|
||||
><TD
|
||||
><PRE
|
||||
CLASS="SYNOPSIS"
|
||||
>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xinclude</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-xpointer.html" title="xpointer"><link rel="next" href="libxml-nanohttp.html" title="nanohttp"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-xpointer.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-nanohttp.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-xinclude"></a><div class="titlepage"></div><div class="refnamediv"><h2>xinclude</h2><p>xinclude — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
int <A
|
||||
HREF="libxml-xinclude.html#XMLXINCLUDEPROCESS"
|
||||
>xmlXIncludeProcess</A
|
||||
> (<A
|
||||
HREF="libxml-tree.html#XMLDOCPTR"
|
||||
>xmlDocPtr</A
|
||||
> doc);</PRE
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="REFSECT1"
|
||||
><A
|
||||
NAME="AEN19522"
|
||||
></A
|
||||
><H2
|
||||
>Description</H2
|
||||
><P
|
||||
></P
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="REFSECT1"
|
||||
><A
|
||||
NAME="AEN19525"
|
||||
></A
|
||||
><H2
|
||||
>Details</H2
|
||||
><DIV
|
||||
CLASS="REFSECT2"
|
||||
><A
|
||||
NAME="AEN19527"
|
||||
></A
|
||||
><H3
|
||||
><A
|
||||
NAME="XMLXINCLUDEPROCESS"
|
||||
></A
|
||||
>xmlXIncludeProcess ()</H3
|
||||
><TABLE
|
||||
BORDER="0"
|
||||
BGCOLOR="#D6E8FF"
|
||||
WIDTH="100%"
|
||||
CELLPADDING="6"
|
||||
><TR
|
||||
><TD
|
||||
><PRE
|
||||
CLASS="PROGRAMLISTING"
|
||||
>int xmlXIncludeProcess (<A
|
||||
HREF="libxml-tree.html#XMLDOCPTR"
|
||||
>xmlDocPtr</A
|
||||
> doc);</PRE
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
><P
|
||||
>Implement the XInclude substitution on the XML document <TT
|
||||
CLASS="PARAMETER"
|
||||
><I
|
||||
>doc</I
|
||||
></TT
|
||||
></P
|
||||
><P
|
||||
></P
|
||||
><DIV
|
||||
CLASS="INFORMALTABLE"
|
||||
><A
|
||||
NAME="AEN19535"
|
||||
></A
|
||||
><P
|
||||
></P
|
||||
><TABLE
|
||||
BORDER="0"
|
||||
WIDTH="100%"
|
||||
BGCOLOR="#FFD0D0"
|
||||
CELLSPACING="0"
|
||||
CELLPADDING="4"
|
||||
CLASS="CALSTABLE"
|
||||
><TBODY
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="20%"
|
||||
ALIGN="RIGHT"
|
||||
VALIGN="TOP"
|
||||
><TT
|
||||
CLASS="PARAMETER"
|
||||
><I
|
||||
>doc</I
|
||||
></TT
|
||||
> :</TD
|
||||
><TD
|
||||
WIDTH="80%"
|
||||
ALIGN="LEFT"
|
||||
VALIGN="TOP"
|
||||
> </TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="20%"
|
||||
ALIGN="RIGHT"
|
||||
VALIGN="TOP"
|
||||
><SPAN
|
||||
CLASS="emphasis"
|
||||
><I
|
||||
CLASS="EMPHASIS"
|
||||
>Returns</I
|
||||
></SPAN
|
||||
> :</TD
|
||||
><TD
|
||||
WIDTH="80%"
|
||||
ALIGN="LEFT"
|
||||
VALIGN="TOP"
|
||||
> </TD
|
||||
></TR
|
||||
></TBODY
|
||||
></TABLE
|
||||
><P
|
||||
></P
|
||||
></DIV
|
||||
></DIV
|
||||
></DIV
|
||||
><DIV
|
||||
CLASS="NAVFOOTER"
|
||||
><BR
|
||||
CLEAR="all"><BR><TABLE
|
||||
WIDTH="100%"
|
||||
BORDER="0"
|
||||
BGCOLOR="#000000"
|
||||
CELLPADDING="1"
|
||||
CELLSPACING="0"
|
||||
><TR
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="left"
|
||||
><A
|
||||
HREF="libxml-xpointer.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><<< Previous Page</B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#0000C0"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="book1.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Home</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#00C000"
|
||||
ALIGN="center"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
><A
|
||||
HREF="libxml-lib.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Up</B
|
||||
></FONT
|
||||
></A
|
||||
></B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
WIDTH="25%"
|
||||
BGCOLOR="#C00000"
|
||||
ALIGN="right"
|
||||
><A
|
||||
HREF="libxml-nanohttp.html"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>Next Page >>></B
|
||||
></FONT
|
||||
></A
|
||||
></TD
|
||||
></TR
|
||||
><TR
|
||||
><TD
|
||||
COLSPAN="2"
|
||||
ALIGN="left"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>xpointer</B
|
||||
></FONT
|
||||
></TD
|
||||
><TD
|
||||
COLSPAN="2"
|
||||
ALIGN="right"
|
||||
><FONT
|
||||
COLOR="#FFFFFF"
|
||||
SIZE="3"
|
||||
><B
|
||||
>nanohttp</B
|
||||
></FONT
|
||||
></TD
|
||||
></TR
|
||||
></TABLE
|
||||
></DIV
|
||||
></BODY
|
||||
></HTML
|
||||
>
|
||||
|
||||
|
||||
int <a href="libxml-xinclude.html#xmlXIncludeProcess">xmlXIncludeProcess</a> (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlXIncludeProcess"></a>xmlXIncludeProcess ()</h3><pre class="programlisting">int xmlXIncludeProcess (<a href="libxml-tree.html#xmlDocPtr">xmlDocPtr</a> doc);</pre><p>
|
||||
Implement the XInclude substitution on the XML document <i><tt>doc</tt></i></p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>doc</tt></i> :</span></td><td> an XML document
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 if no substitution were done, -1 if some processing failed
|
||||
or the number of substitutions done.
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-xpointer.html"><b><< xpointer</b></a></td><td align="right"><a accesskey="n" href="libxml-nanohttp.html"><b>nanohttp >></b></a></td></tr></table></body></html>
|
||||
|
552
doc/html/libxml-xmlIO.html
Normal file
552
doc/html/libxml-xmlIO.html
Normal file
@ -0,0 +1,552 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xmlIO</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
|
||||
.synopsis, .classsynopsis {
|
||||
background: #eeeeee;
|
||||
border: solid 1px #aaaaaa;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.programlisting {
|
||||
background: #eeeeff;
|
||||
border: solid 1px #aaaaff;
|
||||
padding: 0.5em;
|
||||
}
|
||||
.variablelist {
|
||||
padding: 4px;
|
||||
margin-left: 3em;
|
||||
}
|
||||
.navigation {
|
||||
background: #ffeeee;
|
||||
border: solid 1px #ffaaaa;
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
.navigation a {
|
||||
color: #770000;
|
||||
}
|
||||
.navigation a:visited {
|
||||
color: #550000;
|
||||
}
|
||||
.navigation .title {
|
||||
font-size: 200%;
|
||||
}
|
||||
</style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-nanoftp.html" title="nanoftp"><link rel="next" href="libxml-catalog.html" title="catalog"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-nanoftp.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-catalog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-xmlIO"></a><div class="titlepage"></div><div class="refnamediv"><h2>xmlIO</h2><p>xmlIO — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
|
||||
|
||||
|
||||
|
||||
int (<a href="libxml-xmlIO.html#xmlInputMatchCallback">*xmlInputMatchCallback</a>) (char const *filename);
|
||||
void* (<a href="libxml-xmlIO.html#xmlInputOpenCallback">*xmlInputOpenCallback</a>) (char const *filename);
|
||||
int (<a href="libxml-xmlIO.html#xmlInputReadCallback">*xmlInputReadCallback</a>) (void *context,
|
||||
char *buffer,
|
||||
int len);
|
||||
int (<a href="libxml-xmlIO.html#xmlInputCloseCallback">*xmlInputCloseCallback</a>) (void *context);
|
||||
int (<a href="libxml-xmlIO.html#xmlOutputMatchCallback">*xmlOutputMatchCallback</a>) (char const *filename);
|
||||
void* (<a href="libxml-xmlIO.html#xmlOutputOpenCallback">*xmlOutputOpenCallback</a>) (char const *filename);
|
||||
int (<a href="libxml-xmlIO.html#xmlOutputWriteCallback">*xmlOutputWriteCallback</a>) (void *context,
|
||||
const char *buffer,
|
||||
int len);
|
||||
int (<a href="libxml-xmlIO.html#xmlOutputCloseCallback">*xmlOutputCloseCallback</a>) (void *context);
|
||||
struct <a href="libxml-tree.html#xmlParserInputBuffer">xmlParserInputBuffer</a>;
|
||||
struct <a href="libxml-tree.html#xmlOutputBuffer">xmlOutputBuffer</a>;
|
||||
void <a href="libxml-xmlIO.html#xmlCleanupInputCallbacks">xmlCleanupInputCallbacks</a> (void);
|
||||
void <a href="libxml-xmlIO.html#xmlCleanupOutputCallbacks">xmlCleanupOutputCallbacks</a> (void);
|
||||
void <a href="libxml-xmlIO.html#xmlRegisterDefaultInputCallbacks">xmlRegisterDefaultInputCallbacks</a>
|
||||
(void);
|
||||
<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="libxml-xmlIO.html#xmlAllocParserInputBuffer">xmlAllocParserInputBuffer</a>
|
||||
(<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="libxml-xmlIO.html#xmlParserInputBufferCreateFilename">xmlParserInputBufferCreateFilename</a>
|
||||
(const char *URI,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="libxml-xmlIO.html#xmlParserInputBufferCreateFile">xmlParserInputBufferCreateFile</a>
|
||||
(<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *file,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="libxml-xmlIO.html#xmlParserInputBufferCreateFd">xmlParserInputBufferCreateFd</a>
|
||||
(int fd,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="libxml-xmlIO.html#xmlParserInputBufferCreateMem">xmlParserInputBufferCreateMem</a>
|
||||
(const char *mem,
|
||||
int size,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="libxml-xmlIO.html#xmlParserInputBufferCreateIO">xmlParserInputBufferCreateIO</a>
|
||||
(<a href="libxml-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> ioread,
|
||||
<a href="libxml-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> ioclose,
|
||||
void *ioctx,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);
|
||||
int <a href="libxml-xmlIO.html#xmlParserInputBufferRead">xmlParserInputBufferRead</a> (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in,
|
||||
int len);
|
||||
int <a href="libxml-xmlIO.html#xmlParserInputBufferGrow">xmlParserInputBufferGrow</a> (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in,
|
||||
int len);
|
||||
int <a href="libxml-xmlIO.html#xmlParserInputBufferPush">xmlParserInputBufferPush</a> (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in,
|
||||
int len,
|
||||
const char *buf);
|
||||
void <a href="libxml-xmlIO.html#xmlFreeParserInputBuffer">xmlFreeParserInputBuffer</a> (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in);
|
||||
char* <a href="libxml-xmlIO.html#xmlParserGetDirectory">xmlParserGetDirectory</a> (const char *filename);
|
||||
int <a href="libxml-xmlIO.html#xmlRegisterInputCallbacks">xmlRegisterInputCallbacks</a> (<a href="libxml-xmlIO.html#xmlInputMatchCallback">xmlInputMatchCallback</a> matchFunc,
|
||||
<a href="libxml-xmlIO.html#xmlInputOpenCallback">xmlInputOpenCallback</a> openFunc,
|
||||
<a href="libxml-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> readFunc,
|
||||
<a href="libxml-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> closeFunc);
|
||||
void <a href="libxml-xmlIO.html#xmlRegisterDefaultOutputCallbacks">xmlRegisterDefaultOutputCallbacks</a>
|
||||
(void);
|
||||
<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> <a href="libxml-xmlIO.html#xmlAllocOutputBuffer">xmlAllocOutputBuffer</a> (<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);
|
||||
<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> <a href="libxml-xmlIO.html#xmlOutputBufferCreateFilename">xmlOutputBufferCreateFilename</a>
|
||||
(const char *URI,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder,
|
||||
int compression);
|
||||
<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> <a href="libxml-xmlIO.html#xmlOutputBufferCreateFile">xmlOutputBufferCreateFile</a>
|
||||
(<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *file,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);
|
||||
<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> <a href="libxml-xmlIO.html#xmlOutputBufferCreateFd">xmlOutputBufferCreateFd</a> (int fd,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);
|
||||
<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> <a href="libxml-xmlIO.html#xmlOutputBufferCreateIO">xmlOutputBufferCreateIO</a> (<a href="libxml-xmlIO.html#xmlOutputWriteCallback">xmlOutputWriteCallback</a> iowrite,
|
||||
<a href="libxml-xmlIO.html#xmlOutputCloseCallback">xmlOutputCloseCallback</a> ioclose,
|
||||
void *ioctx,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);
|
||||
int <a href="libxml-xmlIO.html#xmlOutputBufferWrite">xmlOutputBufferWrite</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out,
|
||||
int len,
|
||||
const char *buf);
|
||||
int <a href="libxml-xmlIO.html#xmlOutputBufferWriteString">xmlOutputBufferWriteString</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out,
|
||||
const char *str);
|
||||
int <a href="libxml-xmlIO.html#xmlOutputBufferFlush">xmlOutputBufferFlush</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out);
|
||||
int <a href="libxml-xmlIO.html#xmlOutputBufferClose">xmlOutputBufferClose</a> (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out);
|
||||
int <a href="libxml-xmlIO.html#xmlRegisterOutputCallbacks">xmlRegisterOutputCallbacks</a> (<a href="libxml-xmlIO.html#xmlOutputMatchCallback">xmlOutputMatchCallback</a> matchFunc,
|
||||
<a href="libxml-xmlIO.html#xmlOutputOpenCallback">xmlOutputOpenCallback</a> openFunc,
|
||||
<a href="libxml-xmlIO.html#xmlOutputWriteCallback">xmlOutputWriteCallback</a> writeFunc,
|
||||
<a href="libxml-xmlIO.html#xmlOutputCloseCallback">xmlOutputCloseCallback</a> closeFunc);
|
||||
void* <a href="libxml-xmlIO.html#xmlIOHTTPOpenW">xmlIOHTTPOpenW</a> (const char *post_uri,
|
||||
int compression);
|
||||
void <a href="libxml-xmlIO.html#xmlRegisterHTTPPostCallbacks">xmlRegisterHTTPPostCallbacks</a> (void);
|
||||
<a href="libxml-tree.html#xmlParserInputPtr">xmlParserInputPtr</a> <a href="libxml-xmlIO.html#xmlNoNetExternalEntityLoader">xmlNoNetExternalEntityLoader</a>
|
||||
(const char *URL,
|
||||
const char *ID,
|
||||
<a href="libxml-tree.html#xmlParserCtxtPtr">xmlParserCtxtPtr</a> ctxt);
|
||||
<a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-xmlIO.html#xmlNormalizeWindowsPath">xmlNormalizeWindowsPath</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *path);
|
||||
int <a href="libxml-xmlIO.html#xmlCheckFilename">xmlCheckFilename</a> (const char *path);
|
||||
int <a href="libxml-xmlIO.html#xmlFileMatch">xmlFileMatch</a> (const char *filename);
|
||||
void* <a href="libxml-xmlIO.html#xmlFileOpen">xmlFileOpen</a> (const char *filename);
|
||||
int <a href="libxml-xmlIO.html#xmlFileRead">xmlFileRead</a> (void *context,
|
||||
char *buffer,
|
||||
int len);
|
||||
int <a href="libxml-xmlIO.html#xmlFileClose">xmlFileClose</a> (void *context);
|
||||
int <a href="libxml-xmlIO.html#xmlIOHTTPMatch">xmlIOHTTPMatch</a> (const char *filename);
|
||||
void* <a href="libxml-xmlIO.html#xmlIOHTTPOpen">xmlIOHTTPOpen</a> (const char *filename);
|
||||
int <a href="libxml-xmlIO.html#xmlIOHTTPRead">xmlIOHTTPRead</a> (void *context,
|
||||
char *buffer,
|
||||
int len);
|
||||
int <a href="libxml-xmlIO.html#xmlIOHTTPClose">xmlIOHTTPClose</a> (void *context);
|
||||
int <a href="libxml-xmlIO.html#xmlIOFTPMatch">xmlIOFTPMatch</a> (const char *filename);
|
||||
void* <a href="libxml-xmlIO.html#xmlIOFTPOpen">xmlIOFTPOpen</a> (const char *filename);
|
||||
int <a href="libxml-xmlIO.html#xmlIOFTPRead">xmlIOFTPRead</a> (void *context,
|
||||
char *buffer,
|
||||
int len);
|
||||
int <a href="libxml-xmlIO.html#xmlIOFTPClose">xmlIOFTPClose</a> (void *context);
|
||||
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
|
||||
|
||||
</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlInputMatchCallback"></a>xmlInputMatchCallback ()</h3><pre class="programlisting">int (*xmlInputMatchCallback) (char const *filename);</pre><p>
|
||||
Callback used in the I/O Input API to detect if the current handler
|
||||
can provide input fonctionnalities for this resource.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename or URI
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if yes and 0 if another Input module should be used
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlInputOpenCallback"></a>xmlInputOpenCallback ()</h3><pre class="programlisting">void* (*xmlInputOpenCallback) (char const *filename);</pre><p>
|
||||
Callback used in the I/O Input API to open the resource</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename or URI
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlInputReadCallback"></a>xmlInputReadCallback ()</h3><pre class="programlisting">int (*xmlInputReadCallback) (void *context,
|
||||
char *buffer,
|
||||
int len);</pre><p>
|
||||
Callback used in the I/O Input API to read the resource</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> an Input context
|
||||
</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> the buffer to store data read
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the length of the buffer in bytes
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of bytes read or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlInputCloseCallback"></a>xmlInputCloseCallback ()</h3><pre class="programlisting">int (*xmlInputCloseCallback) (void *context);</pre><p>
|
||||
Callback used in the I/O Input API to close the resource</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> an Input context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputMatchCallback"></a>xmlOutputMatchCallback ()</h3><pre class="programlisting">int (*xmlOutputMatchCallback) (char const *filename);</pre><p>
|
||||
Callback used in the I/O Output API to detect if the current handler
|
||||
can provide output fonctionnalities for this resource.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename or URI
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if yes and 0 if another Output module should be used
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputOpenCallback"></a>xmlOutputOpenCallback ()</h3><pre class="programlisting">void* (*xmlOutputOpenCallback) (char const *filename);</pre><p>
|
||||
Callback used in the I/O Output API to open the resource</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the filename or URI
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputWriteCallback"></a>xmlOutputWriteCallback ()</h3><pre class="programlisting">int (*xmlOutputWriteCallback) (void *context,
|
||||
const char *buffer,
|
||||
int len);</pre><p>
|
||||
Callback used in the I/O Output API to write to the resource</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> an Output context
|
||||
</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> the buffer of data to write
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the length of the buffer in bytes
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of bytes written or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputCloseCallback"></a>xmlOutputCloseCallback ()</h3><pre class="programlisting">int (*xmlOutputCloseCallback) (void *context);</pre><p>
|
||||
Callback used in the I/O Output API to close the resource</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> an Output context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBuffer"></a>struct xmlParserInputBuffer</h3><pre class="programlisting">struct xmlParserInputBuffer {
|
||||
void* context;
|
||||
xmlInputReadCallback readcallback;
|
||||
xmlInputCloseCallback closecallback;
|
||||
|
||||
xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
|
||||
|
||||
xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 */
|
||||
xmlBufferPtr raw; /* if encoder != NULL buffer for raw input */
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBuffer"></a>struct xmlOutputBuffer</h3><pre class="programlisting">struct xmlOutputBuffer {
|
||||
void* context;
|
||||
xmlOutputWriteCallback writecallback;
|
||||
xmlOutputCloseCallback closecallback;
|
||||
|
||||
xmlCharEncodingHandlerPtr encoder; /* I18N conversions to UTF-8 */
|
||||
|
||||
xmlBufferPtr buffer; /* Local buffer encoded in UTF-8 or ISOLatin */
|
||||
xmlBufferPtr conv; /* if encoder != NULL buffer for output */
|
||||
int written; /* total number of byte written */
|
||||
};
|
||||
</pre><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCleanupInputCallbacks"></a>xmlCleanupInputCallbacks ()</h3><pre class="programlisting">void xmlCleanupInputCallbacks (void);</pre><p>
|
||||
clears the entire input callback table. this includes the
|
||||
compiled-in I/O.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCleanupOutputCallbacks"></a>xmlCleanupOutputCallbacks ()</h3><pre class="programlisting">void xmlCleanupOutputCallbacks (void);</pre><p>
|
||||
clears the entire output callback table. this includes the
|
||||
compiled-in I/O callbacks.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterDefaultInputCallbacks"></a>xmlRegisterDefaultInputCallbacks ()</h3><pre class="programlisting">void xmlRegisterDefaultInputCallbacks
|
||||
(void);</pre><p>
|
||||
Registers the default compiled-in I/O handlers.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlAllocParserInputBuffer"></a>xmlAllocParserInputBuffer ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlAllocParserInputBuffer
|
||||
(<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a buffered parser input for progressive parsing</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser input or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferCreateFilename"></a>xmlParserInputBufferCreateFilename ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlParserInputBufferCreateFilename
|
||||
(const char *URI,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a buffered parser input for the progressive parsing of a file
|
||||
If filename is "-' then we use stdin as the input.
|
||||
Automatic support for ZLIB/Compress compressed document is provided
|
||||
by default if found at compile-time.
|
||||
Do an encoding check if enc == XML_CHAR_ENCODING_NONE</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>URI</tt></i> :</span></td><td> a C string containing the URI or filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser input or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferCreateFile"></a>xmlParserInputBufferCreateFile ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlParserInputBufferCreateFile
|
||||
(<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *file,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a buffered parser input for the progressive parsing of a FILE *
|
||||
buffered C I/O</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>file</tt></i> :</span></td><td> a FILE*
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser input or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferCreateFd"></a>xmlParserInputBufferCreateFd ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlParserInputBufferCreateFd
|
||||
(int fd,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a buffered parser input for the progressive parsing for the input
|
||||
from a file descriptor</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>fd</tt></i> :</span></td><td> a file descriptor number
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser input or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferCreateMem"></a>xmlParserInputBufferCreateMem ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlParserInputBufferCreateMem
|
||||
(const char *mem,
|
||||
int size,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a buffered parser input for the progressive parsing for the input
|
||||
from a memory area.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>mem</tt></i> :</span></td><td> the memory input
|
||||
</td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> the length of the memory block
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser input or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferCreateIO"></a>xmlParserInputBufferCreateIO ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlParserInputBufferCreateIO
|
||||
(<a href="libxml-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> ioread,
|
||||
<a href="libxml-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> ioclose,
|
||||
void *ioctx,
|
||||
<a href="libxml-encoding.html#xmlCharEncoding">xmlCharEncoding</a> enc);</pre><p>
|
||||
Create a buffered parser input for the progressive parsing for the input
|
||||
from an I/O handler</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ioread</tt></i> :</span></td><td> an I/O read function
|
||||
</td></tr><tr><td><span class="term"><i><tt>ioclose</tt></i> :</span></td><td> an I/O close function
|
||||
</td></tr><tr><td><span class="term"><i><tt>ioctx</tt></i> :</span></td><td> an I/O handler
|
||||
</td></tr><tr><td><span class="term"><i><tt>enc</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser input or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferRead"></a>xmlParserInputBufferRead ()</h3><pre class="programlisting">int xmlParserInputBufferRead (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in,
|
||||
int len);</pre><p>
|
||||
Refresh the content of the input buffer, the old data are considered
|
||||
consumed
|
||||
This routine handle the I18N transcoding to internal UTF-8</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a buffered parser input
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> indicative value of the amount of chars to read
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of chars read and stored in the buffer, or -1
|
||||
in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferGrow"></a>xmlParserInputBufferGrow ()</h3><pre class="programlisting">int xmlParserInputBufferGrow (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in,
|
||||
int len);</pre><p>
|
||||
Grow up the content of the input buffer, the old data are preserved
|
||||
This routine handle the I18N transcoding to internal UTF-8
|
||||
This routine is used when operating the parser in normal (pull) mode
|
||||
</p><p>
|
||||
TODO: one should be able to remove one extra copy by copying directly
|
||||
onto in->buffer or in->raw</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a buffered parser input
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> indicative value of the amount of chars to read
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of chars read and stored in the buffer, or -1
|
||||
in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserInputBufferPush"></a>xmlParserInputBufferPush ()</h3><pre class="programlisting">int xmlParserInputBufferPush (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in,
|
||||
int len,
|
||||
const char *buf);</pre><p>
|
||||
Push the content of the arry in the input buffer
|
||||
This routine handle the I18N transcoding to internal UTF-8
|
||||
This is used when operating the parser in progressive (push) mode.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a buffered parser input
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the size in bytes of the array.
|
||||
</td></tr><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> an char array
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of chars read and stored in the buffer, or -1
|
||||
in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFreeParserInputBuffer"></a>xmlFreeParserInputBuffer ()</h3><pre class="programlisting">void xmlFreeParserInputBuffer (<a href="libxml-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> in);</pre><p>
|
||||
Free up the memory used by a buffered parser input</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>in</tt></i> :</span></td><td> a buffered parser input
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserGetDirectory"></a>xmlParserGetDirectory ()</h3><pre class="programlisting">char* xmlParserGetDirectory (const char *filename);</pre><p>
|
||||
lookup the directory for that file</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the path to a file
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a new allocated string containing the directory, or NULL.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterInputCallbacks"></a>xmlRegisterInputCallbacks ()</h3><pre class="programlisting">int xmlRegisterInputCallbacks (<a href="libxml-xmlIO.html#xmlInputMatchCallback">xmlInputMatchCallback</a> matchFunc,
|
||||
<a href="libxml-xmlIO.html#xmlInputOpenCallback">xmlInputOpenCallback</a> openFunc,
|
||||
<a href="libxml-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> readFunc,
|
||||
<a href="libxml-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> closeFunc);</pre><p>
|
||||
Register a new set of I/O callback for handling parser input.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>matchFunc</tt></i> :</span></td><td> the xmlInputMatchCallback
|
||||
</td></tr><tr><td><span class="term"><i><tt>openFunc</tt></i> :</span></td><td> the xmlInputOpenCallback
|
||||
</td></tr><tr><td><span class="term"><i><tt>readFunc</tt></i> :</span></td><td> the xmlInputReadCallback
|
||||
</td></tr><tr><td><span class="term"><i><tt>closeFunc</tt></i> :</span></td><td> the xmlInputCloseCallback
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the registered handler number or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterDefaultOutputCallbacks"></a>xmlRegisterDefaultOutputCallbacks ()</h3><pre class="programlisting">void xmlRegisterDefaultOutputCallbacks
|
||||
(void);</pre><p>
|
||||
Registers the default compiled-in I/O handlers.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlAllocOutputBuffer"></a>xmlAllocOutputBuffer ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> xmlAllocOutputBuffer (<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);</pre><p>
|
||||
Create a buffered parser output</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>encoder</tt></i> :</span></td><td> the encoding converter or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser output or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferCreateFilename"></a>xmlOutputBufferCreateFilename ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> xmlOutputBufferCreateFilename
|
||||
(const char *URI,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder,
|
||||
int compression);</pre><p>
|
||||
Create a buffered output for the progressive saving of a file
|
||||
If filename is "-' then we use stdout as the output.
|
||||
Automatic support for ZLIB/Compress compressed document is provided
|
||||
by default if found at compile-time.
|
||||
TODO: currently if compression is set, the library only support
|
||||
writing to a local file.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>URI</tt></i> :</span></td><td> a C string containing the URI or filename
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoder</tt></i> :</span></td><td> the encoding converter or NULL
|
||||
</td></tr><tr><td><span class="term"><i><tt>compression</tt></i> :</span></td><td> the compression ration (0 none, 9 max).
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new output or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferCreateFile"></a>xmlOutputBufferCreateFile ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> xmlOutputBufferCreateFile
|
||||
(<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *file,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);</pre><p>
|
||||
Create a buffered output for the progressive saving to a FILE *
|
||||
buffered C I/O</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>file</tt></i> :</span></td><td> a FILE*
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoder</tt></i> :</span></td><td> the encoding converter or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser output or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferCreateFd"></a>xmlOutputBufferCreateFd ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> xmlOutputBufferCreateFd (int fd,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);</pre><p>
|
||||
Create a buffered output for the progressive saving
|
||||
to a file descriptor</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>fd</tt></i> :</span></td><td> a file descriptor number
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoder</tt></i> :</span></td><td> the encoding converter or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser output or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferCreateIO"></a>xmlOutputBufferCreateIO ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> xmlOutputBufferCreateIO (<a href="libxml-xmlIO.html#xmlOutputWriteCallback">xmlOutputWriteCallback</a> iowrite,
|
||||
<a href="libxml-xmlIO.html#xmlOutputCloseCallback">xmlOutputCloseCallback</a> ioclose,
|
||||
void *ioctx,
|
||||
<a href="libxml-encoding.html#xmlCharEncodingHandlerPtr">xmlCharEncodingHandlerPtr</a> encoder);</pre><p>
|
||||
Create a buffered output for the progressive saving
|
||||
to an I/O handler</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>iowrite</tt></i> :</span></td><td> an I/O write function
|
||||
</td></tr><tr><td><span class="term"><i><tt>ioclose</tt></i> :</span></td><td> an I/O close function
|
||||
</td></tr><tr><td><span class="term"><i><tt>ioctx</tt></i> :</span></td><td> an I/O handler
|
||||
</td></tr><tr><td><span class="term"><i><tt>encoder</tt></i> :</span></td><td> the charset encoding if known
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new parser output or NULL
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferWrite"></a>xmlOutputBufferWrite ()</h3><pre class="programlisting">int xmlOutputBufferWrite (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out,
|
||||
int len,
|
||||
const char *buf);</pre><p>
|
||||
Write the content of the array in the output I/O buffer
|
||||
This routine handle the I18N transcoding from internal UTF-8
|
||||
The buffer is lossless, i.e. will store in case of partial
|
||||
or delayed writes.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a buffered parser output
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> the size in bytes of the array.
|
||||
</td></tr><tr><td><span class="term"><i><tt>buf</tt></i> :</span></td><td> an char array
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of chars immediately written, or -1
|
||||
in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferWriteString"></a>xmlOutputBufferWriteString ()</h3><pre class="programlisting">int xmlOutputBufferWriteString (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out,
|
||||
const char *str);</pre><p>
|
||||
Write the content of the string in the output I/O buffer
|
||||
This routine handle the I18N transcoding from internal UTF-8
|
||||
The buffer is lossless, i.e. will store in case of partial
|
||||
or delayed writes.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a buffered parser output
|
||||
</td></tr><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> a zero terminated C string
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of chars immediately written, or -1
|
||||
in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferFlush"></a>xmlOutputBufferFlush ()</h3><pre class="programlisting">int xmlOutputBufferFlush (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out);</pre><p>
|
||||
flushes the output I/O channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a buffered output
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written or -1 in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlOutputBufferClose"></a>xmlOutputBufferClose ()</h3><pre class="programlisting">int xmlOutputBufferClose (<a href="libxml-tree.html#xmlOutputBufferPtr">xmlOutputBufferPtr</a> out);</pre><p>
|
||||
flushes and close the output I/O channel
|
||||
and free up all the associated resources</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>out</tt></i> :</span></td><td> a buffered output
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of byte written or -1 in case of error.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterOutputCallbacks"></a>xmlRegisterOutputCallbacks ()</h3><pre class="programlisting">int xmlRegisterOutputCallbacks (<a href="libxml-xmlIO.html#xmlOutputMatchCallback">xmlOutputMatchCallback</a> matchFunc,
|
||||
<a href="libxml-xmlIO.html#xmlOutputOpenCallback">xmlOutputOpenCallback</a> openFunc,
|
||||
<a href="libxml-xmlIO.html#xmlOutputWriteCallback">xmlOutputWriteCallback</a> writeFunc,
|
||||
<a href="libxml-xmlIO.html#xmlOutputCloseCallback">xmlOutputCloseCallback</a> closeFunc);</pre><p>
|
||||
Register a new set of I/O callback for handling output.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>matchFunc</tt></i> :</span></td><td> the xmlOutputMatchCallback
|
||||
</td></tr><tr><td><span class="term"><i><tt>openFunc</tt></i> :</span></td><td> the xmlOutputOpenCallback
|
||||
</td></tr><tr><td><span class="term"><i><tt>writeFunc</tt></i> :</span></td><td> the xmlOutputWriteCallback
|
||||
</td></tr><tr><td><span class="term"><i><tt>closeFunc</tt></i> :</span></td><td> the xmlOutputCloseCallback
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the registered handler number or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOHTTPOpenW"></a>xmlIOHTTPOpenW ()</h3><pre class="programlisting">void* xmlIOHTTPOpenW (const char *post_uri,
|
||||
int compression);</pre><p>
|
||||
Open a temporary buffer to collect the document for a subsequent HTTP POST
|
||||
request. Non-static as is called from the output buffer creation routine.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>post_uri</tt></i> :</span></td><td> The destination URI for the document
|
||||
</td></tr><tr><td><span class="term"><i><tt>compression</tt></i> :</span></td><td> The compression desired for the document.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterHTTPPostCallbacks"></a>xmlRegisterHTTPPostCallbacks ()</h3><pre class="programlisting">void xmlRegisterHTTPPostCallbacks (void);</pre><p>
|
||||
By default, libxml submits HTTP output requests using the "PUT" method.
|
||||
Calling this method changes the HTTP output method to use the "POST"
|
||||
method instead.</p><p>
|
||||
|
||||
</p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlNoNetExternalEntityLoader"></a>xmlNoNetExternalEntityLoader ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlParserInputPtr">xmlParserInputPtr</a> xmlNoNetExternalEntityLoader
|
||||
(const char *URL,
|
||||
const char *ID,
|
||||
<a href="libxml-tree.html#xmlParserCtxtPtr">xmlParserCtxtPtr</a> ctxt);</pre><p>
|
||||
A specific entity loader disabling network accesses, though still
|
||||
allowing local catalog accesses for resolution.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>URL</tt></i> :</span></td><td> the URL for the entity to load
|
||||
</td></tr><tr><td><span class="term"><i><tt>ID</tt></i> :</span></td><td> the System ID for the entity to load
|
||||
</td></tr><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the context in which the entity is called or NULL
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a new allocated xmlParserInputPtr, or NULL.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlNormalizeWindowsPath"></a>xmlNormalizeWindowsPath ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlNormalizeWindowsPath (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *path);</pre><p>
|
||||
This function is obsolete. Please see xmlURIFromPath in uri.c for
|
||||
a better solution.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>path</tt></i> :</span></td><td> the input file path
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a canonicalized version of the path
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlCheckFilename"></a>xmlCheckFilename ()</h3><pre class="programlisting">int xmlCheckFilename (const char *path);</pre><p>
|
||||
function checks to see if <i><tt>path</tt></i> is a valid source
|
||||
(file, socket...) for XML.
|
||||
</p><p>
|
||||
if stat is not available on the target machine,
|
||||
returns 1. if stat fails, returns 0 (if calling
|
||||
stat on the filename fails, it can't be right).
|
||||
if stat succeeds and the file is a directory,</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>path</tt></i> :</span></td><td> the path to check
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>2. otherwise returns 1.
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFileMatch"></a>xmlFileMatch ()</h3><pre class="programlisting">int xmlFileMatch (const char *filename);</pre><p>
|
||||
input from FILE *</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the URI for matching
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if matches, 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFileOpen"></a>xmlFileOpen ()</h3><pre class="programlisting">void* xmlFileOpen (const char *filename);</pre><p>
|
||||
Wrapper around xmlFileOpen_real that try it with an unescaped
|
||||
version of <i><tt>filename</tt></i>, if this fails fallback to <i><tt>filename</tt></i></p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the URI for matching
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFileRead"></a>xmlFileRead ()</h3><pre class="programlisting">int xmlFileRead (void *context,
|
||||
char *buffer,
|
||||
int len);</pre><p>
|
||||
Read <i><tt>len</tt></i> bytes to <i><tt>buffer</tt></i> from the I/O channel.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> the I/O context
|
||||
</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> where to drop data
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> number of bytes to write
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of bytes written
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFileClose"></a>xmlFileClose ()</h3><pre class="programlisting">int xmlFileClose (void *context);</pre><p>
|
||||
Close an I/O channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> the I/O context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or -1 in case of error
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOHTTPMatch"></a>xmlIOHTTPMatch ()</h3><pre class="programlisting">int xmlIOHTTPMatch (const char *filename);</pre><p>
|
||||
check if the URI matches an HTTP one</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the URI for matching
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if matches, 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOHTTPOpen"></a>xmlIOHTTPOpen ()</h3><pre class="programlisting">void* xmlIOHTTPOpen (const char *filename);</pre><p>
|
||||
open an HTTP I/O channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the URI for matching
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOHTTPRead"></a>xmlIOHTTPRead ()</h3><pre class="programlisting">int xmlIOHTTPRead (void *context,
|
||||
char *buffer,
|
||||
int len);</pre><p>
|
||||
Read <i><tt>len</tt></i> bytes to <i><tt>buffer</tt></i> from the I/O channel.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> the I/O context
|
||||
</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> where to drop data
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> number of bytes to write
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of bytes written
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOHTTPClose"></a>xmlIOHTTPClose ()</h3><pre class="programlisting">int xmlIOHTTPClose (void *context);</pre><p>
|
||||
Close an HTTP I/O channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> the I/O context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOFTPMatch"></a>xmlIOFTPMatch ()</h3><pre class="programlisting">int xmlIOFTPMatch (const char *filename);</pre><p>
|
||||
check if the URI matches an FTP one</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the URI for matching
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if matches, 0 otherwise
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOFTPOpen"></a>xmlIOFTPOpen ()</h3><pre class="programlisting">void* xmlIOFTPOpen (const char *filename);</pre><p>
|
||||
open an FTP I/O channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>filename</tt></i> :</span></td><td> the URI for matching
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOFTPRead"></a>xmlIOFTPRead ()</h3><pre class="programlisting">int xmlIOFTPRead (void *context,
|
||||
char *buffer,
|
||||
int len);</pre><p>
|
||||
Read <i><tt>len</tt></i> bytes to <i><tt>buffer</tt></i> from the I/O channel.</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> the I/O context
|
||||
</td></tr><tr><td><span class="term"><i><tt>buffer</tt></i> :</span></td><td> where to drop data
|
||||
</td></tr><tr><td><span class="term"><i><tt>len</tt></i> :</span></td><td> number of bytes to write
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of bytes written
|
||||
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIOFTPClose"></a>xmlIOFTPClose ()</h3><pre class="programlisting">int xmlIOFTPClose (void *context);</pre><p>
|
||||
Close an FTP I/O channel</p><p>
|
||||
|
||||
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>context</tt></i> :</span></td><td> the I/O context
|
||||
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0
|
||||
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-nanoftp.html"><b><< nanoftp</b></a></td><td align="right"><a accesskey="n" href="libxml-catalog.html"><b>catalog >></b></a></td></tr></table></body></html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1465
doc/html/libxml-xpathInternals.html
Normal file
1465
doc/html/libxml-xpathInternals.html
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
BIN
doc/html/right.png
Normal file
BIN
doc/html/right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 472 B |
BIN
doc/html/up.png
Normal file
BIN
doc/html/up.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 406 B |
@ -501,6 +501,19 @@
|
||||
<exports symbol='xmlNanoFTPScanProxy'/>
|
||||
<exports symbol='xmlNanoFTPUpdateURL'/>
|
||||
</file>
|
||||
<file name='xmlschemastypes'>
|
||||
<exports symbol='xmlSchemaCheckFacet'/>
|
||||
<exports symbol='xmlSchemaCleanupTypes'/>
|
||||
<exports symbol='xmlSchemaCompareValues'/>
|
||||
<exports symbol='xmlSchemaFreeFacet'/>
|
||||
<exports symbol='xmlSchemaFreeValue'/>
|
||||
<exports symbol='xmlSchemaGetPredefinedType'/>
|
||||
<exports symbol='xmlSchemaInitTypes'/>
|
||||
<exports symbol='xmlSchemaNewFacet'/>
|
||||
<exports symbol='xmlSchemaValPredefTypeNode'/>
|
||||
<exports symbol='xmlSchemaValidateFacet'/>
|
||||
<exports symbol='xmlSchemaValidatePredefinedType'/>
|
||||
</file>
|
||||
<file name='DOCBparser'>
|
||||
<exports symbol='docbCreateFileParserCtxt'/>
|
||||
<exports symbol='docbCreatePushParserCtxt'/>
|
||||
@ -1109,6 +1122,92 @@
|
||||
<exports symbol='xmlSubstituteEntitiesDefault'/>
|
||||
<exports symbol='xmlSubstituteEntitiesDefaultValue'/>
|
||||
</file>
|
||||
<file name='schemasInternals'>
|
||||
<exports symbol='XML_SCHEMAS_ANYATTR_LAX'/>
|
||||
<exports symbol='XML_SCHEMAS_ANYATTR_SKIP'/>
|
||||
<exports symbol='XML_SCHEMAS_ANYATTR_STRICT'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_ABSTRACT'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_DEFAULT'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_FIXED'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_GLOBAL'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_NILLABLE'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_REF'/>
|
||||
<exports symbol='XML_SCHEMAS_ELEM_TOPLEVEL'/>
|
||||
<exports symbol='XML_SCHEMAS_FACET_COLLAPSE'/>
|
||||
<exports symbol='XML_SCHEMAS_FACET_PRESERVE'/>
|
||||
<exports symbol='XML_SCHEMAS_FACET_REPLACE'/>
|
||||
<exports symbol='XML_SCHEMAS_FACET_UNKNOWN'/>
|
||||
<exports symbol='XML_SCHEMAS_QUALIF_ATTR'/>
|
||||
<exports symbol='XML_SCHEMAS_QUALIF_ELEM'/>
|
||||
<exports symbol='XML_SCHEMAS_TYPE_MIXED'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_ANY'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_BASIC'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_ELEMENTS'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_EMPTY'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_MIXED'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_SIMPLE'/>
|
||||
<exports symbol='XML_SCHEMA_CONTENT_UNKNOWN'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_ENUMERATION'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_FRACTIONDIGITS'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_LENGTH'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_MAXEXCLUSIVE'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_MAXINCLUSIVE'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_MAXLENGTH'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_MINEXCLUSIVE'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_MININCLUSIVE'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_MINLENGTH'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_PATTERN'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_TOTALDIGITS'/>
|
||||
<exports symbol='XML_SCHEMA_FACET_WHITESPACE'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_ALL'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_ANY'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_ATTRIBUTE'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_ATTRIBUTEGROUP'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_BASIC'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_CHOICE'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_COMPLEX'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_COMPLEX_CONTENT'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_ELEMENT'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_EXTENSION'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_FACET'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_GROUP'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_LIST'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_NOTATION'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_RESTRICTION'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_SEQUENCE'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_SIMPLE'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_SIMPLE_CONTENT'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_UNION'/>
|
||||
<exports symbol='XML_SCHEMA_TYPE_UR'/>
|
||||
<exports symbol='_xmlSchema'/>
|
||||
<exports symbol='_xmlSchemaAnnot'/>
|
||||
<exports symbol='_xmlSchemaAttribute'/>
|
||||
<exports symbol='_xmlSchemaAttributeGroup'/>
|
||||
<exports symbol='_xmlSchemaElement'/>
|
||||
<exports symbol='_xmlSchemaFacet'/>
|
||||
<exports symbol='_xmlSchemaNotation'/>
|
||||
<exports symbol='_xmlSchemaType'/>
|
||||
<exports symbol='xmlSchemaAnnot'/>
|
||||
<exports symbol='xmlSchemaAnnotPtr'/>
|
||||
<exports symbol='xmlSchemaAttribute'/>
|
||||
<exports symbol='xmlSchemaAttributeGroup'/>
|
||||
<exports symbol='xmlSchemaAttributeGroupPtr'/>
|
||||
<exports symbol='xmlSchemaAttributePtr'/>
|
||||
<exports symbol='xmlSchemaContentType'/>
|
||||
<exports symbol='xmlSchemaElement'/>
|
||||
<exports symbol='xmlSchemaElementPtr'/>
|
||||
<exports symbol='xmlSchemaFacet'/>
|
||||
<exports symbol='xmlSchemaFacetPtr'/>
|
||||
<exports symbol='xmlSchemaFreeType'/>
|
||||
<exports symbol='xmlSchemaNotation'/>
|
||||
<exports symbol='xmlSchemaNotationPtr'/>
|
||||
<exports symbol='xmlSchemaType'/>
|
||||
<exports symbol='xmlSchemaTypePtr'/>
|
||||
<exports symbol='xmlSchemaTypeType'/>
|
||||
<exports symbol='xmlSchemaVal'/>
|
||||
<exports symbol='xmlSchemaValPtr'/>
|
||||
</file>
|
||||
<file name='xmlreader'>
|
||||
<exports symbol='XML_PARSER_DEFAULTATTRS'/>
|
||||
<exports symbol='XML_PARSER_LOADDTD'/>
|
||||
@ -1175,6 +1274,55 @@
|
||||
<exports symbol='xmlTextReaderValue'/>
|
||||
<exports symbol='xmlTextReaderXmlLang'/>
|
||||
</file>
|
||||
<file name='xmlschemas'>
|
||||
<exports symbol='XML_SCHEMAS_ERR_'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_ATTRINVALID'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_ATTRUNKNOWN'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_CONSTRUCT'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_ELEMCONT'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_EXTRACONTENT'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_FACET'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_HAVEDEFAULT'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_INTERNAL'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_INVALIDATTR'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_INVALIDELEM'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_ISABSTRACT'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_MISSING'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOROLLBACK'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOROOT'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOTDETERMINIST'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOTEMPTY'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOTNILLABLE'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOTSIMPLE'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOTTOPLEVEL'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_NOTYPE'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_OK'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_UNDECLAREDELEM'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_VALUE'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_WRONGELEM'/>
|
||||
<exports symbol='XML_SCHEMAS_ERR_XXX'/>
|
||||
<exports symbol='xmlSchema'/>
|
||||
<exports symbol='xmlSchemaDump'/>
|
||||
<exports symbol='xmlSchemaFree'/>
|
||||
<exports symbol='xmlSchemaFreeParserCtxt'/>
|
||||
<exports symbol='xmlSchemaFreeValidCtxt'/>
|
||||
<exports symbol='xmlSchemaNewMemParserCtxt'/>
|
||||
<exports symbol='xmlSchemaNewParserCtxt'/>
|
||||
<exports symbol='xmlSchemaNewValidCtxt'/>
|
||||
<exports symbol='xmlSchemaParse'/>
|
||||
<exports symbol='xmlSchemaParserCtxt'/>
|
||||
<exports symbol='xmlSchemaParserCtxtPtr'/>
|
||||
<exports symbol='xmlSchemaPtr'/>
|
||||
<exports symbol='xmlSchemaSetParserErrors'/>
|
||||
<exports symbol='xmlSchemaSetValidErrors'/>
|
||||
<exports symbol='xmlSchemaValidCtxt'/>
|
||||
<exports symbol='xmlSchemaValidCtxtPtr'/>
|
||||
<exports symbol='xmlSchemaValidError'/>
|
||||
<exports symbol='xmlSchemaValidateDoc'/>
|
||||
<exports symbol='xmlSchemaValidateStream'/>
|
||||
<exports symbol='xmlSchemaValidityErrorFunc'/>
|
||||
<exports symbol='xmlSchemaValidityWarningFunc'/>
|
||||
</file>
|
||||
<file name='relaxng'>
|
||||
<exports symbol='XML_RELAXNG_ERR_ATTREXTRANS'/>
|
||||
<exports symbol='XML_RELAXNG_ERR_ATTRNAME'/>
|
||||
@ -2177,6 +2325,54 @@
|
||||
<macro name='XML_MAX_NAMELEN' file='parserInternals'>
|
||||
<info>Identifiers can be longer, but this will be more costly at runtime.</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ANYATTR_LAX' file='schemasInternals'>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ANYATTR_SKIP' file='schemasInternals'>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ANYATTR_STRICT' file='schemasInternals'>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_ABSTRACT' file='schemasInternals'>
|
||||
<info>the element is abstract</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_DEFAULT' file='schemasInternals'>
|
||||
<info>the element has a default value</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_FIXED' file='schemasInternals'>
|
||||
<info>the element has a fixed value</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_GLOBAL' file='schemasInternals'>
|
||||
<info>the element is global</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_NILLABLE' file='schemasInternals'>
|
||||
<info>the element is nillable</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_REF' file='schemasInternals'>
|
||||
<info>the element is a reference to a type</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_ELEM_TOPLEVEL' file='schemasInternals'>
|
||||
<info>the element is top level</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_FACET_COLLAPSE' file='schemasInternals'>
|
||||
<info>collapse the types of the facet</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_FACET_PRESERVE' file='schemasInternals'>
|
||||
<info>preserve the type of the facet</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_FACET_REPLACE' file='schemasInternals'>
|
||||
<info>replace the type of the facet</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_FACET_UNKNOWN' file='schemasInternals'>
|
||||
<info>unknown facet handling</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_QUALIF_ATTR' file='schemasInternals'>
|
||||
<info>the shemas requires qualified attributes</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_QUALIF_ELEM' file='schemasInternals'>
|
||||
<info>the shemas requires qualified elements</info>
|
||||
</macro>
|
||||
<macro name='XML_SCHEMAS_TYPE_MIXED' file='schemasInternals'>
|
||||
<info>the element content type is mixed</info>
|
||||
</macro>
|
||||
<macro name='XML_SKIP_IDS' file='parser'>
|
||||
<info>Bit in the loadsubset context field to tell to not do ID/REFs registration. Used to initialize xmlLoadExtDtdDefaultValue in some special cases.</info>
|
||||
</macro>
|
||||
@ -2571,6 +2767,72 @@
|
||||
<enum name='XML_RELAXNG_ERR_VALELEM' file='relaxng' value='29' type='xmlRelaxNGValidErr'/>
|
||||
<enum name='XML_RELAXNG_ERR_VALUE' file='relaxng' value='32' type='xmlRelaxNGValidErr'/>
|
||||
<enum name='XML_RELAXNG_OK' file='relaxng' value='0' type='xmlRelaxNGValidErr'/>
|
||||
<enum name='XML_SCHEMAS_ERR_' file='xmlschemas' value='24' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_ATTRINVALID' file='xmlschemas' value='21' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_ATTRUNKNOWN' file='xmlschemas' value='20' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_CONSTRUCT' file='xmlschemas' value='17' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_ELEMCONT' file='xmlschemas' value='10' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_EXTRACONTENT' file='xmlschemas' value='13' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_FACET' file='xmlschemas' value='23' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_HAVEDEFAULT' file='xmlschemas' value='11' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_INTERNAL' file='xmlschemas' value='18' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_INVALIDATTR' file='xmlschemas' value='14' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_INVALIDELEM' file='xmlschemas' value='15' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_ISABSTRACT' file='xmlschemas' value='8' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_MISSING' file='xmlschemas' value='4' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOROLLBACK' file='xmlschemas' value='7' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOROOT' file='xmlschemas' value='1' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOTDETERMINIST' file='xmlschemas' value='16' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOTEMPTY' file='xmlschemas' value='9' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOTNILLABLE' file='xmlschemas' value='12' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOTSIMPLE' file='xmlschemas' value='19' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOTTOPLEVEL' file='xmlschemas' value='3' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_NOTYPE' file='xmlschemas' value='6' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_OK' file='xmlschemas' value='0' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_UNDECLAREDELEM' file='xmlschemas' value='2' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_VALUE' file='xmlschemas' value='22' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_WRONGELEM' file='xmlschemas' value='5' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMAS_ERR_XXX' file='xmlschemas' value='25' type='xmlSchemaValidError'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_ANY' file='schemasInternals' value='7' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_BASIC' file='schemasInternals' value='6' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_ELEMENTS' file='schemasInternals' value='2' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_EMPTY' file='schemasInternals' value='1' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_MIXED' file='schemasInternals' value='3' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_MIXED_OR_ELEMENTS' file='schemasInternals' value='5' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_SIMPLE' file='schemasInternals' value='4' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_CONTENT_UNKNOWN' file='schemasInternals' value='0' type='xmlSchemaContentType'/>
|
||||
<enum name='XML_SCHEMA_FACET_ENUMERATION' file='schemasInternals' value='1007' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_FRACTIONDIGITS' file='schemasInternals' value='1005' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_LENGTH' file='schemasInternals' value='1009' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_MAXEXCLUSIVE' file='schemasInternals' value='1003' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_MAXINCLUSIVE' file='schemasInternals' value='1002' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_MAXLENGTH' file='schemasInternals' value='1010' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_MINEXCLUSIVE' file='schemasInternals' value='1001' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_MININCLUSIVE' file='schemasInternals' value='1000' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_MINLENGTH' file='schemasInternals' value='1011' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_PATTERN' file='schemasInternals' value='1006' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_TOTALDIGITS' file='schemasInternals' value='1004' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_FACET_WHITESPACE' file='schemasInternals' value='1008' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_ALL' file='schemasInternals' value='8' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_ANY' file='schemasInternals' value='2' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_ATTRIBUTE' file='schemasInternals' value='15' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_ATTRIBUTEGROUP' file='schemasInternals' value='16' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_BASIC' file='schemasInternals' value='1' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_CHOICE' file='schemasInternals' value='7' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_COMPLEX' file='schemasInternals' value='5' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_COMPLEX_CONTENT' file='schemasInternals' value='10' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_ELEMENT' file='schemasInternals' value='14' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_EXTENSION' file='schemasInternals' value='13' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_FACET' file='schemasInternals' value='3' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_GROUP' file='schemasInternals' value='17' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_LIST' file='schemasInternals' value='19' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_NOTATION' file='schemasInternals' value='18' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_RESTRICTION' file='schemasInternals' value='12' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_SEQUENCE' file='schemasInternals' value='6' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_SIMPLE' file='schemasInternals' value='4' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_SIMPLE_CONTENT' file='schemasInternals' value='9' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_UNION' file='schemasInternals' value='20' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_SCHEMA_TYPE_UR' file='schemasInternals' value='11' type='xmlSchemaTypeType'/>
|
||||
<enum name='XML_TEXT_NODE' file='tree' value='3' type='xmlElementType'/>
|
||||
<enum name='XML_WAR_CATALOG_PI' file='xmlerror' value='93' type='xmlParserErrors' info='93'/>
|
||||
<enum name='XML_WAR_UNDECLARED_ENTITY' file='xmlerror' value='27' type='xmlParserErrors'/>
|
||||
@ -3114,6 +3376,131 @@ actually an xmlCharEncoding'/>
|
||||
<field name='getColumnNumber' type='int(*getColumnNumber)' info=''/>
|
||||
</struct>
|
||||
<typedef name='xmlSAXLocatorPtr' file='tree' type='xmlSAXLocator *'/>
|
||||
<struct name='xmlSchema' file='xmlschemas' type='struct _xmlSchema'>
|
||||
<field name='name' type='xmlChar *' info=' schema name'/>
|
||||
<field name='targetNamespace' type='xmlChar *' info=' the target namespace'/>
|
||||
<field name='version' type='xmlChar *' info=''/>
|
||||
<field name='id' type='xmlChar *' info=''/>
|
||||
<field name='doc' type='xmlDocPtr' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='flags' type='int' info=''/>
|
||||
<field name='typeDecl' type='xmlHashTablePtr' info=''/>
|
||||
<field name='attrDecl' type='xmlHashTablePtr' info=''/>
|
||||
<field name='attrgrpDecl' type='xmlHashTablePtr' info=''/>
|
||||
<field name='elemDecl' type='xmlHashTablePtr' info=''/>
|
||||
<field name='notaDecl' type='xmlHashTablePtr' info=''/>
|
||||
<field name='schemasImports' type='xmlHashTablePtr' info=''/>
|
||||
<field name='_private' type='void *' info=' unused by the library for users or bindings'/>
|
||||
</struct>
|
||||
<struct name='xmlSchemaAnnot' file='schemasInternals' type='struct _xmlSchemaAnnot'>
|
||||
<field name='next' type='struct _xmlSchemaAnnot *' info=''/>
|
||||
<field name='content' type='xmlNodePtr' info=' the annotation'/>
|
||||
</struct>
|
||||
<typedef name='xmlSchemaAnnotPtr' file='schemasInternals' type='xmlSchemaAnnot *'/>
|
||||
<struct name='xmlSchemaAttribute' file='schemasInternals' type='struct _xmlSchemaAttribute'>
|
||||
<field name='type' type='xmlSchemaTypeType' info=' The kind of type'/>
|
||||
<field name='next' type='struct _xmlSchemaAttribute *' info=' the next attribute if in a group ...'/>
|
||||
<field name='name' type='xmlChar *' info=''/>
|
||||
<field name='id' type='xmlChar *' info=''/>
|
||||
<field name='ref' type='xmlChar *' info=''/>
|
||||
<field name='refNs' type='xmlChar *' info=''/>
|
||||
<field name='typeName' type='xmlChar *' info=''/>
|
||||
<field name='typeNs' type='xmlChar *' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='base' type='xmlSchemaTypePtr' info=''/>
|
||||
<field name='occurs' type='int' info=''/>
|
||||
<field name='defValue' type='xmlChar *' info=''/>
|
||||
<field name='subtypes' type='xmlSchemaTypePtr' info=''/>
|
||||
</struct>
|
||||
<struct name='xmlSchemaAttributeGroup' file='schemasInternals' type='struct _xmlSchemaAttributeGroup'>
|
||||
<field name='type' type='xmlSchemaTypeType' info=' The kind of type'/>
|
||||
<field name='next' type='struct _xmlSchemaAttribute *' info=' the next attribute if in a group ...'/>
|
||||
<field name='name' type='xmlChar *' info=''/>
|
||||
<field name='id' type='xmlChar *' info=''/>
|
||||
<field name='ref' type='xmlChar *' info=''/>
|
||||
<field name='refNs' type='xmlChar *' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='attributes' type='xmlSchemaAttributePtr' info=''/>
|
||||
</struct>
|
||||
<typedef name='xmlSchemaAttributeGroupPtr' file='schemasInternals' type='xmlSchemaAttributeGroup *'/>
|
||||
<typedef name='xmlSchemaAttributePtr' file='schemasInternals' type='xmlSchemaAttribute *'/>
|
||||
<typedef name='xmlSchemaContentType' file='schemasInternals' type='enum'/>
|
||||
<struct name='xmlSchemaElement' file='schemasInternals' type='struct _xmlSchemaElement'>
|
||||
<field name='type' type='xmlSchemaTypeType' info=' The kind of type'/>
|
||||
<field name='next' type='struct _xmlSchemaType *' info=' the next type if in a sequence ...'/>
|
||||
<field name='name' type='xmlChar *' info=''/>
|
||||
<field name='id' type='xmlChar *' info=''/>
|
||||
<field name='ref' type='xmlChar *' info=''/>
|
||||
<field name='refNs' type='xmlChar *' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='subtypes' type='xmlSchemaTypePtr' info=''/>
|
||||
<field name='attributes' type='xmlSchemaAttributePtr' info=''/>
|
||||
<field name='node' type='xmlNodePtr' info=''/>
|
||||
<field name='minOccurs' type='int' info=''/>
|
||||
<field name='maxOccurs' type='int' info=''/>
|
||||
<field name='flags' type='int' info=''/>
|
||||
<field name='targetNamespace' type='xmlChar *' info=''/>
|
||||
<field name='namedType' type='xmlChar *' info=''/>
|
||||
<field name='namedTypeNs' type='xmlChar *' info=''/>
|
||||
<field name='substGroup' type='xmlChar *' info=''/>
|
||||
<field name='substGroupNs' type='xmlChar *' info=''/>
|
||||
<field name='scope' type='xmlChar *' info=''/>
|
||||
<field name='value' type='xmlChar *' info=''/>
|
||||
<field name='refDecl' type='struct _xmlSchemaElement *' info=''/>
|
||||
<field name='contModel' type='xmlRegexpPtr' info=''/>
|
||||
<field name='contentType' type='xmlSchemaContentType' info=''/>
|
||||
</struct>
|
||||
<typedef name='xmlSchemaElementPtr' file='schemasInternals' type='xmlSchemaElement *'/>
|
||||
<struct name='xmlSchemaFacet' file='schemasInternals' type='struct _xmlSchemaFacet'>
|
||||
<field name='type' type='xmlSchemaTypeType' info=' The kind of type'/>
|
||||
<field name='next' type='struct _xmlSchemaFacet *' info=' the next type if in a sequence ...'/>
|
||||
<field name='value' type='xmlChar *' info=''/>
|
||||
<field name='id' type='xmlChar *' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='node' type='xmlNodePtr' info=''/>
|
||||
<field name='fixed' type='int' info=''/>
|
||||
<field name='whitespace' type='int' info=''/>
|
||||
<field name='val' type='xmlSchemaValPtr' info=''/>
|
||||
<field name='regexp' type='xmlRegexpPtr' info=''/>
|
||||
</struct>
|
||||
<typedef name='xmlSchemaFacetPtr' file='schemasInternals' type='xmlSchemaFacet *'/>
|
||||
<struct name='xmlSchemaNotation' file='schemasInternals' type='struct _xmlSchemaNotation'>
|
||||
<field name='type' type='xmlSchemaTypeType' info=' The kind of type'/>
|
||||
<field name='name' type='xmlChar *' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='identifier' type='xmlChar *' info=''/>
|
||||
</struct>
|
||||
<typedef name='xmlSchemaNotationPtr' file='schemasInternals' type='xmlSchemaNotation *'/>
|
||||
<struct name='xmlSchemaParserCtxt' file='xmlschemas' type='struct _xmlSchemaParserCtxt'/>
|
||||
<typedef name='xmlSchemaParserCtxtPtr' file='xmlschemas' type='xmlSchemaParserCtxt *'/>
|
||||
<typedef name='xmlSchemaPtr' file='xmlschemas' type='xmlSchema *'/>
|
||||
<struct name='xmlSchemaType' file='schemasInternals' type='struct _xmlSchemaType'>
|
||||
<field name='type' type='xmlSchemaTypeType' info=' The kind of type'/>
|
||||
<field name='next' type='struct _xmlSchemaType *' info=' the next type if in a sequence ...'/>
|
||||
<field name='name' type='xmlChar *' info=''/>
|
||||
<field name='id' type='xmlChar *' info=''/>
|
||||
<field name='ref' type='xmlChar *' info=''/>
|
||||
<field name='refNs' type='xmlChar *' info=''/>
|
||||
<field name='annot' type='xmlSchemaAnnotPtr' info=''/>
|
||||
<field name='subtypes' type='xmlSchemaTypePtr' info=''/>
|
||||
<field name='attributes' type='xmlSchemaAttributePtr' info=''/>
|
||||
<field name='node' type='xmlNodePtr' info=''/>
|
||||
<field name='minOccurs' type='int' info=''/>
|
||||
<field name='maxOccurs' type='int' info=''/>
|
||||
<field name='flags' type='int' info=''/>
|
||||
<field name='contentType' type='xmlSchemaContentType' info=''/>
|
||||
<field name='base' type='xmlChar *' info=''/>
|
||||
<field name='baseNs' type='xmlChar *' info=''/>
|
||||
<field name='baseType' type='xmlSchemaTypePtr' info=''/>
|
||||
<field name='facets' type='xmlSchemaFacetPtr' info=''/>
|
||||
</struct>
|
||||
<typedef name='xmlSchemaTypePtr' file='schemasInternals' type='xmlSchemaType *'/>
|
||||
<typedef name='xmlSchemaTypeType' file='schemasInternals' type='enum'/>
|
||||
<struct name='xmlSchemaVal' file='schemasInternals' type='struct _xmlSchemaVal'/>
|
||||
<typedef name='xmlSchemaValPtr' file='schemasInternals' type='xmlSchemaVal *'/>
|
||||
<struct name='xmlSchemaValidCtxt' file='xmlschemas' type='struct _xmlSchemaValidCtxt'/>
|
||||
<typedef name='xmlSchemaValidCtxtPtr' file='xmlschemas' type='xmlSchemaValidCtxt *'/>
|
||||
<typedef name='xmlSchemaValidError' file='xmlschemas' type='enum'/>
|
||||
<struct name='xmlShellCtxt' file='debugXML' type='struct _xmlShellCtxt'>
|
||||
<field name='filename' type='char *' info=''/>
|
||||
<field name='doc' type='xmlDocPtr' info=''/>
|
||||
@ -7958,6 +8345,163 @@ actually an xmlCharEncoding'/>
|
||||
<return type='xmlChar *' info='the Name parsed or NULL'/>
|
||||
<arg name='ctxt' type='xmlParserCtxtPtr' info='an XML parser context'/>
|
||||
</function>
|
||||
<function name='xmlSchemaCheckFacet' file='xmlschemastypes'>
|
||||
<info>Checks the default values types, especially for facets</info>
|
||||
<return type='int' info='0 if okay or -1 in cae of error'/>
|
||||
<arg name='facet' type='xmlSchemaFacetPtr' info='the facet'/>
|
||||
<arg name='typeDecl' type='xmlSchemaTypePtr' info='the schema type definition'/>
|
||||
<arg name='ctxt' type='xmlSchemaParserCtxtPtr' info='the schema parser context or NULL'/>
|
||||
<arg name='name' type='const xmlChar *' info='name of the type'/>
|
||||
</function>
|
||||
<function name='xmlSchemaCleanupTypes' file='xmlschemastypes'>
|
||||
<info>Cleanup the default XML Schemas type library</info>
|
||||
<return type='void'/>
|
||||
</function>
|
||||
<function name='xmlSchemaCompareValues' file='xmlschemastypes'>
|
||||
<info>Compare 2 values</info>
|
||||
<return type='int' info='-1 if x < y, 0 if x == y, 1 if x > y, 2 if x <> y, and -2 in case of error'/>
|
||||
<arg name='x' type='xmlSchemaValPtr' info='a first value'/>
|
||||
<arg name='y' type='xmlSchemaValPtr' info='a second value'/>
|
||||
</function>
|
||||
<function name='xmlSchemaDump' file='xmlschemas'>
|
||||
<info>Dump a Schema structure.</info>
|
||||
<return type='void'/>
|
||||
<arg name='output' type='FILE *' info='the file output'/>
|
||||
<arg name='schema' type='xmlSchemaPtr' info='a schema structure'/>
|
||||
</function>
|
||||
<function name='xmlSchemaFree' file='xmlschemas'>
|
||||
<info>Deallocate a Schema structure.</info>
|
||||
<return type='void'/>
|
||||
<arg name='schema' type='xmlSchemaPtr' info='a schema structure'/>
|
||||
</function>
|
||||
<function name='xmlSchemaFreeFacet' file='xmlschemastypes'>
|
||||
<info>Deallocate a Schema Facet structure.</info>
|
||||
<return type='void'/>
|
||||
<arg name='facet' type='xmlSchemaFacetPtr' info='a schema facet structure'/>
|
||||
</function>
|
||||
<function name='xmlSchemaFreeParserCtxt' file='xmlschemas'>
|
||||
<info>Free the resources associated to the schema parser context</info>
|
||||
<return type='void'/>
|
||||
<arg name='ctxt' type='xmlSchemaParserCtxtPtr' info='the schema parser context'/>
|
||||
</function>
|
||||
<function name='xmlSchemaFreeType' file='schemasInternals'>
|
||||
<info>Deallocate a Schema Type structure.</info>
|
||||
<return type='void'/>
|
||||
<arg name='type' type='xmlSchemaTypePtr' info='a schema type structure'/>
|
||||
</function>
|
||||
<function name='xmlSchemaFreeValidCtxt' file='xmlschemas'>
|
||||
<info>Free the resources associated to the schema validation context</info>
|
||||
<return type='void'/>
|
||||
<arg name='ctxt' type='xmlSchemaValidCtxtPtr' info='the schema validation context'/>
|
||||
</function>
|
||||
<function name='xmlSchemaFreeValue' file='xmlschemastypes'>
|
||||
<info>Cleanup the default XML Schemas type library</info>
|
||||
<return type='void'/>
|
||||
<arg name='value' type='xmlSchemaValPtr' info='the value to free'/>
|
||||
</function>
|
||||
<function name='xmlSchemaGetPredefinedType' file='xmlschemastypes'>
|
||||
<info>Lookup a type in the default XML Schemas type library</info>
|
||||
<return type='xmlSchemaTypePtr' info='the type if found, NULL otherwise'/>
|
||||
<arg name='name' type='const xmlChar *' info='the type name'/>
|
||||
<arg name='ns' type='const xmlChar *' info='the URI of the namespace usually "http://www.w3.org/2001/XMLSchema"'/>
|
||||
</function>
|
||||
<function name='xmlSchemaInitTypes' file='xmlschemastypes'>
|
||||
<info>Initialize the default XML Schemas type library</info>
|
||||
<return type='void'/>
|
||||
</function>
|
||||
<function name='xmlSchemaNewFacet' file='xmlschemastypes'>
|
||||
<info>Allocate a new Facet structure.</info>
|
||||
<return type='xmlSchemaFacetPtr' info='the newly allocated structure or NULL in case or error'/>
|
||||
</function>
|
||||
<function name='xmlSchemaNewMemParserCtxt' file='xmlschemas'>
|
||||
<info>Create an XML Schemas parse context for that memory buffer expected to contain an XML Schemas file.</info>
|
||||
<return type='xmlSchemaParserCtxtPtr' info='the parser context or NULL in case of error'/>
|
||||
<arg name='buffer' type='const char *' info='a pointer to a char array containing the schemas'/>
|
||||
<arg name='size' type='int' info='the size of the array'/>
|
||||
</function>
|
||||
<function name='xmlSchemaNewParserCtxt' file='xmlschemas'>
|
||||
<info>Create an XML Schemas parse context for that file/resource expected to contain an XML Schemas file.</info>
|
||||
<return type='xmlSchemaParserCtxtPtr' info='the parser context or NULL in case of error'/>
|
||||
<arg name='URL' type='const char *' info='the location of the schema'/>
|
||||
</function>
|
||||
<function name='xmlSchemaNewValidCtxt' file='xmlschemas'>
|
||||
<info>Create an XML Schemas validation context based on the given schema</info>
|
||||
<return type='xmlSchemaValidCtxtPtr' info='the validation context or NULL in case of error'/>
|
||||
<arg name='schema' type='xmlSchemaPtr' info='a precompiled XML Schemas'/>
|
||||
</function>
|
||||
<function name='xmlSchemaParse' file='xmlschemas'>
|
||||
<info>parse a schema definition resource and build an internal XML Shema struture which can be used to validate instances. *WARNING* this interface is highly subject to change</info>
|
||||
<return type='xmlSchemaPtr' info='the internal XML Schema structure built from the resource or NULL in case of error'/>
|
||||
<arg name='ctxt' type='xmlSchemaParserCtxtPtr' info='a schema validation context'/>
|
||||
</function>
|
||||
<function name='xmlSchemaSetParserErrors' file='xmlschemas'>
|
||||
<info>Set the callback functions used to handle errors for a validation context</info>
|
||||
<return type='void'/>
|
||||
<arg name='ctxt' type='xmlSchemaParserCtxtPtr' info='a schema validation context'/>
|
||||
<arg name='err' type='xmlSchemaValidityErrorFunc' info='the error callback'/>
|
||||
<arg name='warn' type='xmlSchemaValidityWarningFunc' info='the warning callback'/>
|
||||
<arg name='ctx' type='void *' info='contextual data for the callbacks'/>
|
||||
</function>
|
||||
<function name='xmlSchemaSetValidErrors' file='xmlschemas'>
|
||||
<info>Set the error and warning callback informations</info>
|
||||
<return type='void'/>
|
||||
<arg name='ctxt' type='xmlSchemaValidCtxtPtr' info='a schema validation context'/>
|
||||
<arg name='err' type='xmlSchemaValidityErrorFunc' info='the error function'/>
|
||||
<arg name='warn' type='xmlSchemaValidityWarningFunc' info='the warning function'/>
|
||||
<arg name='ctx' type='void *' info='the functions context'/>
|
||||
</function>
|
||||
<function name='xmlSchemaValPredefTypeNode' file='xmlschemastypes'>
|
||||
<info>Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.</info>
|
||||
<return type='int' info='0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.'/>
|
||||
<arg name='type' type='xmlSchemaTypePtr' info='the predefined type'/>
|
||||
<arg name='value' type='const xmlChar *' info='the value to check'/>
|
||||
<arg name='val' type='xmlSchemaValPtr *' info='the return computed value'/>
|
||||
<arg name='node' type='xmlNodePtr' info='the node containing the value'/>
|
||||
</function>
|
||||
<function name='xmlSchemaValidateDoc' file='xmlschemas'>
|
||||
<info>Validate a document tree in memory.</info>
|
||||
<return type='int' info='0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.'/>
|
||||
<arg name='ctxt' type='xmlSchemaValidCtxtPtr' info='a schema validation context'/>
|
||||
<arg name='doc' type='xmlDocPtr' info='a parsed document tree'/>
|
||||
</function>
|
||||
<function name='xmlSchemaValidateFacet' file='xmlschemastypes'>
|
||||
<info>Check a value against a facet condition</info>
|
||||
<return type='int' info='0 if the element is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.'/>
|
||||
<arg name='base' type='xmlSchemaTypePtr' info='the base type'/>
|
||||
<arg name='facet' type='xmlSchemaFacetPtr' info='the facet to check'/>
|
||||
<arg name='value' type='const xmlChar *' info='the lexical repr of the value to validate'/>
|
||||
<arg name='val' type='xmlSchemaValPtr' info='the precomputed value'/>
|
||||
</function>
|
||||
<function name='xmlSchemaValidatePredefinedType' file='xmlschemastypes'>
|
||||
<info>Check that a value conforms to the lexical space of the predefined type. if true a value is computed and returned in @val.</info>
|
||||
<return type='int' info='0 if this validates, a positive error code number otherwise and -1 in case of internal or API error.'/>
|
||||
<arg name='type' type='xmlSchemaTypePtr' info='the predefined type'/>
|
||||
<arg name='value' type='const xmlChar *' info='the value to check'/>
|
||||
<arg name='val' type='xmlSchemaValPtr *' info='the return computed value'/>
|
||||
</function>
|
||||
<function name='xmlSchemaValidateStream' file='xmlschemas'>
|
||||
<info>Validate a document tree in memory.</info>
|
||||
<return type='int' info='0 if the document is schemas valid, a positive error code number otherwise and -1 in case of internal or API error.'/>
|
||||
<arg name='ctxt' type='xmlSchemaValidCtxtPtr' info='a schema validation context'/>
|
||||
<arg name='input' type='xmlParserInputBufferPtr' info='the input to use for reading the data'/>
|
||||
<arg name='enc' type='xmlCharEncoding' info='an optional encoding information'/>
|
||||
<arg name='sax' type='xmlSAXHandlerPtr' info='a SAX handler for the resulting events'/>
|
||||
<arg name='user_data' type='void *' info='the context to provide to the SAX handler.'/>
|
||||
</function>
|
||||
<functype name='xmlSchemaValidityErrorFunc' file='xmlschemas'>
|
||||
<info></info>
|
||||
<return type='void'/>
|
||||
<arg name='ctx' type='void *' info=''/>
|
||||
<arg name='msg' type='const char *' info=''/>
|
||||
<arg name='...' type='...' info=''/>
|
||||
</functype>
|
||||
<functype name='xmlSchemaValidityWarningFunc' file='xmlschemas'>
|
||||
<info></info>
|
||||
<return type='void'/>
|
||||
<arg name='ctx' type='void *' info=''/>
|
||||
<arg name='msg' type='const char *' info=''/>
|
||||
<arg name='...' type='...' info=''/>
|
||||
</functype>
|
||||
<function name='xmlSearchNs' file='tree'>
|
||||
<info>Search a Ns registered under a given name space for a document. recurse on the parents until it finds the defined namespace or return NULL otherwise. @nameSpace can be NULL, this is a search for the default namespace. We don't allow to cross entities boundaries. If you don't declare the namespace within those you will be in troubles !!! A warning is generated to cover this case.</info>
|
||||
<return type='xmlNsPtr' info='the namespace pointer or NULL.'/>
|
||||
|
@ -166,7 +166,6 @@ xmlSchemaNewSchema(xmlSchemaParserCtxtPtr ctxt)
|
||||
|
||||
/**
|
||||
* xmlSchemaNewFacet:
|
||||
* @ctxt: a schema validation context (optional)
|
||||
*
|
||||
* Allocate a new Facet structure.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user