mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-13 23:35:30 +00:00
Update web site.
This commit is contained in:
parent
972b44eb29
commit
66a4800d57
@ -1,3 +1,4 @@
|
||||
f706377fba630b39fa02fd63642b17e5 2.5 mxml/2.5/mxml-2.5.tar.gz
|
||||
8dfa3d25d9a0146bd24324f5111d9db0 2.4 mxml/2.4/mxml-2.4.tar.gz
|
||||
9b343cd7c7c139a24a382afc31a9a4e6 2.3 mxml/2.3/mxml-2.3-1.i386.rpm
|
||||
2b0d69c35ada70ba9982f15cb05d006b 2.3 mxml/2.3/mxml-2.3.tar.gz
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
@ -34,8 +34,8 @@ hspace="10" src="3.gif" width="100"></A>More Mini-XML Programming
|
||||
<P>This chapter shows additional ways to use the Mini-XML library in
|
||||
your programs.</P>
|
||||
<H2><A name="LOAD_CALLBACKS">Load Callbacks</A></H2>
|
||||
<P><A href="#LOAD_XML">Chapter 2</A> introduced the <A href="refapp.html#mxmlLoadFile">
|
||||
<TT>mxmlLoadFile()</TT></A> and <A href="refapp.html#mxmlLoadString"><TT>
|
||||
<P><A href="#LOAD_XML">Chapter 2</A> introduced the <A href="reference.html#mxmlLoadFile">
|
||||
<TT>mxmlLoadFile()</TT></A> and <A href="reference.html#mxmlLoadString"><TT>
|
||||
mxmlLoadString()</TT></A> functions. The last argument to these
|
||||
functions is a callback function which is used to determine the value
|
||||
type of each data node in an XML document.</P>
|
||||
@ -99,9 +99,9 @@ MXML_REAL</TT>, or <TT>MXML_TEXT</TT>. The function is called<I> after</I>
|
||||
fclose(fp);
|
||||
</PRE>
|
||||
<H2><A name="SAVE_CALLBACKS">Save Callbacks</A></H2>
|
||||
<P><A href="#LOAD_XML">Chapter 2</A> also introduced the <A href="refapp.html#mxmlSaveFile">
|
||||
<TT>mxmlSaveFile()</TT></A>, <A href="refapp.html#mxmlSaveString"><TT>
|
||||
mxmlSaveString()</TT></A>, and <A href="refapp.html#mxmlSaveAllocString">
|
||||
<P><A href="#LOAD_XML">Chapter 2</A> also introduced the <A href="reference.html#mxmlSaveFile">
|
||||
<TT>mxmlSaveFile()</TT></A>, <A href="reference.html#mxmlSaveString"><TT>
|
||||
mxmlSaveString()</TT></A>, and <A href="reference.html#mxmlSaveAllocString">
|
||||
<TT>mxmlSaveAllocString()</TT></A> functions. The last argument to these
|
||||
functions is a callback function which is used to automatically insert
|
||||
whitespace in an XML document.</P>
|
||||
@ -327,7 +327,7 @@ MXML_WS_BEFORE_CLOSE</TT>, or <TT>MXML_WS_AFTER_CLOSE</TT>. The callback
|
||||
return (strdup(data));
|
||||
}
|
||||
</PRE>
|
||||
<P>You register the callback functions using the <A href="refapp.html#mxmlSetCustomHandlers">
|
||||
<P>You register the callback functions using the <A href="reference.html#mxmlSetCustomHandlers">
|
||||
<TT>mxmlSetCustomHandlers()</TT></A> function:</P>
|
||||
<PRE>
|
||||
mxmlSetCustomHandlers(<B>load_custom</B>,
|
||||
@ -340,12 +340,12 @@ MXML_WS_BEFORE_CLOSE</TT>, or <TT>MXML_WS_AFTER_CLOSE</TT>. The callback
|
||||
new XML data nodes. Many applications, however, need to manipulate or
|
||||
change the nodes during their operation, so Mini-XML provides functions
|
||||
to change node values safely and without leaking memory.</P>
|
||||
<P>Existing nodes can be changed using the <A href="refapp.html#mxmlSetElement">
|
||||
<TT>mxmlSetElement()</TT></A>, <A href="refapp.html#mxmlSetInteger"><TT>
|
||||
mxmlSetInteger()</TT></A>, <A href="refapp.html#mxmlSetOpaque"><TT>
|
||||
mxmlSetOpaque()</TT></A>, <A href="refapp.html#mxmlSetReal"><TT>
|
||||
mxmlSetReal()</TT></A>, <A href="refapp.html#mxmlSetText"><TT>
|
||||
mxmlSetText()</TT></A>, and <A href="refapp.html#mxmlSetTextf"><TT>
|
||||
<P>Existing nodes can be changed using the <A href="reference.html#mxmlSetElement">
|
||||
<TT>mxmlSetElement()</TT></A>, <A href="reference.html#mxmlSetInteger"><TT>
|
||||
mxmlSetInteger()</TT></A>, <A href="reference.html#mxmlSetOpaque"><TT>
|
||||
mxmlSetOpaque()</TT></A>, <A href="reference.html#mxmlSetReal"><TT>
|
||||
mxmlSetReal()</TT></A>, <A href="reference.html#mxmlSetText"><TT>
|
||||
mxmlSetText()</TT></A>, and <A href="reference.html#mxmlSetTextf"><TT>
|
||||
mxmlSetTextf()</TT></A> functions. For example, use the following
|
||||
function call to change a text node to contain the text "new" with
|
||||
leading whitespace:</P>
|
||||
@ -355,8 +355,8 @@ mxmlSetTextf()</TT></A> functions. For example, use the following
|
||||
mxmlSetText(node, 1, "new");
|
||||
</PRE>
|
||||
<H2><A NAME="4_5">Formatted Text</A></H2>
|
||||
<P>The <A href="refapp.html#mxmlNewTextf"><TT>mxmlNewTextf()</TT></A>
|
||||
and <A href="refapp.html#mxmlSetTextf"><TT>mxmlSetTextf()</TT></A>
|
||||
<P>The <A href="reference.html#mxmlNewTextf"><TT>mxmlNewTextf()</TT></A>
|
||||
and <A href="reference.html#mxmlSetTextf"><TT>mxmlSetTextf()</TT></A>
|
||||
functions create and change text nodes, respectively, using <TT>printf</TT>
|
||||
-style format strings and arguments. For example, use the following
|
||||
function call to create a new text node containing a constructed
|
||||
@ -369,7 +369,7 @@ mxmlSetTextf()</TT></A> functions. For example, use the following
|
||||
</PRE>
|
||||
<H2><A NAME="4_6">Indexing</A></H2>
|
||||
<P>Mini-XML provides functions for managing indices of nodes. The
|
||||
current implementation provides the same functionality as <A href="refapp.html#mxmlFindElement">
|
||||
current implementation provides the same functionality as <A href="reference.html#mxmlFindElement">
|
||||
<TT>mxmlFindElement()</TT></A>. The advantage of using an index is that
|
||||
searching and enumeration of elements is significantly faster. The only
|
||||
disadvantage is that each index is a static snapshot of the XML
|
||||
@ -377,8 +377,8 @@ mxmlSetTextf()</TT></A> functions. For example, use the following
|
||||
more often than it is searched. The overhead of creating an index is
|
||||
approximately equal to walking the XML document tree. Nodes in the
|
||||
index are sorted by element name and attribute value.</P>
|
||||
<P>Indices are stored in <A href="refapp.html#mxml_index_t"><TT>
|
||||
mxml_index_t</TT></A> structures. The <A href="refapp.html#mxmlIndexNew">
|
||||
<P>Indices are stored in <A href="reference.html#mxml_index_t"><TT>
|
||||
mxml_index_t</TT></A> structures. The <A href="reference.html#mxmlIndexNew">
|
||||
<TT>mxmlIndexNew()</TT></A> function creates a new index:</P>
|
||||
<PRE>
|
||||
mxml_node_t *tree;
|
||||
@ -393,17 +393,17 @@ mxml_index_t</TT></A> structures. The <A href="refapp.html#mxmlIndexNew">
|
||||
indexes all element nodes alphabetically.</P>
|
||||
<P>The third argument contains the attribute to index; passing <TT>NULL</TT>
|
||||
causes only the element name to be indexed.</P>
|
||||
<P>Once the index is created, the <A href="refapp.html#mxmlIndexEnum"><TT>
|
||||
mxmlIndexEnum()</TT></A>, <A href="refapp.html#mxmlIndexFind"><TT>
|
||||
mxmlIndexFind()</TT></A>, and <A href="refapp.html#mxmlIndexReset"><TT>
|
||||
<P>Once the index is created, the <A href="reference.html#mxmlIndexEnum">
|
||||
<TT>mxmlIndexEnum()</TT></A>, <A href="reference.html#mxmlIndexFind"><TT>
|
||||
mxmlIndexFind()</TT></A>, and <A href="reference.html#mxmlIndexReset"><TT>
|
||||
mxmlIndexReset()</TT></A> functions are used to access the nodes in the
|
||||
index. The <A href="refapp.html#mxmlIndexReset"><TT>mxmlIndexReset()</TT>
|
||||
index. The <A href="reference.html#mxmlIndexReset"><TT>mxmlIndexReset()</TT>
|
||||
</A> function resets the "current" node pointer in the index, allowing
|
||||
you to do new searches and enumerations on the same index. Typically
|
||||
you will call this function prior to your calls to <A href="refapp.html#mxmlIndexEnum">
|
||||
<TT>mxmlIndexEnum()</TT></A> and <A href="refapp.html#mxmlIndexFind"><TT>
|
||||
you will call this function prior to your calls to <A href="reference.html#mxmlIndexEnum">
|
||||
<TT>mxmlIndexEnum()</TT></A> and <A href="reference.html#mxmlIndexFind"><TT>
|
||||
mxmlIndexFind()</TT></A>.</P>
|
||||
<P>The <A href="refapp.html#mxmlIndexEnum"><TT>mxmlIndexEnum()</TT></A>
|
||||
<P>The <A href="reference.html#mxmlIndexEnum"><TT>mxmlIndexEnum()</TT></A>
|
||||
function enumerates each of the nodes in the index and can be used in a
|
||||
loop as follows:</P>
|
||||
<PRE>
|
||||
@ -416,7 +416,7 @@ mxmlIndexFind()</TT></A>.</P>
|
||||
// do something with node
|
||||
}
|
||||
</PRE>
|
||||
<P>The <A href="refapp.html#mxmlIndexFind"><TT>mxmlIndexFind()</TT></A>
|
||||
<P>The <A href="reference.html#mxmlIndexFind"><TT>mxmlIndexFind()</TT></A>
|
||||
function locates the next occurrence of the named element and attribute
|
||||
value in the index. It can be used to find all matching elements in an
|
||||
index, as follows:</P>
|
||||
@ -448,8 +448,8 @@ mxmlIndexEnum</TT>.</P>
|
||||
nodes. Aside from allowing you to process XML documents of any size,
|
||||
the Mini-XML implementation also allows you to retain portions of the
|
||||
document in memory for later processing.</P>
|
||||
<P>The <A href="#mxmlSAXLoad"><TT>mxmlSAXLoadFd</TT></A>, <A href="refapp.html#mxmlSAXLoadFile">
|
||||
<TT>mxmlSAXLoadFile</TT></A>, and <A href="refapp.html#mxmlSAXLoadString">
|
||||
<P>The <A href="#mxmlSAXLoad"><TT>mxmlSAXLoadFd</TT></A>, <A href="reference.html#mxmlSAXLoadFile">
|
||||
<TT>mxmlSAXLoadFile</TT></A>, and <A href="reference.html#mxmlSAXLoadString">
|
||||
<TT>mxmlSAXLoadString</TT></A> functions provide the SAX loading APIs.
|
||||
Each function works like the corresponding <TT>mxmlLoad</TT> function
|
||||
but uses a callback to process each node as it is read.</P>
|
||||
@ -478,7 +478,7 @@ mxmlIndexEnum</TT>.</P>
|
||||
</UL>
|
||||
<P>Elements are<EM> released</EM> after the close element is processed.
|
||||
All other nodes are released after they are processed. The SAX callback
|
||||
can<EM> retain</EM> the node using the <A href="refapp.html#mxmlRetain">
|
||||
can<EM> retain</EM> the node using the <A href="reference.html#mxmlRetain">
|
||||
<TT>mxmlRetain</TT></A> function. For example, the following SAX
|
||||
callback will retain all nodes, effectively simulating a normal
|
||||
in-memory load:</P>
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
@ -67,10 +67,10 @@ hspace="10" src="2.gif" width="100"></A>Getting Started with Mini-XML</H1>
|
||||
</PRE>
|
||||
<H2><A NAME="3_2">Nodes</A></H2>
|
||||
<P>Every piece of information in an XML file (elements, text, numbers)
|
||||
is stored in memory in "nodes". Nodes are defined by the <A href="refapp.html#mxml_node_t">
|
||||
is stored in memory in "nodes". Nodes are defined by the <A href="reference.html#mxml_node_t">
|
||||
<TT>mxml_node_t</TT></A> structure. The <A href="#mxml_type_t"><TT>type</TT>
|
||||
</A> member defines the node type (element, integer, opaque, real, or
|
||||
text) which determines which value you want to look at in the <A href="refapp.html#mxml_value_t">
|
||||
text) which determines which value you want to look at in the <A href="reference.html#mxml_value_t">
|
||||
<TT>value</TT></A> union.</P>
|
||||
|
||||
<!-- NEED 10 -->
|
||||
@ -95,15 +95,16 @@ node->value.opaque</TT></TD></TR>
|
||||
</CENTER>
|
||||
<P>Each node also has a <TT>user_data</TT> member which allows you to
|
||||
associate application-specific data with each node as needed.</P>
|
||||
<P>New nodes are created using the <A href="refapp.html#mxmlNewElement"><TT>
|
||||
mxmlNewElement</TT></A>, <A href="refapp.html#mxmlNewInteger"><TT>
|
||||
mxmlNewInteger</TT></A>, <A href="refapp.html#mxmlNewOpaque"><TT>
|
||||
mxmlNewOpaque</TT></A>, <A href="refapp.html#mxmlNewReal"><TT>
|
||||
mxmlNewReal</TT></A>, <A href="refapp.html#mxmlNewText"><TT>mxmlNewText</TT>
|
||||
</A> <A href="refapp.html#mxmlNewTextf"><TT>mxmlNewTextf</TT></A> <A href="refapp.html#mxmlNewXML">
|
||||
<TT>mxmlNewXML</TT></A> functions. Only elements can have child nodes,
|
||||
and the top node must be an element, usually the <TT><?xml
|
||||
version="1.0"?></TT> node created by <TT>mxmlNewXML()</TT>.</P>
|
||||
<P>New nodes are created using the <A href="reference.html#mxmlNewElement">
|
||||
<TT>mxmlNewElement</TT></A>, <A href="reference.html#mxmlNewInteger"><TT>
|
||||
mxmlNewInteger</TT></A>, <A href="reference.html#mxmlNewOpaque"><TT>
|
||||
mxmlNewOpaque</TT></A>, <A href="reference.html#mxmlNewReal"><TT>
|
||||
mxmlNewReal</TT></A>, <A href="reference.html#mxmlNewText"><TT>
|
||||
mxmlNewText</TT></A> <A href="reference.html#mxmlNewTextf"><TT>
|
||||
mxmlNewTextf</TT></A> <A href="reference.html#mxmlNewXML"><TT>mxmlNewXML</TT>
|
||||
</A> functions. Only elements can have child nodes, and the top node
|
||||
must be an element, usually the <TT><?xml version="1.0"?></TT> node
|
||||
created by <TT>mxmlNewXML()</TT>.</P>
|
||||
<P>Nodes have pointers to the node above (<TT>parent</TT>), below (<TT>
|
||||
child</TT>), left (<TT>prev</TT>), and right (<TT>next</TT>) of the
|
||||
current node. If you have an XML file like the following:</P>
|
||||
@ -138,7 +139,7 @@ child</TT>), left (<TT>prev</TT>), and right (<TT>next</TT>) of the
|
||||
</PRE>
|
||||
<P>where "-" is a pointer to the next node and "|" is a pointer to the
|
||||
first child node.</P>
|
||||
<P>Once you are done with the XML data, use the <A href="refapp.html#mxmlDelete">
|
||||
<P>Once you are done with the XML data, use the <A href="reference.html#mxmlDelete">
|
||||
<TT>mxmlDelete</TT></A> function to recursively free the memory that is
|
||||
used for a particular node or the entire tree:</P>
|
||||
<PRE>
|
||||
@ -182,20 +183,20 @@ mxmlNew</TT> functions. The following code will create the XML document
|
||||
mxmlNewText(node, 0, "val8");
|
||||
</PRE>
|
||||
<P>We start by creating the <TT><?xml version="1.0"?></TT> node common
|
||||
to all XML files using the <A href="refapp.html#mxmlNewXML"><TT>
|
||||
to all XML files using the <A href="reference.html#mxmlNewXML"><TT>
|
||||
mxmlNewXML</TT></A> function:</P>
|
||||
<PRE>
|
||||
xml = mxmlNewXML("1.0");
|
||||
</PRE>
|
||||
<P>We then create the <TT><data></TT> node used for this document using
|
||||
the <A href="refapp.html#mxmlNewElement"><TT>mxmlNewElement</TT></A>
|
||||
the <A href="reference.html#mxmlNewElement"><TT>mxmlNewElement</TT></A>
|
||||
function. The first argument specifies the parent node (<TT>xml</TT>)
|
||||
while the second specifies the element name (<TT>data</TT>):</P>
|
||||
<PRE>
|
||||
data = mxmlNewElement(xml, "data");
|
||||
</PRE>
|
||||
<P>Each <TT><node>...</node></TT> in the file is created using the <TT>
|
||||
mxmlNewElement</TT> and <A href="refapp.html#mxmlNewText"><TT>
|
||||
mxmlNewElement</TT> and <A href="reference.html#mxmlNewText"><TT>
|
||||
mxmlNewText</TT></A> functions. The first argument of <TT>mxmlNewText</TT>
|
||||
specifies the parent node (<TT>node</TT>). The second argument
|
||||
specifies whether whitespace appears before the text - 0 or false in
|
||||
@ -209,7 +210,7 @@ mxmlNewText</TT></A> functions. The first argument of <TT>mxmlNewText</TT>
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<H2><A NAME="3_4">Loading XML</A></H2>
|
||||
<P>You load an XML file using the <A href="refapp.html#mxmlLoadFile"><TT>
|
||||
<P>You load an XML file using the <A href="reference.html#mxmlLoadFile"><TT>
|
||||
mxmlLoadFile</TT></A> function:</P>
|
||||
<PRE>
|
||||
FILE *fp;
|
||||
@ -238,7 +239,7 @@ Chapter 3</A>. The example code uses the <TT>MXML_TEXT_CALLBACK</TT>
|
||||
whitespace-separated text values. Other standard callbacks include <TT>
|
||||
MXML_IGNORE_CALLBACK</TT>, <TT>MXML_INTEGER_CALLBACK</TT>, <TT>
|
||||
MXML_OPAQUE_CALLBACK</TT>, and <TT>MXML_REAL_CALLBACK</TT>.</P>
|
||||
<P>The <A href="refapp.html#mxmlLoadString"><TT>mxmlLoadString</TT></A>
|
||||
<P>The <A href="reference.html#mxmlLoadString"><TT>mxmlLoadString</TT></A>
|
||||
function loads XML node trees from a string:</P>
|
||||
|
||||
<!-- NEED 10 -->
|
||||
@ -257,7 +258,7 @@ mxmlLoadFile()</TT>. The second argument specifies the string or
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<H2><A NAME="3_5">Saving XML</A></H2>
|
||||
<P>You save an XML file using the <A href="refapp.html#mxmlSaveFile"><TT>
|
||||
<P>You save an XML file using the <A href="reference.html#mxmlSaveFile"><TT>
|
||||
mxmlSaveFile</TT></A> function:</P>
|
||||
<PRE>
|
||||
FILE *fp;
|
||||
@ -276,9 +277,9 @@ fopen()</TT> or <TT>popen()</TT>. You can also use <TT>stdout</TT> if
|
||||
file. Whitespace callbacks are covered in detail in <A href="SAVE_CALLBACKS">
|
||||
Chapter 3</A>. The previous example code uses the <TT>MXML_NO_CALLBACK</TT>
|
||||
constant to specify that no special whitespace handling is required.</P>
|
||||
<P>The <A href="refapp.html#mxmlSaveAllocString"><TT>mxmlSaveAllocString</TT>
|
||||
</A>, and <A href="refapp.html#mxmlSaveString"><TT>mxmlSaveString</TT></A>
|
||||
functions save XML node trees to strings:</P>
|
||||
<P>The <A href="reference.html#mxmlSaveAllocString"><TT>
|
||||
mxmlSaveAllocString</TT></A>, and <A href="reference.html#mxmlSaveString">
|
||||
<TT>mxmlSaveString</TT></A> functions save XML node trees to strings:</P>
|
||||
<PRE>
|
||||
char buffer[8192];
|
||||
char *ptr;
|
||||
@ -298,7 +299,7 @@ mxmlSaveFile()</TT>. The <TT>mxmlSaveString</TT> function takes pointer
|
||||
allocated using <TT>malloc()</TT>.</P>
|
||||
<H3><A NAME="3_5_1">Controlling Line Wrapping</A></H3>
|
||||
<P>When saving XML documents, Mini-XML normally wraps output lines at
|
||||
column 75 so that the text is readable in terminal windows. The <A href="refapp.html#mxmlSetWrapMargin">
|
||||
column 75 so that the text is readable in terminal windows. The <A href="reference.html#mxmlSetWrapMargin">
|
||||
<TT>mxmlSetWrapMargin</TT></A> function overrides the default wrap
|
||||
margin:</P>
|
||||
<PRE>
|
||||
@ -311,9 +312,9 @@ mxmlSaveFile()</TT>. The <TT>mxmlSaveString</TT> function takes pointer
|
||||
|
||||
<!-- NEW PAGE-->
|
||||
<H2><A NAME="3_6">Finding and Iterating Nodes</A></H2>
|
||||
<P>The <A href="refapp.html#mxmlWalkPrev"><TT>mxmlWalkPrev</TT></A> and <A
|
||||
href="refapp.html#mxmlWalkNext"><TT>mxmlWalkNext</TT></A>functions can
|
||||
be used to iterate through the XML node tree:</P>
|
||||
<P>The <A href="reference.html#mxmlWalkPrev"><TT>mxmlWalkPrev</TT></A>
|
||||
and <A href="reference.html#mxmlWalkNext"><TT>mxmlWalkNext</TT></A>
|
||||
functions can be used to iterate through the XML node tree:</P>
|
||||
<PRE>
|
||||
mxml_node_t *node;
|
||||
|
||||
@ -323,7 +324,7 @@ href="refapp.html#mxmlWalkNext"><TT>mxmlWalkNext</TT></A>functions can
|
||||
node = mxmlWalkNext(current, tree,
|
||||
MXML_DESCEND);
|
||||
</PRE>
|
||||
<P>In addition, you can find a named element/node using the <A href="refapp.html#mxmlFindElement">
|
||||
<P>In addition, you can find a named element/node using the <A href="reference.html#mxmlFindElement">
|
||||
<TT>mxmlFindElement</TT></A> function:</P>
|
||||
<PRE>
|
||||
mxml_node_t *node;
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
@ -78,109 +78,109 @@ A { text-decoration: none }
|
||||
<BR>
|
||||
<BR><B><A HREF="relnotes.html#RELNOTES">Release Notes</A></B>
|
||||
<UL></UL>
|
||||
<B><A HREF="refapp.html#REFERENCE">Library Reference</A></B>
|
||||
<B><A HREF="reference.html#REFERENCE">Library Reference</A></B>
|
||||
<UL>
|
||||
<LI><A HREF="refapp.html#8_1">Contents</A></LI>
|
||||
<LI><A HREF="refapp.html#ENUMERATIONS">Enumerations</A>
|
||||
<LI><A HREF="reference.html#8_1">Contents</A></LI>
|
||||
<LI><A HREF="reference.html#FUNCTIONS">Functions</A>
|
||||
<UL>
|
||||
<LI><A HREF="refapp.html#mxml_sax_event_e">mxml_sax_event_e</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_type_e">mxml_type_e</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlAdd">mxmlAdd</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlDelete">mxmlDelete</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_3">mxmlElementDeleteAttr</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlElementGetAttr">mxmlElementGetAttr</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlElementSetAttr">mxmlElementSetAttr</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_6">mxmlElementSetAttrf</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlEntityAddCallback">mxmlEntityAddCallback</A>
|
||||
</LI>
|
||||
<LI><A HREF="reference.html#mxmlEntityGetName">mxmlEntityGetName</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlEntityGetValue">mxmlEntityGetValue</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlEntityRemoveCallback">
|
||||
mxmlEntityRemoveCallback</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlFindElement">mxmlFindElement</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlIndexDelete">mxmlIndexDelete</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlIndexEnum">mxmlIndexEnum</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlIndexFind">mxmlIndexFind</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlIndexNew">mxmlIndexNew</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlIndexReset">mxmlIndexReset</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlLoadFd">mxmlLoadFd</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlLoadFile">mxmlLoadFile</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlLoadString">mxmlLoadString</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_20">mxmlNewCDATA</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_21">mxmlNewCustom</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlNewElement">mxmlNewElement</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlNewInteger">mxmlNewInteger</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlNewOpaque">mxmlNewOpaque</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlNewReal">mxmlNewReal</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlNewText">mxmlNewText</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlNewTextf">mxmlNewTextf</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_28">mxmlNewXML</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_29">mxmlRelease</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlRemove">mxmlRemove</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_31">mxmlRetain</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_32">mxmlSAXLoadFd</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_33">mxmlSAXLoadFile</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_34">mxmlSAXLoadString</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSaveAllocString">mxmlSaveAllocString</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSaveFd">mxmlSaveFd</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSaveFile">mxmlSaveFile</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSaveString">mxmlSaveString</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_39">mxmlSetCDATA</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_40">mxmlSetCustom</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSetCustomHandlers">mxmlSetCustomHandlers</A>
|
||||
</LI>
|
||||
<LI><A HREF="reference.html#mxmlSetElement">mxmlSetElement</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSetErrorCallback">mxmlSetErrorCallback</A>
|
||||
</LI>
|
||||
<LI><A HREF="reference.html#mxmlSetInteger">mxmlSetInteger</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSetOpaque">mxmlSetOpaque</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSetReal">mxmlSetReal</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSetText">mxmlSetText</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlSetTextf">mxmlSetTextf</A></LI>
|
||||
<LI><A HREF="reference.html#8_2_49">mxmlSetWrapMargin</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlWalkNext">mxmlWalkNext</A></LI>
|
||||
<LI><A HREF="reference.html#mxmlWalkPrev">mxmlWalkPrev</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#FUNCTIONS">Functions</A>
|
||||
<LI><A HREF="reference.html#TYPES">Data Types</A>
|
||||
<UL>
|
||||
<LI><A HREF="refapp.html#mxmlAdd">mxmlAdd()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlDelete">mxmlDelete()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_3">mxmlElementDeleteAttr()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlElementGetAttr">mxmlElementGetAttr()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlElementSetAttr">mxmlElementSetAttr()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_6">mxmlElementSetAttrf()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlEntityAddCallback">mxmlEntityAddCallback()</A>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#mxmlEntityGetName">mxmlEntityGetName()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlEntityGetValue">mxmlEntityGetValue()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlEntityRemoveCallback">
|
||||
mxmlEntityRemoveCallback()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlFindElement">mxmlFindElement()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlIndexDelete">mxmlIndexDelete()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlIndexEnum">mxmlIndexEnum()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlIndexFind">mxmlIndexFind()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlIndexNew">mxmlIndexNew()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlIndexReset">mxmlIndexReset()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlLoadFd">mxmlLoadFd()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlLoadFile">mxmlLoadFile()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlLoadString">mxmlLoadString()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_20">mxmlNewCDATA()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_21">mxmlNewCustom()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlNewElement">mxmlNewElement()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlNewInteger">mxmlNewInteger()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlNewOpaque">mxmlNewOpaque()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlNewReal">mxmlNewReal()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlNewText">mxmlNewText()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlNewTextf">mxmlNewTextf()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_28">mxmlNewXML()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_29">mxmlRelease()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlRemove">mxmlRemove()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_31">mxmlRetain()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_32">mxmlSAXLoadFd()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_33">mxmlSAXLoadFile()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_34">mxmlSAXLoadString()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSaveAllocString">mxmlSaveAllocString()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSaveFd">mxmlSaveFd()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSaveFile">mxmlSaveFile()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSaveString">mxmlSaveString()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_39">mxmlSetCDATA()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_40">mxmlSetCustom()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetCustomHandlers">mxmlSetCustomHandlers()</A>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetElement">mxmlSetElement()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetErrorCallback">mxmlSetErrorCallback()</A>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetInteger">mxmlSetInteger()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetOpaque">mxmlSetOpaque()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetReal">mxmlSetReal()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetText">mxmlSetText()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlSetTextf">mxmlSetTextf()</A></LI>
|
||||
<LI><A HREF="refapp.html#8_3_49">mxmlSetWrapMargin()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlWalkNext">mxmlWalkNext()</A></LI>
|
||||
<LI><A HREF="refapp.html#mxmlWalkPrev">mxmlWalkPrev()</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#STRUCTURES">Structures</A>
|
||||
<UL>
|
||||
<LI><A HREF="refapp.html#mxml_attr_s">mxml_attr_s</A></LI>
|
||||
<LI><A HREF="refapp.html#8_4_2">mxml_custom_s</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_element_s">mxml_element_s</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_index_s">mxml_index_s</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_node_s">mxml_node_s</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_text_s">mxml_text_s</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#TYPES">Types</A>
|
||||
<UL>
|
||||
<LI><A HREF="refapp.html#mxml_attr_t">mxml_attr_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_custom_destroy_cb_t">
|
||||
<LI><A HREF="reference.html#mxml_attr_t">mxml_attr_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_custom_destroy_cb_t">
|
||||
mxml_custom_destroy_cb_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_custom_load_cb_t">mxml_custom_load_cb_t</A>
|
||||
<LI><A HREF="reference.html#mxml_custom_load_cb_t">mxml_custom_load_cb_t</A>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#mxml_custom_save_cb_t">mxml_custom_save_cb_t</A>
|
||||
<LI><A HREF="reference.html#mxml_custom_save_cb_t">mxml_custom_save_cb_t</A>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#8_5_5">mxml_custom_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_element_t">mxml_element_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_error_cb_t">mxml_error_cb_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_index_t">mxml_index_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_load_cb_t">mxml_load_cb_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_node_t">mxml_node_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_save_cb_t">mxml_save_cb_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_sax_cb_t">mxml_sax_cb_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_sax_event_t">mxml_sax_event_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_text_t">mxml_text_t</A></LI>
|
||||
<LI><A HREF="refapp.html#mxml_value_t">mxml_value_t</A></LI>
|
||||
<LI><A HREF="reference.html#8_3_5">mxml_custom_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_element_t">mxml_element_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_error_cb_t">mxml_error_cb_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_index_t">mxml_index_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_load_cb_t">mxml_load_cb_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_node_t">mxml_node_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_save_cb_t">mxml_save_cb_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_sax_cb_t">mxml_sax_cb_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_sax_event_t">mxml_sax_event_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_text_t">mxml_text_t</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_value_t">mxml_value_t</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
<LI><A HREF="refapp.html#UNIONS">Unions</A>
|
||||
<LI><A HREF="reference.html#STRUCTURES">Structures</A>
|
||||
<UL>
|
||||
<LI><A HREF="refapp.html#mxml_value_u">mxml_value_u</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_attr_s">mxml_attr_s</A></LI>
|
||||
<LI><A HREF="reference.html#8_4_2">mxml_custom_s</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_element_s">mxml_element_s</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_index_s">mxml_index_s</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_node_s">mxml_node_s</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_text_s">mxml_text_s</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
<LI><A HREF="reference.html#UNIONS">Unions</A>
|
||||
<UL>
|
||||
<LI><A HREF="reference.html#mxml_value_u">mxml_value_u</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
<LI><A HREF="reference.html#ENUMERATIONS">Constants</A>
|
||||
<UL>
|
||||
<LI><A HREF="reference.html#mxml_sax_event_e">mxml_sax_event_e</A></LI>
|
||||
<LI><A HREF="reference.html#mxml_type_e">mxml_type_e</A></LI>
|
||||
</UL>
|
||||
</LI>
|
||||
</UL>
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
@ -28,7 +28,7 @@ A { text-decoration: none }
|
||||
<HR NOSHADE>
|
||||
<H1 align="right"><A name="INTRO"><IMG align="right" alt="0" height="100"
|
||||
hspace="10" src="0.gif" width="100"></A>Introduction</H1>
|
||||
<P>This programmers manual describes Mini-XML version 2.4, a small XML
|
||||
<P>This programmers manual describes Mini-XML version 2.5, a small XML
|
||||
parsing library that you can use to read and write XML data files in
|
||||
your C and C++ applications.</P>
|
||||
<P>Mini-XML was initially developed for the <A href="http://gutenprint.sf.net/">
|
||||
@ -55,7 +55,6 @@ libxml2</TT> library with something substantially smaller and
|
||||
<UL>
|
||||
<LI><A href="http://www.cups.org/">Common UNIX Printing System</A></LI>
|
||||
<LI><A href="http://www.cups.org/ddk/">CUPS Driver Development Kit</A></LI>
|
||||
<LI><A href="http://www.easysw.com/printpro/">ESP Print Pro</A></LI>
|
||||
<LI><A href="http://zynaddsubfx.sourceforge.net">ZynAddSubFX</A></LI>
|
||||
</UL>
|
||||
<P>Please email me (mxml @ easysw . com) if you would like your project
|
||||
@ -79,8 +78,8 @@ libxml2</TT> library with something substantially smaller and
|
||||
provides the terms and conditions for using and distributing Mini-XML.</LI>
|
||||
<LI>Appendix B, "<A href="relnotes.html#RELNOTES">Release Notes</A>",
|
||||
lists the changes in each release of Mini-XML.</LI>
|
||||
<LI>Appendix C, "<A href="refapp.html#REFERENCE">Library Reference</A>",
|
||||
contains a complete reference for Mini-XML, generated by <TT>mxmldoc</TT>
|
||||
<LI>Appendix C, "<A href="reference.html#REFERENCE">Library Reference</A>
|
||||
", contains a complete reference for Mini-XML, generated by <TT>mxmldoc</TT>
|
||||
.</LI>
|
||||
<LI>Appendix D, "<A href="schema.html#SCHEMA">XML Schema</A>", shows the
|
||||
XML schema used for the XML files produced by <TT>mxmldoc</TT>.</LI>
|
||||
@ -165,7 +164,7 @@ libxml2</TT> library with something substantially smaller and
|
||||
|
||||
<!-- NEED 6 -->
|
||||
<H2><A NAME="1_5">Legal Stuff</A></H2>
|
||||
<P>The Mini-XML library is copyright 2003-2007 by Michael Sweet.</P>
|
||||
<P>The Mini-XML library is copyright 2003-2008 by Michael Sweet.</P>
|
||||
<P>This library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the <A href="license.html#LICENSE">GNU Library
|
||||
General Public License</A> as published by the Free Software
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
|
@ -1,9 +1,9 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
|
File diff suppressed because it is too large
Load Diff
1561
www/docfiles/reference.html
Normal file
1561
www/docfiles/reference.html
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,14 +1,14 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
<LINK REL="Prev" HREF="license.html">
|
||||
<LINK REL="Next" HREF="refapp.html">
|
||||
<LINK REL="Next" HREF="reference.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: sans-serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -26,11 +26,28 @@ A { text-decoration: none }
|
||||
<BODY>
|
||||
<A HREF="index.html">Contents</A>
|
||||
<A HREF="license.html">Previous</A>
|
||||
<A HREF="refapp.html">Next</A>
|
||||
<A HREF="reference.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H1 align="right"><A name="RELNOTES"><IMG align="right" alt="B" height="100"
|
||||
hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<H2><A NAME="7_1">Changes in Mini-XML 2.4</A></H2>
|
||||
<H2><A NAME="7_1">Changes in Mini-XML 2.5</A></H2>
|
||||
<UL>
|
||||
<LI>The mxmldoc program now makes greater use of CSS and supports a
|
||||
--css option to embed an alternate stylesheet.</LI>
|
||||
<LI>The mxmldoc program now supports --header and --footer options to
|
||||
insert documentation content before and after the generated content.</LI>
|
||||
<LI>The mxmldoc program now supports a --framed option to generate
|
||||
framed HTML output.</LI>
|
||||
<LI>The mxmldoc program now creates a table of contents including any
|
||||
headings in the --intro file when generating HTML output.</LI>
|
||||
<LI>The man pages and man page output from mxmldoc did not use "\-" for
|
||||
dashes (STR #68)</LI>
|
||||
<LI>The debug version of the Mini-XML DLL could not be built (STR #65)</LI>
|
||||
<LI>Processing instructions and directives did not work when not at the
|
||||
top level of a document (STR #67)</LI>
|
||||
<LI>Spaces around the "=" in attributes were not supported (STR #67)</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_2">Changes in Mini-XML 2.4</A></H2>
|
||||
<UL>
|
||||
<LI>Fixed shared library build problems on HP-UX and Mac OS X.</LI>
|
||||
<LI>The mxmldoc program did not output argument descriptions for
|
||||
@ -50,7 +67,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>mxmlWalkNext() and mxmlWalkPrev() did not work correctly when called
|
||||
with a node with no children as the top node (STR #53)</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_2">Changes in Mini-XML 2.3</A></H2>
|
||||
<H2><A NAME="7_3">Changes in Mini-XML 2.3</A></H2>
|
||||
<UL>
|
||||
<LI>Added two exceptions to the LGPL to support static linking of
|
||||
applications against Mini-XML</LI>
|
||||
@ -88,12 +105,12 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>mxmlLoad*() did not treat custom data as opaque, so whitespace
|
||||
characters would be lost</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_3">Changes in Mini-XML 2.2.2</A></H2>
|
||||
<H2><A NAME="7_4">Changes in Mini-XML 2.2.2</A></H2>
|
||||
<UL>
|
||||
<LI>mxmlLoad*() did not treat custom data as opaque, so whitespace
|
||||
characters would be lost.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_4">Changes in Mini-XML 2.2.1</A></H2>
|
||||
<H2><A NAME="7_5">Changes in Mini-XML 2.2.1</A></H2>
|
||||
<UL>
|
||||
<LI>mxmlLoadFd(), mxmlLoadFile(), and mxmlLoadString() now correctly
|
||||
return NULL on error (STR #21)</LI>
|
||||
@ -104,7 +121,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
proper permissions on UNIX/Linux/OSX.</LI>
|
||||
<LI>Fixed a MingW/Cygwin compilation problem (STR #18)</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_5">Changes in Mini-XML 2.2</A></H2>
|
||||
<H2><A NAME="7_6">Changes in Mini-XML 2.2</A></H2>
|
||||
<UL>
|
||||
<LI>Added shared library support (STR #17)</LI>
|
||||
<LI>mxmlLoad*() now returns an error when an XML stream contains illegal
|
||||
@ -118,7 +135,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>Added checking for invalid comment termination ("--->" is not
|
||||
allowed)</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_6">Changes in Mini-XML 2.1</A></H2>
|
||||
<H2><A NAME="7_7">Changes in Mini-XML 2.1</A></H2>
|
||||
<UL>
|
||||
<LI>Added support for custom data nodes (STR #6)</LI>
|
||||
<LI>Now treat UTF-8 sequences which are longer than necessary as an
|
||||
@ -129,7 +146,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>Added mxmlLoadFd() and mxmlSaveFd() functions.</LI>
|
||||
<LI>Fixed multi-word UTF-16 handling.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_7">Changes in Mini-XML 2.0</A></H2>
|
||||
<H2><A NAME="7_8">Changes in Mini-XML 2.0</A></H2>
|
||||
<UL>
|
||||
<LI>New programmers manual.</LI>
|
||||
<LI>Added Visual C++ project files for Microsoft Windows users.</LI>
|
||||
@ -162,7 +179,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
destination path and install path. This caused problems when building
|
||||
and installing with MingW.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_8">Changes in Mini-XML 1.3</A></H2>
|
||||
<H2><A NAME="7_9">Changes in Mini-XML 1.3</A></H2>
|
||||
<UL>
|
||||
<LI>Fixes for mxmldoc.</LI>
|
||||
<LI>Added support for reading standard HTML entity names.</LI>
|
||||
@ -178,7 +195,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>The load and save functions now properly handle quoted element and
|
||||
attribute name strings properly, e.g. for !DOCTYPE declarations.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_9">Changes in Mini-XML 1.2</A></H2>
|
||||
<H2><A NAME="7_10">Changes in Mini-XML 1.2</A></H2>
|
||||
<UL>
|
||||
<LI>Added new "set" methods to set the value of a node.</LI>
|
||||
<LI>Added new formatted text methods mxmlNewTextf() and mxmlSetTextf()
|
||||
@ -191,13 +208,13 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>Added --with/without-snprintf configure option to control the
|
||||
snprintf() and vsnprintf() function checks.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_10">Changes in Mini-XML 1.1.2</A></H2>
|
||||
<H2><A NAME="7_11">Changes in Mini-XML 1.1.2</A></H2>
|
||||
<UL>
|
||||
<LI>The mxml(3) man page wasn't updated for the string functions.</LI>
|
||||
<LI>mxmlSaveString() returned the wrong number of characters.</LI>
|
||||
<LI>mxml_add_char() updated the buffer pointer in the wrong place.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_11">Changes in Mini-XML 1.1.1</A></H2>
|
||||
<H2><A NAME="7_12">Changes in Mini-XML 1.1.1</A></H2>
|
||||
<UL>
|
||||
<LI>The private mxml_add_ch() function did not update the
|
||||
start-of-buffer pointer which could cause a crash when using
|
||||
@ -208,7 +225,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>Added a mxmlSaveAllocString() convenience function for saving an XML
|
||||
node tree to an allocated string.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_12">Changes in Mini-XML 1.1</A></H2>
|
||||
<H2><A NAME="7_13">Changes in Mini-XML 1.1</A></H2>
|
||||
<UL>
|
||||
<LI>The mxmlLoadFile() function now uses dynamically allocated string
|
||||
buffers for element names, attribute names, and attribute values.
|
||||
@ -220,7 +237,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>Add emulation of strdup() if the local platform does not provide the
|
||||
function.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_13">Changes in Mini-XML 1.0</A></H2>
|
||||
<H2><A NAME="7_14">Changes in Mini-XML 1.0</A></H2>
|
||||
<UL>
|
||||
<LI>The mxmldoc program now handles function arguments, structures,
|
||||
unions, enumerations, classes, and typedefs properly.</LI>
|
||||
@ -228,7 +245,7 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
code.</LI>
|
||||
<LI>Added man pages and packaging files.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_14">Changes in Mini-XML 0.93</A></H2>
|
||||
<H2><A NAME="7_15">Changes in Mini-XML 0.93</A></H2>
|
||||
<UL>
|
||||
<LI>New mxmldoc example program that is also used to create and update
|
||||
code documentation using XML and produce HTML reference pages.</LI>
|
||||
@ -253,21 +270,21 @@ hspace="10" src="B.gif" width="100"></A>Release Notes</H1>
|
||||
<LI>mxmlSaveFile() now supports a whitespace callback to provide more
|
||||
human-readable XML output under program control.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_15">Changes in Mini-XML 0.92</A></H2>
|
||||
<H2><A NAME="7_16">Changes in Mini-XML 0.92</A></H2>
|
||||
<UL>
|
||||
<LI>mxmlSaveFile() didn't return a value on success.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_16">Changes in Mini-XML 0.91</A></H2>
|
||||
<H2><A NAME="7_17">Changes in Mini-XML 0.91</A></H2>
|
||||
<UL>
|
||||
<LI>mxmlWalkNext() would go into an infinite loop.</LI>
|
||||
</UL>
|
||||
<H2><A NAME="7_17">Changes in Mini-XML 0.9</A></H2>
|
||||
<H2><A NAME="7_18">Changes in Mini-XML 0.9</A></H2>
|
||||
<UL>
|
||||
<LI>Initial public release.</LI>
|
||||
</UL>
|
||||
<HR NOSHADE>
|
||||
<A HREF="index.html">Contents</A>
|
||||
<A HREF="license.html">Previous</A>
|
||||
<A HREF="refapp.html">Next</A>
|
||||
<A HREF="reference.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,13 +1,13 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.4</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.5</TITLE>
|
||||
<META NAME="author" CONTENT="Michael R. Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2007">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2008">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="index.html">
|
||||
<LINK REL="Prev" HREF="refapp.html">
|
||||
<LINK REL="Prev" HREF="reference.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: sans-serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -24,7 +24,7 @@ A { text-decoration: none }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="index.html">Contents</A>
|
||||
<A HREF="refapp.html">Previous</A>
|
||||
<A HREF="reference.html">Previous</A>
|
||||
<HR NOSHADE>
|
||||
<H1 align="right"><A name="SCHEMA"><IMG align="right" alt="D" height="100"
|
||||
hspace="10" src="D.gif" width="100"></A>XML Schema</H1>
|
||||
@ -218,6 +218,6 @@ hspace="10" src="D.gif" width="100"></A>XML Schema</H1>
|
||||
</SMALL></PRE>
|
||||
<HR NOSHADE>
|
||||
<A HREF="index.html">Contents</A>
|
||||
<A HREF="refapp.html">Previous</A>
|
||||
<A HREF="reference.html">Previous</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -202,7 +202,7 @@ multiple files with comments on-line:</p>
|
||||
|
||||
<ul>
|
||||
|
||||
<li><a href='mxml.html'>HTML in one file (170k)</a></li>
|
||||
<li><a href='mxml.html'>HTML in one file (169k)</a></li>
|
||||
|
||||
<li><a href='documentation.php/index.html'>HTML in
|
||||
separate files with Comments</a>
|
||||
@ -233,7 +233,7 @@ multiple files with comments on-line:</p>
|
||||
href='documentation.php/relnotes.html'>Release
|
||||
Notes</a></li>
|
||||
|
||||
<li><a href='documentation.php/refapp.html'>Library
|
||||
<li><a href='documentation.php/reference.html'>Library
|
||||
Reference</a></li>
|
||||
|
||||
</ul></li>
|
||||
|
3462
www/mxml.html
3462
www/mxml.html
File diff suppressed because it is too large
Load Diff
@ -148,7 +148,8 @@ html_header($title = "", // I - Additional document title
|
||||
$classes[0] = "sel";
|
||||
else if (strpos($PHP_SELF, "/str.php") !== FALSE)
|
||||
$classes[2] = "sel";
|
||||
else if (strpos($PHP_SELF, "/documentation.php") !== FALSE)
|
||||
else if (strpos($PHP_SELF, "/documentation.php") !== FALSE ||
|
||||
strpos($PHP_SELF, "/account.php") !== FALSE)
|
||||
$classes[3] = "sel";
|
||||
else if (strpos($PHP_SELF, "/software.php") !== FALSE)
|
||||
$classes[4] = "sel";
|
||||
|
@ -49,8 +49,9 @@ $subsystems = array(
|
||||
|
||||
$versions = array(
|
||||
"Trunk",
|
||||
"+2.5",
|
||||
"+2.4.1",
|
||||
"+2.6",
|
||||
"+2.5.1",
|
||||
"2.5",
|
||||
"2.4",
|
||||
"2.3",
|
||||
"2.2.2",
|
||||
|
@ -2,6 +2,7 @@ BODY {
|
||||
background: #ffffff;
|
||||
color: #000000;
|
||||
font-family: sans-serif;
|
||||
margin: 15px;
|
||||
}
|
||||
|
||||
P, TD, TH {
|
||||
|
Loading…
Reference in New Issue
Block a user