mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-08 13:39:58 +00:00
Prep for 2.1.
This commit is contained in:
parent
40adb027dd
commit
61ba926ecc
11
ANNOUNCEMENT
11
ANNOUNCEMENT
@ -1,11 +1,6 @@
|
||||
Mini-XML 2.0 is now available for download from:
|
||||
Mini-XML 2.1 is now available for download from:
|
||||
|
||||
http://www.easysw.com/~mike/mxml/software.php
|
||||
|
||||
Mini-XML 2.0 adds a new programmers manual, support for reading
|
||||
UTF-16 encoded files and strings (all output is still encoded
|
||||
using UTF-8), a new indexing API to support fast searches of
|
||||
large XML databases, new character entity and whitespace
|
||||
callbacks, and several improvements and bug fixes for the
|
||||
mxmldoc utility. The new release also fixes some makefile
|
||||
problems.
|
||||
Mini-XML 2.1 adds support for custom data types and fixes a
|
||||
number of small bugs.
|
||||
|
@ -1,5 +1,5 @@
|
||||
dnl
|
||||
dnl "$Id: configure.in,v 1.12 2004/06/21 01:39:20 mike Exp $"
|
||||
dnl "$Id: configure.in,v 1.13 2004/11/13 18:26:32 mike Exp $"
|
||||
dnl
|
||||
dnl Configuration script for Mini-XML, a small XML-like file parsing library.
|
||||
dnl
|
||||
@ -23,7 +23,7 @@ dnl Set the name of the config header file...
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
|
||||
dnl Version number...
|
||||
VERSION=2.0
|
||||
VERSION=2.1
|
||||
AC_SUBST(VERSION)
|
||||
AC_DEFINE_UNQUOTED(MXML_VERSION, "Mini-XML v$VERSION")
|
||||
|
||||
@ -188,5 +188,5 @@ dnl Output the makefile, etc...
|
||||
AC_OUTPUT(Makefile mxml.list mxml.pc)
|
||||
|
||||
dnl
|
||||
dnl End of "$Id: configure.in,v 1.12 2004/06/21 01:39:20 mike Exp $".
|
||||
dnl End of "$Id: configure.in,v 1.13 2004/11/13 18:26:32 mike Exp $".
|
||||
dnl
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: mxml.spec,v 1.13 2004/06/21 01:39:20 mike Exp $"
|
||||
# "$Id: mxml.spec,v 1.14 2004/11/13 18:26:32 mike Exp $"
|
||||
#
|
||||
# RPM "spec" file for Mini-XML, a small XML-like file parsing library.
|
||||
#
|
||||
@ -18,7 +18,7 @@
|
||||
|
||||
Summary: Miniature XML development library
|
||||
Name: mxml
|
||||
Version: 2.0
|
||||
Version: 2.1
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Development/Libraries
|
||||
@ -95,5 +95,5 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/share/man/man3/*
|
||||
|
||||
#
|
||||
# End of "$Id: mxml.spec,v 1.13 2004/06/21 01:39:20 mike Exp $".
|
||||
# End of "$Id: mxml.spec,v 1.14 2004/11/13 18:26:32 mike Exp $".
|
||||
#
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -30,11 +30,11 @@ PRE { font-family: monospace }
|
||||
<H1 align="right"><A name="LICENSE">A - GNU Library General Public
|
||||
License</A></H1>
|
||||
<P align="center">Version 2, June 1991
|
||||
<BR /> Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
<BR /> 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
<BR /> Everyone is permitted to copy and distribute verbatim copies of
|
||||
<BR> Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
<BR> 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
<BR> Everyone is permitted to copy and distribute verbatim copies of
|
||||
this license document, but changing it is not allowed.
|
||||
<BR /> [This is the first released version of the library GPL. It is
|
||||
<BR> [This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]</P>
|
||||
<P><BIG>Preamble</BIG></P>
|
||||
<P>The licenses for most software are designed to take away your freedom
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -33,22 +33,22 @@ PRE { font-family: monospace }
|
||||
<DL>
|
||||
<DT>Gb</DT>
|
||||
<DD>Gigabytes, or 1073741824 bytes
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
<DT>kb</DT>
|
||||
<DD>Kilobytes, or 1024 bytes
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
<DT>Mb</DT>
|
||||
<DD>Megabytes, or 1048576 bytes
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
<DT>UTF-8, UTF-16</DT>
|
||||
<DD>Unicode Transformation Format, 8-bit or 16-bit
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
<DT>W3C</DT>
|
||||
<DD>World Wide Web Consortium
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
<DT>XML</DT>
|
||||
<DD>Extensible Markup Language
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
</DL>
|
||||
</BLOCKQUOTE><HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="AGNULibraryGeneralPublicLicense.html">
|
||||
<LINK REL="Next" HREF="ChangesinMiniXML20.html">
|
||||
<LINK REL="Next" HREF="ChangesinMiniXML21.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,12 +25,12 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="AGNULibraryGeneralPublicLicense.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML20.html">Next</A>
|
||||
<A HREF="ChangesinMiniXML21.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H1 align="right"><A name="RELNOTES">B - Release Notes</A></H1>
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="AGNULibraryGeneralPublicLicense.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML20.html">Next</A>
|
||||
<A HREF="ChangesinMiniXML21.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML091.html">Previous</A>
|
||||
<A HREF="CLibraryReference.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_11">Changes in Mini-XML 0.9</A></H2>
|
||||
<H2><A NAME="7_12">Changes in Mini-XML 0.9</A></H2>
|
||||
<UL>
|
||||
<LI>Initial public release.</LI>
|
||||
</UL>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML092.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML09.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_10">Changes in Mini-XML 0.91</A></H2>
|
||||
<H2><A NAME="7_11">Changes in Mini-XML 0.91</A></H2>
|
||||
<UL>
|
||||
<LI>mxmlWalkNext() would go into an infinite loop.</LI>
|
||||
</UL>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML093.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML091.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_9">Changes in Mini-XML 0.92</A></H2>
|
||||
<H2><A NAME="7_10">Changes in Mini-XML 0.92</A></H2>
|
||||
<UL>
|
||||
<LI>mxmlSaveFile() didn't return a value on success.</LI>
|
||||
</UL>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML10.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML092.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_8">Changes in Mini-XML 0.93</A></H2>
|
||||
<H2><A NAME="7_9">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>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML11.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML093.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_7">Changes in Mini-XML 1.0</A></H2>
|
||||
<H2><A NAME="7_8">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>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML111.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML10.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_6">Changes in Mini-XML 1.1</A></H2>
|
||||
<H2><A NAME="7_7">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.
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML112.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML11.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_5">Changes in Mini-XML 1.1.1</A></H2>
|
||||
<H2><A NAME="7_6">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
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML12.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML111.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_4">Changes in Mini-XML 1.1.2</A></H2>
|
||||
<H2><A NAME="7_5">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>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML13.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML112.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_3">Changes in Mini-XML 1.2</A></H2>
|
||||
<H2><A NAME="7_4">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()
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangesinMiniXML20.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML12.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_2">Changes in Mini-XML 1.3</A></H2>
|
||||
<H2><A NAME="7_3">Changes in Mini-XML 1.3</A></H2>
|
||||
<UL>
|
||||
<LI>Fixes for mxmldoc.</LI>
|
||||
<LI>Added support for reading standard HTML entity names.</LI>
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="BReleaseNotes.html">
|
||||
<LINK REL="Prev" HREF="ChangesinMiniXML21.html">
|
||||
<LINK REL="Next" HREF="ChangesinMiniXML13.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
@ -24,10 +24,10 @@ PRE { font-family: monospace }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="BReleaseNotes.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML21.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML13.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_1">Changes in Mini-XML 2.0</A></H2>
|
||||
<H2><A NAME="7_2">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>
|
||||
@ -62,7 +62,7 @@ PRE { font-family: monospace }
|
||||
</UL>
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="BReleaseNotes.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML21.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML13.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
46
www/docfiles/ChangesinMiniXML21.html
Normal file
46
www/docfiles/ChangesinMiniXML21.html
Normal file
@ -0,0 +1,46 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="BReleaseNotes.html">
|
||||
<LINK REL="Next" HREF="ChangesinMiniXML20.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="BReleaseNotes.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML20.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="7_1">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
|
||||
error (STR #4)</LI>
|
||||
<LI>Fixed entity number support (STR #8)</LI>
|
||||
<LI>Fixed mxmlLoadString() bug with UTF-8 (STR #7)</LI>
|
||||
<LI>Fixed entity lookup bug (STR #5)</LI>
|
||||
<LI>Added mxmlLoadFd() and mxmlSaveFd() functions.</LI>
|
||||
<LI>Fixed multi-word UTF-16 handling.</LI>
|
||||
</UL>
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="BReleaseNotes.html">Previous</A>
|
||||
<A HREF="ChangesinMiniXML20.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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="SaveCallbacks.html">
|
||||
<LINK REL="Prev" HREF="CustomDataTypes.html">
|
||||
<LINK REL="Next" HREF="FormattedText.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
@ -24,10 +24,10 @@ PRE { font-family: monospace }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="SaveCallbacks.html">Previous</A>
|
||||
<A HREF="CustomDataTypes.html">Previous</A>
|
||||
<A HREF="FormattedText.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="4_3">Changing Node Values</A></H2>
|
||||
<H2><A NAME="4_4">Changing Node Values</A></H2>
|
||||
<P>All of the examples so far have concentrated on creating and loading
|
||||
new XML data nodes. Many applications, however, need to manipulate or
|
||||
change the nodes during their operation, so Mini-XML provides functions
|
||||
@ -47,7 +47,7 @@ mxmlSetText()</TT></A> functions. For example, use the following
|
||||
</PRE>
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="SaveCallbacks.html">Previous</A>
|
||||
<A HREF="CustomDataTypes.html">Previous</A>
|
||||
<A HREF="FormattedText.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
167
www/docfiles/CustomDataTypes.html
Normal file
167
www/docfiles/CustomDataTypes.html
Normal file
@ -0,0 +1,167 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="SaveCallbacks.html">
|
||||
<LINK REL="Next" HREF="ChangingNodeValues.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="SaveCallbacks.html">Previous</A>
|
||||
<A HREF="ChangingNodeValues.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="4_3">Custom Data Types</A></H2>
|
||||
<P>Mini-XML supports custom data types via global load and save
|
||||
callbacks. Only a single set of callbacks can be active at any time,
|
||||
however your callbacks can store additional information in order to
|
||||
support multiple custom data types as needed. The <TT>MXML_CUSTOM</TT>
|
||||
node type identifies custom data nodes.</P>
|
||||
<P>The load callback receives a pointer to the current data node and a
|
||||
string of opaque character data from the XML source with character
|
||||
entities converted to the corresponding UTF-8 characters. For example,
|
||||
if we wanted to support a custom date/time type whose value is encoded
|
||||
as "yyyy-mm-ddThh:mm:ssZ" (ISO format), the load callback would look
|
||||
like the following:</P>
|
||||
<PRE>
|
||||
typedef struct
|
||||
{
|
||||
unsigned year, /* Year */
|
||||
month, /* Month */
|
||||
day, /* Day */
|
||||
hour, /* Hour */
|
||||
minute, /* Minute */
|
||||
second; /* Second */
|
||||
time_t unix; /* UNIX time value */
|
||||
} iso_date_time_t;
|
||||
|
||||
int /* I - 0 on success, -1 on error */
|
||||
load_custom(mxml_node_t *node, /* I - Node */
|
||||
const char *data) /* I - Value */
|
||||
{
|
||||
iso_date_time_t *dt; /* Date/time value */
|
||||
struct tm tmdata; /* UNIX time data */
|
||||
|
||||
|
||||
/*
|
||||
* Allocate data structure...
|
||||
*/
|
||||
|
||||
dt = calloc(1, sizeof(iso_date_time_t));
|
||||
|
||||
/*
|
||||
* Try reading 6 unsigned integers from the data string...
|
||||
*/
|
||||
|
||||
if (sscanf(data, "%u-%u-%uT%u:%u:%uZ",
|
||||
&(dt->year), &(dt->month), &(dt->day),
|
||||
&(dt->hour), &(dt->minute), &(dt->second)) != 6)
|
||||
{
|
||||
/*
|
||||
* Unable to read numbers, free the data structure and return an
|
||||
* error...
|
||||
*/
|
||||
|
||||
free(dt);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Range check values...
|
||||
*/
|
||||
|
||||
if (dt->month <1 || dt->month > 12 ||
|
||||
dt->day <1 || dt->day > 31 ||
|
||||
dt->hour <0 || dt->hour > 23 ||
|
||||
dt->minute <0 || dt->minute > 59 ||
|
||||
dt->second <0 || dt->second > 59)
|
||||
{
|
||||
/*
|
||||
* Date information is out of range...
|
||||
*/
|
||||
|
||||
free(dt);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert ISO time to UNIX time in seconds...
|
||||
*/
|
||||
|
||||
tmdata.tm_year = dt->year - 1900;
|
||||
tmdata.tm_mon = dt->month - 1;
|
||||
tmdata.tm_day = dt->day;
|
||||
tmdata.tm_hour = dt->hour;
|
||||
tmdata.tm_min = dt->minute;
|
||||
tmdata.tm_sec = dt->second;
|
||||
|
||||
dt->unix = gmtime(&tmdata);
|
||||
|
||||
/*
|
||||
* Assign custom node data and destroy function pointers...
|
||||
*/
|
||||
|
||||
node->value.custom.data = dt;
|
||||
node->value.custom.destroy = free;
|
||||
|
||||
/*
|
||||
* Return with no errors...
|
||||
*/
|
||||
|
||||
return (0);
|
||||
}
|
||||
</PRE>
|
||||
<P>The function itself can return 0 on success or -1 if it is unable to
|
||||
decode the custom data or the data contains an error. Custom data nodes
|
||||
contain a <TT>void</TT> pointer to the allocated custom data for the
|
||||
node and a pointer to a destructor function which will free the custom
|
||||
data when the node is deleted.</P>
|
||||
<P>The save callback receives the node pointer and returns an allocated
|
||||
string containing the custom data value. The following save callback
|
||||
could be used for our ISO date/time type:</P>
|
||||
<PRE>
|
||||
char * /* I - Allocated string */
|
||||
save_custom(mxml_node_t *node) /* I - Node */
|
||||
{
|
||||
char data[255]; /* Data string */
|
||||
iso_date_time_t *dt; /* ISO date/time pointer */
|
||||
|
||||
|
||||
dt = (iso_date_time_t *)node->custom.data;
|
||||
|
||||
snprintf(data, sizeof(data), "%04u-%02u-%02uT%02u:%02u:%02uZ",
|
||||
dt->year, dt->month, dt->day, dt->hour,
|
||||
dt->minute, dt->second);
|
||||
|
||||
return (strdup(data));
|
||||
}
|
||||
</PRE>
|
||||
<P>You register the callback functions using the <A href="mxmlSetCustomHandlers.html#mxmlSetCustomHandlers">
|
||||
<TT>mxmlSetCustomHandlers()</TT></A> function:</P>
|
||||
<PRE>
|
||||
mxmlSetCustomHandlers(load_custom, save_custom);
|
||||
</PRE>
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="SaveCallbacks.html">Previous</A>
|
||||
<A HREF="ChangingNodeValues.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="ChangingNodeValues.html">Previous</A>
|
||||
<A HREF="Indexing.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="4_4">Formatted Text</A></H2>
|
||||
<H2><A NAME="4_5">Formatted Text</A></H2>
|
||||
<P>The <A href="mxmlNewTextf.html#mxmlNewTextf"><TT>mxmlNewTextf()</TT></A>
|
||||
and <A href="mxmlSetTextf.html#mxmlSetTextf"><TT>mxmlSetTextf()</TT></A>
|
||||
functions create and change text nodes, respectively, using <TT>printf</TT>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -54,9 +54,12 @@ mxmlEntityRemoveCallback()</TT></A></LI>
|
||||
<LI><A href="mxmlIndexNew.html#mxmlIndexNew"><TT>mxmlIndexNew()</TT></A></LI>
|
||||
<LI><A href="mxmlIndexReset.html#mxmlIndexReset"><TT>mxmlIndexReset()</TT>
|
||||
</A></LI>
|
||||
<LI><A href="mxmlLoadFd.html#mxmlLoadFd"><TT>mxmlLoadFd()</TT></A></LI>
|
||||
<LI><A href="mxmlLoadFile.html#mxmlLoadFile"><TT>mxmlLoadFile()</TT></A></LI>
|
||||
<LI><A href="mxmlLoadString.html#mxmlLoadString"><TT>mxmlLoadString()</TT>
|
||||
</A></LI>
|
||||
<LI><A href="mxmlNewCustom.html#mxmlNewCustom"><TT>mxmlNewCustom()</TT></A>
|
||||
</LI>
|
||||
<LI><A href="mxmlNewElement.html#mxmlNewElement"><TT>mxmlNewElement()</TT>
|
||||
</A></LI>
|
||||
<LI><A href="mxmlNewInteger.html#mxmlNewInteger"><TT>mxmlNewInteger()</TT>
|
||||
@ -69,9 +72,14 @@ mxmlEntityRemoveCallback()</TT></A></LI>
|
||||
<LI><A href="mxmlRemove.html#mxmlRemove"><TT>mxmlRemove()</TT></A></LI>
|
||||
<LI><A href="mxmlSaveAllocString.html#mxmlSaveAllocString"><TT>
|
||||
mxmlSaveAllocString()</TT></A></LI>
|
||||
<LI><A href="mxmlSaveFd.html#mxmlSaveFd"><TT>mxmlSaveFd()</TT></A></LI>
|
||||
<LI><A href="mxmlSaveFile.html#mxmlSaveFile"><TT>mxmlSaveFile()</TT></A></LI>
|
||||
<LI><A href="mxmlSaveString.html#mxmlSaveString"><TT>mxmlSaveString()</TT>
|
||||
</A></LI>
|
||||
<LI><A href="mxmlSetCustom.html#mxmlSetCustom"><TT>mxmlSetCustom()</TT></A>
|
||||
</LI>
|
||||
<LI><A href="mxmlSetCustomHandlers.html#mxmlSetCustomHandlers"><TT>
|
||||
mxmlSetCustomHandlers()</TT></A></LI>
|
||||
<LI><A href="mxmlSetElement.html#mxmlSetElement"><TT>mxmlSetElement()</TT>
|
||||
</A></LI>
|
||||
<LI><A href="mxmlSetErrorCallback.html#mxmlSetErrorCallback"><TT>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -27,7 +27,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="FormattedText.html">Previous</A>
|
||||
<A HREF="4UsingthemxmldocUtility.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A NAME="4_5">Indexing</A></H2>
|
||||
<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 the <A href="mxmlFindElement.html#mxmlFindElement">
|
||||
<TT>mxmlFindElement()</TT></A>. The advantage of using an index is that
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -26,7 +26,7 @@ PRE { font-family: monospace }
|
||||
<A HREF="LegalStuff.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H1 align="right"><A name="INTRO">Introduction</A></H1>
|
||||
<P>This programmers manual describes Mini-XML version 2.0, a small XML
|
||||
<P>This programmers manual describes Mini-XML version 2.1, a small XML
|
||||
parsing library that you can use to read and write XML and XML-like
|
||||
data files in your application without requiring large non-standard
|
||||
libraries. Mini-XML only requires an ANSI C compatible compiler (GCC
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -35,12 +35,12 @@ PRE { font-family: monospace }
|
||||
<TR><TH>Example</TH><TD> </TD><TH>Description</TH></TR>
|
||||
<TR><TD colspan="3"> </TD></TR>
|
||||
<TR valign="top"><TD><CODE>lpstat</CODE>
|
||||
<BR /> <CODE>lpstat(1)</CODE></TD><TD> </TD><TD>The names of commands;
|
||||
<BR> <CODE>lpstat(1)</CODE></TD><TD> </TD><TD>The names of commands;
|
||||
the first mention of a command or function in a chapter is followed by
|
||||
a manual page section number.</TD></TR>
|
||||
<TR><TD colspan="3"> </TD></TR>
|
||||
<TR valign="top"><TD><VAR>/var</VAR>
|
||||
<BR /><VAR> /usr/share/cups/data/testprint.ps</VAR></TD><TD> </TD><TD>
|
||||
<BR><VAR> /usr/share/cups/data/testprint.ps</VAR></TD><TD> </TD><TD>
|
||||
File and directory names.</TD></TR>
|
||||
<TR><TD colspan="3"> </TD></TR>
|
||||
<TR valign="top"><TD nowrap><TT>Request ID is Printer-123</TT></TD><TD>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -34,11 +34,11 @@ PRE { font-family: monospace }
|
||||
<DT>The Unicode Standard, Version 4.0, Addison-Wesley, ISBN
|
||||
0-321-18578-1</DT>
|
||||
<DD>The definition of the Unicode character set which is used for XML.
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
<DT><A href="http://www.w3.org/TR/2004/REC-xml-20040204/">Extensible
|
||||
Markup Language (XML) 1.0 (Third Edition)</A></DT>
|
||||
<DD>The XML specification from the World Wide Web Consortium (W3C)
|
||||
<BR /> </DD>
|
||||
<BR> </DD>
|
||||
</DL>
|
||||
</BLOCKQUOTE><HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="LoadCallbacks.html">
|
||||
<LINK REL="Next" HREF="ChangingNodeValues.html">
|
||||
<LINK REL="Next" HREF="CustomDataTypes.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,7 +25,7 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="LoadCallbacks.html">Previous</A>
|
||||
<A HREF="ChangingNodeValues.html">Next</A>
|
||||
<A HREF="CustomDataTypes.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A name="SAVE_CALLBACKS">Save Callbacks</A></H2>
|
||||
<P><A href="#LOAD_XML">Chapter 2</A> also introduced the <A href="mxmlSaveFile.html#mxmlSaveFile">
|
||||
@ -118,6 +118,6 @@ MXML_WS_BEFORE_CLOSE</TT>, or <TT>MXML_WS_AFTER_CLOSE</TT>. The callback
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="LoadCallbacks.html">Previous</A>
|
||||
<A HREF="ChangingNodeValues.html">Next</A>
|
||||
<A HREF="CustomDataTypes.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -30,6 +30,8 @@ PRE { font-family: monospace }
|
||||
<H2><A name="_structures">Structures</A></H2>
|
||||
<UL>
|
||||
<LI><A href="mxmlattrs.html#mxml_attr_s"><TT>mxml_attr_s</TT></A></LI>
|
||||
<LI><A href="mxmlcustoms.html#mxml_custom_s"><TT>mxml_custom_s</TT></A></LI>
|
||||
<LI><A href="mxmlfdbufs.html#mxml_fdbuf_s"><TT>mxml_fdbuf_s</TT></A></LI>
|
||||
<LI><A href="mxmlindexs.html#mxml_index_s"><TT>mxml_index_s</TT></A></LI>
|
||||
<LI><A href="mxmlnodes.html#mxml_node_s"><TT>mxml_node_s</TT></A></LI>
|
||||
<LI><A href="mxmltexts.html#mxml_text_s"><TT>mxml_text_s</TT></A></LI>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -30,8 +30,10 @@ PRE { font-family: monospace }
|
||||
<H2><A name="_types">Types</A></H2>
|
||||
<UL>
|
||||
<LI><A href="mxmlattrt.html#mxml_attr_t"><TT>mxml_attr_t</TT></A></LI>
|
||||
<LI><A href="mxmlcustomt.html#mxml_custom_t"><TT>mxml_custom_t</TT></A></LI>
|
||||
<LI><A href="mxmlelementt.html#mxml_element_t"><TT>mxml_element_t</TT></A>
|
||||
</LI>
|
||||
<LI><A href="mxmlfdbuft.html#mxml_fdbuf_t"><TT>mxml_fdbuf_t</TT></A></LI>
|
||||
<LI><A href="mxmlindext.html#mxml_index_t"><TT>mxml_index_t</TT></A></LI>
|
||||
<LI><A href="mxmlnodet.html#mxml_node_t"><TT>mxml_node_t</TT></A></LI>
|
||||
<LI><A href="mxmltextt.html#mxml_text_t"><TT>mxml_text_t</TT></A></LI>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlvalueu.html">
|
||||
<LINK REL="Next" HREF="numcallbacks.html">
|
||||
<LINK REL="Next" HREF="mxmlcustomloadcb.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,10 +25,14 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlvalueu.html">Previous</A>
|
||||
<A HREF="numcallbacks.html">Next</A>
|
||||
<A HREF="mxmlcustomloadcb.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H2><A name="_variables">Variables</A></H2>
|
||||
<UL>
|
||||
<LI><A href="mxmlcustomloadcb.html#mxml_custom_load_cb"><TT>
|
||||
mxml_custom_load_cb</TT></A></LI>
|
||||
<LI><A href="mxmlcustomsavecb.html#mxml_custom_save_cb"><TT>
|
||||
mxml_custom_save_cb</TT></A></LI>
|
||||
<LI><A href="numcallbacks.html#num_callbacks"><TT>num_callbacks</TT></A></LI>
|
||||
</UL>
|
||||
|
||||
@ -36,6 +40,6 @@ PRE { font-family: monospace }
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlvalueu.html">Previous</A>
|
||||
<A HREF="numcallbacks.html">Next</A>
|
||||
<A HREF="mxmlcustomloadcb.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
@ -21,8 +21,8 @@ PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<CENTER><IMG SRC="logo.png" WIDTH="222" HEIGHT="181"><BR>
|
||||
<H1>Mini-XML Programmers Manual, Version 2.0</H1><BR>
|
||||
<CENTER><IMG SRC="logo.png" WIDTH="222" HEIGHT="181" ALT="Mini-XML Programmers Manual, Version 2.1"><BR>
|
||||
<H1>Mini-XML Programmers Manual, Version 2.1</H1><BR>
|
||||
Michael Sweet<BR>
|
||||
Copyright 2003-2004<BR>
|
||||
<A HREF="toc.html">Table of Contents</A></CENTER>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlIndexNew.html">
|
||||
<LINK REL="Next" HREF="mxmlLoadFile.html">
|
||||
<LINK REL="Next" HREF="mxmlLoadFd.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,7 +25,7 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlIndexNew.html">Previous</A>
|
||||
<A HREF="mxmlLoadFile.html">Next</A>
|
||||
<A HREF="mxmlLoadFd.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlIndexReset">mxmlIndexReset()</A></H3>
|
||||
<HR noshade/>
|
||||
@ -54,6 +54,6 @@ mxmlIndexReset(
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlIndexNew.html">Previous</A>
|
||||
<A HREF="mxmlLoadFile.html">Next</A>
|
||||
<A HREF="mxmlLoadFd.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
70
www/docfiles/mxmlLoadFd.html
Normal file
70
www/docfiles/mxmlLoadFd.html
Normal file
@ -0,0 +1,70 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlIndexReset.html">
|
||||
<LINK REL="Next" HREF="mxmlLoadFile.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlIndexReset.html">Previous</A>
|
||||
<A HREF="mxmlLoadFile.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlLoadFd">mxmlLoadFd()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Load a file descriptor into an XML node tree. The nodes in the
|
||||
specified file are added to the specified top node. If no top node is
|
||||
provided, the XML file MUST be well-formed with a single parent node
|
||||
like <?xml> for the entire file. The callback function returns the
|
||||
value type that should be used for child nodes. If MXML_NO_CALLBACK is
|
||||
specified then all child nodes will be either MXML_ELEMENT or MXML_TEXT
|
||||
nodes. The constants MXML_INTEGER_CALLBACK, MXML_OPAQUE_CALLBACK,
|
||||
MXML_REAL_CALLBACK, and MXML_TEXT_CALLBACK are defined for loading
|
||||
child nodes of the specified type.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> *
|
||||
mxmlLoadFd(
|
||||
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> * top,
|
||||
int fd,
|
||||
<A href="mxmltypet.html#mxml_type_t">mxml_type_t</A> (*cb)(mxml_node_t *node));
|
||||
</PRE>
|
||||
<H4>Arguments</H4>
|
||||
<P class="table"></P>
|
||||
<TABLE align="center" border="1" cellpadding="5" cellspacing="0" width="80%">
|
||||
<THEAD></THEAD>
|
||||
<TR bgcolor="#cccccc"><TH>Name</TH><TH>Description</TH></TR>
|
||||
<TBODY></TBODY>
|
||||
<TR><TD><TT>top</TT></TD><TD>Top node</TD></TR>
|
||||
<TR><TD><TT>fd</TT></TD><TD>File descriptor to read from</TD></TR>
|
||||
<TR><TD><TT>(*cb)(mxml_node_t *node)</TT></TD><TD>Callback function or
|
||||
MXML_NO_CALLBACK</TD></TR>
|
||||
</TABLE>
|
||||
<H4>Returns</H4>
|
||||
<P>First node or NULL if the file could not be read.</P>
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlIndexReset.html">Previous</A>
|
||||
<A HREF="mxmlLoadFile.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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlIndexReset.html">
|
||||
<LINK REL="Prev" HREF="mxmlLoadFd.html">
|
||||
<LINK REL="Next" HREF="mxmlLoadString.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
@ -24,7 +24,7 @@ PRE { font-family: monospace }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlIndexReset.html">Previous</A>
|
||||
<A HREF="mxmlLoadFd.html">Previous</A>
|
||||
<A HREF="mxmlLoadString.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlLoadFile">mxmlLoadFile()</A></H3>
|
||||
@ -64,7 +64,7 @@ mxmlLoadFile(
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlIndexReset.html">Previous</A>
|
||||
<A HREF="mxmlLoadFd.html">Previous</A>
|
||||
<A HREF="mxmlLoadString.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlLoadFile.html">
|
||||
<LINK REL="Next" HREF="mxmlNewElement.html">
|
||||
<LINK REL="Next" HREF="mxmlNewCustom.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,7 +25,7 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlLoadFile.html">Previous</A>
|
||||
<A HREF="mxmlNewElement.html">Next</A>
|
||||
<A HREF="mxmlNewCustom.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlLoadString">mxmlLoadString()</A></H3>
|
||||
<HR noshade/>
|
||||
@ -65,6 +65,6 @@ mxmlLoadString(
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlLoadFile.html">Previous</A>
|
||||
<A HREF="mxmlNewElement.html">Next</A>
|
||||
<A HREF="mxmlNewCustom.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
66
www/docfiles/mxmlNewCustom.html
Normal file
66
www/docfiles/mxmlNewCustom.html
Normal file
@ -0,0 +1,66 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlLoadString.html">
|
||||
<LINK REL="Next" HREF="mxmlNewElement.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlLoadString.html">Previous</A>
|
||||
<A HREF="mxmlNewElement.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlNewCustom">mxmlNewCustom()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Create a new custom data node. The new custom node is added to the
|
||||
end of the specified parent's child list. The constant MXML_NO_PARENT
|
||||
can be used to specify that the new element node has no parent. NULL
|
||||
can be passed when the data in the node is not dynamically allocated or
|
||||
is separately managed.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> *
|
||||
mxmlNewCustom(
|
||||
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> * parent,
|
||||
void * data,
|
||||
void (*destroy)(void *));
|
||||
</PRE>
|
||||
<H4>Arguments</H4>
|
||||
<P class="table"></P>
|
||||
<TABLE align="center" border="1" cellpadding="5" cellspacing="0" width="80%">
|
||||
<THEAD></THEAD>
|
||||
<TR bgcolor="#cccccc"><TH>Name</TH><TH>Description</TH></TR>
|
||||
<TBODY></TBODY>
|
||||
<TR><TD><TT>parent</TT></TD><TD>Parent node or MXML_NO_PARENT</TD></TR>
|
||||
<TR><TD><TT>data</TT></TD><TD>Pointer to data</TD></TR>
|
||||
<TR><TD><TT>(*destroy)(void *)</TT></TD><TD>Function to destroy data</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<H4>Returns</H4>
|
||||
<P>New node</P>
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlLoadString.html">Previous</A>
|
||||
<A HREF="mxmlNewElement.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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlLoadString.html">
|
||||
<LINK REL="Prev" HREF="mxmlNewCustom.html">
|
||||
<LINK REL="Next" HREF="mxmlNewInteger.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
@ -24,7 +24,7 @@ PRE { font-family: monospace }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlLoadString.html">Previous</A>
|
||||
<A HREF="mxmlNewCustom.html">Previous</A>
|
||||
<A HREF="mxmlNewInteger.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlNewElement">mxmlNewElement()</A></H3>
|
||||
@ -55,7 +55,7 @@ mxmlNewElement(
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlLoadString.html">Previous</A>
|
||||
<A HREF="mxmlNewCustom.html">Previous</A>
|
||||
<A HREF="mxmlNewInteger.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlRemove.html">
|
||||
<LINK REL="Next" HREF="mxmlSaveFile.html">
|
||||
<LINK REL="Next" HREF="mxmlSaveFd.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,7 +25,7 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlRemove.html">Previous</A>
|
||||
<A HREF="mxmlSaveFile.html">Next</A>
|
||||
<A HREF="mxmlSaveFd.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSaveAllocString">mxmlSaveAllocString()</A></H3>
|
||||
<HR noshade/>
|
||||
@ -34,7 +34,11 @@ PRE { font-family: monospace }
|
||||
pointer to a string containing the textual representation of the XML
|
||||
node tree. The string should be freed using the free() function when
|
||||
you are done with it. NULL is returned if the node would produce an
|
||||
empty string or if the string cannot be allocated.</P>
|
||||
empty string or if the string cannot be allocated. The callback
|
||||
argument specifies a function that returns a whitespace string or NULL
|
||||
before and after each element. If MXML_NO_CALLBACK is specified,
|
||||
whitespace will only be added before MXML_TEXT nodes with leading
|
||||
whitespace and before attribute names inside opening element tags.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
char *
|
||||
@ -59,6 +63,6 @@ mxmlSaveAllocString(
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlRemove.html">Previous</A>
|
||||
<A HREF="mxmlSaveFile.html">Next</A>
|
||||
<A HREF="mxmlSaveFd.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
66
www/docfiles/mxmlSaveFd.html
Normal file
66
www/docfiles/mxmlSaveFd.html
Normal file
@ -0,0 +1,66 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlSaveAllocString.html">
|
||||
<LINK REL="Next" HREF="mxmlSaveFile.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveAllocString.html">Previous</A>
|
||||
<A HREF="mxmlSaveFile.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSaveFd">mxmlSaveFd()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Save an XML tree to a file descriptor. The callback argument
|
||||
specifies a function that returns a whitespace string or NULL before
|
||||
and after each element. If MXML_NO_CALLBACK is specified, whitespace
|
||||
will only be added before MXML_TEXT nodes with leading whitespace and
|
||||
before attribute names inside opening element tags.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
int
|
||||
mxmlSaveFd(
|
||||
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> * node,
|
||||
int fd,
|
||||
const char * (*cb)(mxml_node_t *node, int ws));
|
||||
</PRE>
|
||||
<H4>Arguments</H4>
|
||||
<P class="table"></P>
|
||||
<TABLE align="center" border="1" cellpadding="5" cellspacing="0" width="80%">
|
||||
<THEAD></THEAD>
|
||||
<TR bgcolor="#cccccc"><TH>Name</TH><TH>Description</TH></TR>
|
||||
<TBODY></TBODY>
|
||||
<TR><TD><TT>node</TT></TD><TD>Node to write</TD></TR>
|
||||
<TR><TD><TT>fd</TT></TD><TD>File descriptor to write to</TD></TR>
|
||||
<TR><TD><TT>(*cb)(mxml_node_t *node, int ws)</TT></TD><TD>Whitespace
|
||||
callback or MXML_NO_CALLBACK</TD></TR>
|
||||
</TABLE>
|
||||
<H4>Returns</H4>
|
||||
<P>0 on success, -1 on error.</P>
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveAllocString.html">Previous</A>
|
||||
<A HREF="mxmlSaveFile.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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlSaveAllocString.html">
|
||||
<LINK REL="Prev" HREF="mxmlSaveFd.html">
|
||||
<LINK REL="Next" HREF="mxmlSaveString.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
@ -24,16 +24,16 @@ PRE { font-family: monospace }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveAllocString.html">Previous</A>
|
||||
<A HREF="mxmlSaveFd.html">Previous</A>
|
||||
<A HREF="mxmlSaveString.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSaveFile">mxmlSaveFile()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Save an XML tree to a file. The callback argument specifies a
|
||||
function that returns a whitespace character or nul (0) before and
|
||||
after each element. If MXML_NO_CALLBACK is specified, whitespace will
|
||||
only be added before MXML_TEXT nodes with leading whitespace and before
|
||||
function that returns a whitespace string or NULL before and after each
|
||||
element. If MXML_NO_CALLBACK is specified, whitespace will only be
|
||||
added before MXML_TEXT nodes with leading whitespace and before
|
||||
attribute names inside opening element tags.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
@ -60,7 +60,7 @@ mxmlSaveFile(
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveAllocString.html">Previous</A>
|
||||
<A HREF="mxmlSaveFd.html">Previous</A>
|
||||
<A HREF="mxmlSaveString.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlSaveFile.html">
|
||||
<LINK REL="Next" HREF="mxmlSetElement.html">
|
||||
<LINK REL="Next" HREF="mxmlSetCustom.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,14 +25,18 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveFile.html">Previous</A>
|
||||
<A HREF="mxmlSetElement.html">Next</A>
|
||||
<A HREF="mxmlSetCustom.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSaveString">mxmlSaveString()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Save an XML node tree to a string. This function returns the total
|
||||
number of bytes that would be required for the string but only copies
|
||||
(bufsize - 1) characters into the specified buffer.</P>
|
||||
(bufsize - 1) characters into the specified buffer. The callback
|
||||
argument specifies a function that returns a whitespace string or NULL
|
||||
before and after each element. If MXML_NO_CALLBACK is specified,
|
||||
whitespace will only be added before MXML_TEXT nodes with leading
|
||||
whitespace and before attribute names inside opening element tags.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
int
|
||||
@ -61,6 +65,6 @@ mxmlSaveString(
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveFile.html">Previous</A>
|
||||
<A HREF="mxmlSetElement.html">Next</A>
|
||||
<A HREF="mxmlSetCustom.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
62
www/docfiles/mxmlSetCustom.html
Normal file
62
www/docfiles/mxmlSetCustom.html
Normal file
@ -0,0 +1,62 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlSaveString.html">
|
||||
<LINK REL="Next" HREF="mxmlSetCustomHandlers.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveString.html">Previous</A>
|
||||
<A HREF="mxmlSetCustomHandlers.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSetCustom">mxmlSetCustom()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Set the data and destructor of a custom data node. The node is not
|
||||
changed if it is not a custom node.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
int
|
||||
mxmlSetCustom(
|
||||
<A href="mxmlnodet.html#mxml_node_t">mxml_node_t</A> * node,
|
||||
void * data,
|
||||
void (*destroy)(void *));
|
||||
</PRE>
|
||||
<H4>Arguments</H4>
|
||||
<P class="table"></P>
|
||||
<TABLE align="center" border="1" cellpadding="5" cellspacing="0" width="80%">
|
||||
<THEAD></THEAD>
|
||||
<TR bgcolor="#cccccc"><TH>Name</TH><TH>Description</TH></TR>
|
||||
<TBODY></TBODY>
|
||||
<TR><TD><TT>node</TT></TD><TD>Node to set</TD></TR>
|
||||
<TR><TD><TT>data</TT></TD><TD>New data pointer</TD></TR>
|
||||
<TR><TD><TT>(*destroy)(void *)</TT></TD><TD>New destructor function</TD></TR>
|
||||
</TABLE>
|
||||
<H4>Returns</H4>
|
||||
<P>0 on success, -1 on failure</P>
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveString.html">Previous</A>
|
||||
<A HREF="mxmlSetCustomHandlers.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
62
www/docfiles/mxmlSetCustomHandlers.html
Normal file
62
www/docfiles/mxmlSetCustomHandlers.html
Normal file
@ -0,0 +1,62 @@
|
||||
<!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.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlSetCustom.html">
|
||||
<LINK REL="Next" HREF="mxmlSetElement.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
H2 { font-family: sans-serif }
|
||||
H3 { font-family: sans-serif }
|
||||
H4 { font-family: sans-serif }
|
||||
H5 { font-family: sans-serif }
|
||||
H6 { font-family: sans-serif }
|
||||
SUB { font-size: smaller }
|
||||
SUP { font-size: smaller }
|
||||
PRE { font-family: monospace }
|
||||
--></STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSetCustom.html">Previous</A>
|
||||
<A HREF="mxmlSetElement.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSetCustomHandlers">mxmlSetCustomHandlers()</A></H3>
|
||||
<HR noshade/>
|
||||
<H4>Description</H4>
|
||||
<P>Set the handling functions for custom data. The load function accepts
|
||||
a node pointer and a data string and must return 0 on success and
|
||||
non-zero on error. The save function accepts a node pointer and must
|
||||
return a malloc'd string on success and NULL on error.</P>
|
||||
<H4>Syntax</H4>
|
||||
<PRE>
|
||||
void
|
||||
mxmlSetCustomHandlers(
|
||||
mxml_custom_load_cb_t load,
|
||||
mxml_custom_save_cb_t save);
|
||||
</PRE>
|
||||
<H4>Arguments</H4>
|
||||
<P class="table"></P>
|
||||
<TABLE align="center" border="1" cellpadding="5" cellspacing="0" width="80%">
|
||||
<THEAD></THEAD>
|
||||
<TR bgcolor="#cccccc"><TH>Name</TH><TH>Description</TH></TR>
|
||||
<TBODY></TBODY>
|
||||
<TR><TD><TT>load</TT></TD><TD>Load function</TD></TR>
|
||||
<TR><TD><TT>save</TT></TD><TD>Save function</TD></TR>
|
||||
</TABLE>
|
||||
<H4>Returns</H4>
|
||||
<P>Nothing.</P>
|
||||
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSetCustom.html">Previous</A>
|
||||
<A HREF="mxmlSetElement.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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="mxmlSaveString.html">
|
||||
<LINK REL="Prev" HREF="mxmlSetCustomHandlers.html">
|
||||
<LINK REL="Next" HREF="mxmlSetErrorCallback.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
@ -24,7 +24,7 @@ PRE { font-family: monospace }
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveString.html">Previous</A>
|
||||
<A HREF="mxmlSetCustomHandlers.html">Previous</A>
|
||||
<A HREF="mxmlSetErrorCallback.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxmlSetElement">mxmlSetElement()</A></H3>
|
||||
@ -54,7 +54,7 @@ mxmlSetElement(
|
||||
<!-- NEW PAGE -->
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="mxmlSaveString.html">Previous</A>
|
||||
<A HREF="mxmlSetCustomHandlers.html">Previous</A>
|
||||
<A HREF="mxmlSetErrorCallback.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -1,7 +1,7 @@
|
||||
<!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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
|
@ -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.0</TITLE>
|
||||
<TITLE>Mini-XML Programmers Manual, Version 2.1</TITLE>
|
||||
<META NAME="author" CONTENT="Michael Sweet">
|
||||
<META NAME="copyright" CONTENT="Copyright 2003-2004">
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
||||
<LINK REL="Start" HREF="index.html">
|
||||
<LINK REL="Contents" HREF="toc.html">
|
||||
<LINK REL="Prev" HREF="Structures.html">
|
||||
<LINK REL="Next" HREF="mxmlindexs.html">
|
||||
<LINK REL="Next" HREF="mxmlcustoms.html">
|
||||
<STYLE TYPE="text/css"><!--
|
||||
BODY { font-family: serif }
|
||||
H1 { font-family: sans-serif }
|
||||
@ -25,7 +25,7 @@ PRE { font-family: monospace }
|
||||
<BODY>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="Structures.html">Previous</A>
|
||||
<A HREF="mxmlindexs.html">Next</A>
|
||||
<A HREF="mxmlcustoms.html">Next</A>
|
||||
<HR NOSHADE>
|
||||
<H3><A name="mxml_attr_s">mxml_attr_s</A></H3>
|
||||
<HR noshade/>
|
||||
@ -53,6 +53,6 @@ struct mxml_attr_s
|
||||
<HR NOSHADE>
|
||||
<A HREF="toc.html">Contents</A>
|
||||
<A HREF="Structures.html">Previous</A>
|
||||
<A HREF="mxmlindexs.html">Next</A>
|
||||
<A HREF="mxmlcustoms.html">Next</A>
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user