From 6057e7ee0246517bec40c75f51bfeaefb4b22623 Mon Sep 17 00:00:00 2001
From: Michael R Sweet
Date: Fri, 23 Nov 2007 02:15:07 +0000
Subject: [PATCH] Prep for 2.4 release.
Update documentation.
---
ANNOUNCEMENT | 9 ++-
CHANGES | 5 +-
Makefile.in | 2 +-
README | 4 +-
TODO | 4 +-
doc/mxml.html | 132 +++++++++++++++++++++++++------------
doc/relnotes.html | 5 ++
www/docfiles/advanced.html | 2 +-
www/docfiles/basics.html | 2 +-
www/docfiles/index.html | 27 ++++----
www/docfiles/install.html | 2 +-
www/docfiles/intro.html | 4 +-
www/docfiles/license.html | 2 +-
www/docfiles/mxmldoc.html | 2 +-
www/docfiles/refapp.html | 53 +++++++++++----
www/docfiles/relnotes.html | 54 ++++++++++-----
www/docfiles/schema.html | 2 +-
www/documentation.php | 3 +
www/mxml.html | 132 +++++++++++++++++++++++++------------
www/str.php | 5 +-
20 files changed, 302 insertions(+), 149 deletions(-)
diff --git a/ANNOUNCEMENT b/ANNOUNCEMENT
index 27ab743..747a2f9 100644
--- a/ANNOUNCEMENT
+++ b/ANNOUNCEMENT
@@ -1,8 +1,7 @@
-Mini-XML 2.3 is now available for download from:
+Mini-XML 2.4 is now available for download from:
http://www.easysw.com/~mike/mxml/software.php
-Mini-XML 2.3 adds a SAX API, more convenience functions, a user data
-pointer to the mxml_node_t structure, and improved HTML and new man
-page output from mxmldoc. The new release now also offers relaxed
-LGPL licensing that allows static linking.
+Mini-XML 2.4 fixes some build and XML parsing bugs, adds support
+for the apos character entity, and adds per-thread global settings.
+
diff --git a/CHANGES b/CHANGES
index 4428a2f..850cc6b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,8 +1,11 @@
-CHANGES - 2007-09-22
+CHANGES - 2007-11-22
--------------------
CHANGES IN Mini-XML 2.4
+ - Fixed shared library build problems on HP-UX and Mac OS X.
+ - The mxmldoc program did not output argument descriptions
+ for functions properly.
- All global settings (custom, error, and entity callbacks
and the wrap margin) are now managed separately for each
thread.
diff --git a/Makefile.in b/Makefile.in
index 6f9f86f..230737b 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -103,7 +103,7 @@ all: Makefile config.h $(TARGETS)
#
clean:
- $(RM) $(OBJS) $(TARGETS) doc/mxml.man
+ $(RM) $(OBJS) $(TARGETS)
$(RM) mxmldoc-static libmxml.a
diff --git a/README b/README
index 27bcb83..eba8408 100644
--- a/README
+++ b/README
@@ -1,10 +1,10 @@
-README - 2007-04-17
+README - 2007-11-22
-------------------
INTRODUCTION
- This README file describes the Mini-XML library version 2.3.
+ This README file describes the Mini-XML library version 2.4.
Mini-XML is a small XML parsing library that you can use to
read XML and XML-like data files in your application without
diff --git a/TODO b/TODO
index 50adf7a..e181313 100644
--- a/TODO
+++ b/TODO
@@ -1,11 +1,9 @@
-TODO - 02/25/2005
+TODO - 2007-11-22
-----------------
- Add access methods and make node structure opaque.
-- To allow for C++ migration
-- To make future binary compatibility easier
- - Add VC++/VC++.NET project files.
- -- Include DLL .def file for making a DLL?
- Add C++ class/struct.
-- Make this the core implementation which the C API accesses?
-- Class would allow for subclassing, is that necessary?
diff --git a/doc/mxml.html b/doc/mxml.html
index eb9936e..9931ae2 100644
--- a/doc/mxml.html
+++ b/doc/mxml.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
@@ -87,9 +87,10 @@ A { text-decoration: none }
@@ -177,7 +178,7 @@ A { text-decoration: none }
Introduction
-This programmers manual describes Mini-XML version 2.3, a small XML
+
This programmers manual describes Mini-XML version 2.4, a small XML
parsing library that you can use to read and write XML data files in
your C and C++ applications.
Mini-XML was initially developed for the
@@ -1925,7 +1926,27 @@ hspace="10" src="A.gif" width="100">Mini-XML License
Release Notes
-
+
+
+- Fixed shared library build problems on HP-UX and Mac OS X.
+- The mxmldoc program did not output argument descriptions for
+ functions properly.
+- All global settings (custom, error, and entity callbacks and the
+ wrap margin) are now managed separately for each thread.
+- Added mxmlElementDeleteAttr() function (STR #59)
+- mxmlElementSetAttrf() did not work (STR #57)
+- mxmlLoad*() incorrectly treated declarations as parent elements (STR
+ #56)
+- mxmlLoad*() incorrectly allowed attributes without values (STR #47)
+- Fixed Visual C++ build problems (STR #49)
+- mxmlLoad*() did not return NULL when an element contained an error
+ (STR #46)
+- Added support for the apos character entity (STR #54)
+- Fixed whitespace detection with Unicode characters (STR #48)
+- mxmlWalkNext() and mxmlWalkPrev() did not work correctly when called
+ with a node with no children as the top node (STR #53)
+
+
- Added two exceptions to the LGPL to support static linking of
applications against Mini-XML
@@ -1963,12 +1984,12 @@ hspace="10" src="B.gif" width="100">Release Notes
- mxmlLoad*() did not treat custom data as opaque, so whitespace
characters would be lost
-
+
- mxmlLoad*() did not treat custom data as opaque, so whitespace
characters would be lost.
-
+
- mxmlLoadFd(), mxmlLoadFile(), and mxmlLoadString() now correctly
return NULL on error (STR #21)
@@ -1979,7 +2000,7 @@ hspace="10" src="B.gif" width="100">Release Notes
proper permissions on UNIX/Linux/OSX.
- Fixed a MingW/Cygwin compilation problem (STR #18)
-
+
- Added shared library support (STR #17)
- mxmlLoad*() now returns an error when an XML stream contains illegal
@@ -1993,7 +2014,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added checking for invalid comment termination ("--->" is not
allowed)
-
+
- Added support for custom data nodes (STR #6)
- Now treat UTF-8 sequences which are longer than necessary as an
@@ -2004,7 +2025,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added mxmlLoadFd() and mxmlSaveFd() functions.
- Fixed multi-word UTF-16 handling.
-
+
- New programmers manual.
- Added Visual C++ project files for Microsoft Windows users.
@@ -2037,7 +2058,7 @@ hspace="10" src="B.gif" width="100">Release Notes
destination path and install path. This caused problems when building
and installing with MingW.
-
+
- Fixes for mxmldoc.
- Added support for reading standard HTML entity names.
@@ -2053,7 +2074,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- The load and save functions now properly handle quoted element and
attribute name strings properly, e.g. for !DOCTYPE declarations.
-
+
- Added new "set" methods to set the value of a node.
- Added new formatted text methods mxmlNewTextf() and mxmlSetTextf()
@@ -2066,13 +2087,13 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added --with/without-snprintf configure option to control the
snprintf() and vsnprintf() function checks.
-
+
- The mxml(3) man page wasn't updated for the string functions.
- mxmlSaveString() returned the wrong number of characters.
- mxml_add_char() updated the buffer pointer in the wrong place.
-
+
- The private mxml_add_ch() function did not update the
start-of-buffer pointer which could cause a crash when using
@@ -2083,7 +2104,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added a mxmlSaveAllocString() convenience function for saving an XML
node tree to an allocated string.
-
+
- The mxmlLoadFile() function now uses dynamically allocated string
buffers for element names, attribute names, and attribute values.
@@ -2095,7 +2116,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Add emulation of strdup() if the local platform does not provide the
function.
-
+
- The mxmldoc program now handles function arguments, structures,
unions, enumerations, classes, and typedefs properly.
@@ -2103,7 +2124,7 @@ hspace="10" src="B.gif" width="100">Release Notes
code.
- Added man pages and packaging files.
-
+
- New mxmldoc example program that is also used to create and update
code documentation using XML and produce HTML reference pages.
@@ -2128,15 +2149,15 @@ hspace="10" src="B.gif" width="100">Release Notes
- mxmlSaveFile() now supports a whitespace callback to provide more
human-readable XML output under program control.
-
+
- mxmlSaveFile() didn't return a value on success.
-
+
- mxmlWalkNext() would go into an infinite loop.
-
+
@@ -2204,6 +2225,9 @@ hspace="10" src="C.gif" width="100">Library Reference
- mxmlAdd()
- mxmlDelete()
+- mxmlElementDeleteAttr()
+
+ Mini-XML 2.4
- mxmlElementGetAttr()
- mxmlElementSetAttr()
- mxmlElementSetAttrf()
@@ -2334,6 +2358,30 @@ width="80%">
Returns
Nothing.
+
+
+Description
+Delete an attribute.
+Syntax
+ void
+
mxmlElementDeleteAttr( mxml_node_t *
+ node, const char * name);
+Arguments
+
+
+Name | Description |
+
+node | Element |
+name | Attribute name |
+
+
+Returns
+Nothing.
+
Description
@@ -2383,7 +2431,7 @@ width="80%">
Nothing.
-
@@ -2726,7 +2774,7 @@ width="80%">
First node or NULL if the string has errors.
-
+
Mini-XML 2.3 mxmlNewCDATA()
Description
@@ -2753,7 +2801,7 @@ width="80%">
New node
-
+
Mini-XML 2.1 mxmlNewCustom()
Description
@@ -2936,7 +2984,7 @@ width="80%">
New node
-
+
Mini-XML 2.3 mxmlNewXML()
Description
@@ -2959,7 +3007,7 @@ width="80%">
New ?xml node
-
+
Mini-XML 2.3 mxmlRelease()
Description
@@ -3003,7 +3051,7 @@ width="80%">
Nothing.
-
+
Mini-XML 2.3 mxmlRetain()
Description
@@ -3024,7 +3072,7 @@ width="80%">
New reference count
-
+
Mini-XML 2.3 mxmlSAXLoadFd()
Description
@@ -3063,7 +3111,7 @@ width="80%">
First node or NULL if the file could not be read.
-
+
Mini-XML 2.3 mxmlSAXLoadFile()
Description
@@ -3102,7 +3150,7 @@ width="80%">
First node or NULL if the file could not be read.
-
+
Mini-XML 2.3 mxmlSAXLoadString()
Description
@@ -3259,7 +3307,7 @@ width="80%">
Size of string
-
+
Mini-XML 2.3 mxmlSetCDATA()
Description
@@ -3283,7 +3331,7 @@ width="80%">
0 on success, -1 on failure
-
+
Mini-XML 2.1 mxmlSetCustom()
Description
@@ -3494,7 +3542,7 @@ width="80%">
0 on success, -1 on failure
-
+
Mini-XML 2.3 mxmlSetWrapMargin()
Description
diff --git a/doc/relnotes.html b/doc/relnotes.html
index 594dfaf..b251e1a 100644
--- a/doc/relnotes.html
+++ b/doc/relnotes.html
@@ -9,6 +9,11 @@ hspace="10" width="100" height="100" alt="B">Release Notes
+ - Fixed shared library build problems on HP-UX and Mac OS X.
+
+ - The mxmldoc program did not output argument descriptions
+ for functions properly.
+
- All global settings (custom, error, and entity callbacks
and the wrap margin) are now managed separately for each
thread.
diff --git a/www/docfiles/advanced.html b/www/docfiles/advanced.html
index ddb0725..cb5712a 100644
--- a/www/docfiles/advanced.html
+++ b/www/docfiles/advanced.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
diff --git a/www/docfiles/basics.html b/www/docfiles/basics.html
index 16860b0..f2dce93 100644
--- a/www/docfiles/basics.html
+++ b/www/docfiles/basics.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
diff --git a/www/docfiles/index.html b/www/docfiles/index.html
index c6e4550..3d7d644 100644
--- a/www/docfiles/index.html
+++ b/www/docfiles/index.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
@@ -91,9 +91,10 @@ A { text-decoration: none }
- mxmlLoadFd()
- mxmlLoadFile()
- mxmlLoadString()
-- mxmlNewCDATA()
-- mxmlNewCustom()
+- mxmlNewCDATA()
+- mxmlNewCustom()
- mxmlNewElement()
- mxmlNewInteger()
- mxmlNewOpaque()
- mxmlNewReal()
- mxmlNewText()
- mxmlNewTextf()
-- mxmlNewXML()
-- mxmlRelease()
+- mxmlNewXML()
+- mxmlRelease()
- mxmlRemove()
-- mxmlRetain()
-- mxmlSAXLoadFd()
-- mxmlSAXLoadFile()
-- mxmlSAXLoadString()
+- mxmlRetain()
+- mxmlSAXLoadFd()
+- mxmlSAXLoadFile()
+- mxmlSAXLoadString()
- mxmlSaveAllocString()
- mxmlSaveFd()
- mxmlSaveFile()
- mxmlSaveString()
-- mxmlSetCDATA()
-- mxmlSetCustom()
+- mxmlSetCDATA()
+- mxmlSetCustom()
- mxmlSetCustomHandlers()
- mxmlSetElement()
@@ -140,7 +141,7 @@ mxmlEntityRemoveCallback()
- mxmlSetReal()
- mxmlSetText()
- mxmlSetTextf()
-- mxmlSetWrapMargin()
+- mxmlSetWrapMargin()
- mxmlWalkNext()
- mxmlWalkPrev()
diff --git a/www/docfiles/install.html b/www/docfiles/install.html
index abab826..f7b3b39 100644
--- a/www/docfiles/install.html
+++ b/www/docfiles/install.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
diff --git a/www/docfiles/intro.html b/www/docfiles/intro.html
index 4dba03e..a129dbf 100644
--- a/www/docfiles/intro.html
+++ b/www/docfiles/intro.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
@@ -28,7 +28,7 @@ A { text-decoration: none }
Introduction
-This programmers manual describes Mini-XML version 2.3, a small XML
+
This programmers manual describes Mini-XML version 2.4, a small XML
parsing library that you can use to read and write XML data files in
your C and C++ applications.
Mini-XML was initially developed for the
diff --git a/www/docfiles/license.html b/www/docfiles/license.html
index bfe30f6..afb8733 100644
--- a/www/docfiles/license.html
+++ b/www/docfiles/license.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
diff --git a/www/docfiles/mxmldoc.html b/www/docfiles/mxmldoc.html
index d0b8974..4445b39 100644
--- a/www/docfiles/mxmldoc.html
+++ b/www/docfiles/mxmldoc.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
diff --git a/www/docfiles/refapp.html b/www/docfiles/refapp.html
index 2443bf2..0888df1 100644
--- a/www/docfiles/refapp.html
+++ b/www/docfiles/refapp.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
@@ -91,6 +91,9 @@ hspace="10" src="C.gif" width="100">Library Reference
- mxmlAdd()
- mxmlDelete()
+- mxmlElementDeleteAttr()
+
+ Mini-XML 2.4
- mxmlElementGetAttr()
- mxmlElementSetAttr()
- mxmlElementSetAttrf()
@@ -221,6 +224,30 @@ width="80%">
Returns
Nothing.
+
+
+
+ Mini-XML 2.4 mxmlElementDeleteAttr()
+
+Description
+Delete an attribute.
+Syntax
+ void
+
mxmlElementDeleteAttr( mxml_node_t *
+ node, const char * name);
+Arguments
+
+
+Name | Description |
+
+node | Element |
+name | Attribute name |
+
+
+Returns
+Nothing.
+
mxmlElementGetAttr()
Description
@@ -270,7 +297,7 @@ width="80%">
Nothing.
-
+
Mini-XML 2.3 mxmlElementSetAttrf()
@@ -613,7 +640,7 @@ width="80%">
First node or NULL if the string has errors.
-
+
Mini-XML 2.3 mxmlNewCDATA()
Description
@@ -640,7 +667,7 @@ width="80%">
New node
-
+
Mini-XML 2.1 mxmlNewCustom()
Description
@@ -823,7 +850,7 @@ width="80%">
New node
-
+
Mini-XML 2.3 mxmlNewXML()
Description
@@ -846,7 +873,7 @@ width="80%">
New ?xml node
-
+
Mini-XML 2.3 mxmlRelease()
Description
@@ -890,7 +917,7 @@ width="80%">
Nothing.
-
+
Mini-XML 2.3 mxmlRetain()
Description
@@ -911,7 +938,7 @@ width="80%">
New reference count
-
+
Mini-XML 2.3 mxmlSAXLoadFd()
Description
@@ -950,7 +977,7 @@ width="80%">
First node or NULL if the file could not be read.
-
+
Mini-XML 2.3 mxmlSAXLoadFile()
Description
@@ -989,7 +1016,7 @@ width="80%">
First node or NULL if the file could not be read.
-
+
Mini-XML 2.3 mxmlSAXLoadString()
Description
@@ -1146,7 +1173,7 @@ width="80%">
Size of string
-
+
Mini-XML 2.3 mxmlSetCDATA()
Description
@@ -1170,7 +1197,7 @@ width="80%">
0 on success, -1 on failure
-
+
Mini-XML 2.1 mxmlSetCustom()
Description
@@ -1381,7 +1408,7 @@ width="80%">
0 on success, -1 on failure
-
+
Mini-XML 2.3 mxmlSetWrapMargin()
Description
diff --git a/www/docfiles/relnotes.html b/www/docfiles/relnotes.html
index 0cbeba7..77622f0 100644
--- a/www/docfiles/relnotes.html
+++ b/www/docfiles/relnotes.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
@@ -30,7 +30,27 @@ A { text-decoration: none }
Release Notes
-Changes in Mini-XML 2.3
+Changes in Mini-XML 2.4
+
+- Fixed shared library build problems on HP-UX and Mac OS X.
+- The mxmldoc program did not output argument descriptions for
+ functions properly.
+- All global settings (custom, error, and entity callbacks and the
+ wrap margin) are now managed separately for each thread.
+- Added mxmlElementDeleteAttr() function (STR #59)
+- mxmlElementSetAttrf() did not work (STR #57)
+- mxmlLoad*() incorrectly treated declarations as parent elements (STR
+ #56)
+- mxmlLoad*() incorrectly allowed attributes without values (STR #47)
+- Fixed Visual C++ build problems (STR #49)
+- mxmlLoad*() did not return NULL when an element contained an error
+ (STR #46)
+- Added support for the apos character entity (STR #54)
+- Fixed whitespace detection with Unicode characters (STR #48)
+- mxmlWalkNext() and mxmlWalkPrev() did not work correctly when called
+ with a node with no children as the top node (STR #53)
+
+Changes in Mini-XML 2.3
- Added two exceptions to the LGPL to support static linking of
applications against Mini-XML
@@ -68,12 +88,12 @@ hspace="10" src="B.gif" width="100">Release Notes
- mxmlLoad*() did not treat custom data as opaque, so whitespace
characters would be lost
-Changes in Mini-XML 2.2.2
+Changes in Mini-XML 2.2.2
- mxmlLoad*() did not treat custom data as opaque, so whitespace
characters would be lost.
-Changes in Mini-XML 2.2.1
+Changes in Mini-XML 2.2.1
- mxmlLoadFd(), mxmlLoadFile(), and mxmlLoadString() now correctly
return NULL on error (STR #21)
@@ -84,7 +104,7 @@ hspace="10" src="B.gif" width="100">Release Notes
proper permissions on UNIX/Linux/OSX.
- Fixed a MingW/Cygwin compilation problem (STR #18)
-Changes in Mini-XML 2.2
+Changes in Mini-XML 2.2
- Added shared library support (STR #17)
- mxmlLoad*() now returns an error when an XML stream contains illegal
@@ -98,7 +118,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added checking for invalid comment termination ("--->" is not
allowed)
-Changes in Mini-XML 2.1
+Changes in Mini-XML 2.1
- Added support for custom data nodes (STR #6)
- Now treat UTF-8 sequences which are longer than necessary as an
@@ -109,7 +129,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added mxmlLoadFd() and mxmlSaveFd() functions.
- Fixed multi-word UTF-16 handling.
-Changes in Mini-XML 2.0
+Changes in Mini-XML 2.0
- New programmers manual.
- Added Visual C++ project files for Microsoft Windows users.
@@ -142,7 +162,7 @@ hspace="10" src="B.gif" width="100">Release Notes
destination path and install path. This caused problems when building
and installing with MingW.
-Changes in Mini-XML 1.3
+Changes in Mini-XML 1.3
- Fixes for mxmldoc.
- Added support for reading standard HTML entity names.
@@ -158,7 +178,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- The load and save functions now properly handle quoted element and
attribute name strings properly, e.g. for !DOCTYPE declarations.
-Changes in Mini-XML 1.2
+Changes in Mini-XML 1.2
- Added new "set" methods to set the value of a node.
- Added new formatted text methods mxmlNewTextf() and mxmlSetTextf()
@@ -171,13 +191,13 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added --with/without-snprintf configure option to control the
snprintf() and vsnprintf() function checks.
-Changes in Mini-XML 1.1.2
+Changes in Mini-XML 1.1.2
- The mxml(3) man page wasn't updated for the string functions.
- mxmlSaveString() returned the wrong number of characters.
- mxml_add_char() updated the buffer pointer in the wrong place.
-Changes in Mini-XML 1.1.1
+Changes in Mini-XML 1.1.1
- The private mxml_add_ch() function did not update the
start-of-buffer pointer which could cause a crash when using
@@ -188,7 +208,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added a mxmlSaveAllocString() convenience function for saving an XML
node tree to an allocated string.
-Changes in Mini-XML 1.1
+Changes in Mini-XML 1.1
- The mxmlLoadFile() function now uses dynamically allocated string
buffers for element names, attribute names, and attribute values.
@@ -200,7 +220,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Add emulation of strdup() if the local platform does not provide the
function.
-Changes in Mini-XML 1.0
+Changes in Mini-XML 1.0
- The mxmldoc program now handles function arguments, structures,
unions, enumerations, classes, and typedefs properly.
@@ -208,7 +228,7 @@ hspace="10" src="B.gif" width="100">Release Notes
code.
- Added man pages and packaging files.
-Changes in Mini-XML 0.93
+Changes in Mini-XML 0.93
- New mxmldoc example program that is also used to create and update
code documentation using XML and produce HTML reference pages.
@@ -233,15 +253,15 @@ hspace="10" src="B.gif" width="100">Release Notes
- mxmlSaveFile() now supports a whitespace callback to provide more
human-readable XML output under program control.
-Changes in Mini-XML 0.92
+Changes in Mini-XML 0.92
- mxmlSaveFile() didn't return a value on success.
-Changes in Mini-XML 0.91
+Changes in Mini-XML 0.91
- mxmlWalkNext() would go into an infinite loop.
-Changes in Mini-XML 0.9
+Changes in Mini-XML 0.9
diff --git a/www/docfiles/schema.html b/www/docfiles/schema.html
index d57c6cf..4af6169 100644
--- a/www/docfiles/schema.html
+++ b/www/docfiles/schema.html
@@ -1,7 +1,7 @@
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
diff --git a/www/documentation.php b/www/documentation.php
index a8b2735..0903e3f 100644
--- a/www/documentation.php
+++ b/www/documentation.php
@@ -240,6 +240,9 @@ multiple files with comments on-line:
+You can also get a printed version of the Mini-XML documentation on
+Lulu.com.
+
-Mini-XML Programmers Manual, Version 2.3
+Mini-XML Programmers Manual, Version 2.4
@@ -87,9 +87,10 @@ A { text-decoration: none }
@@ -177,7 +178,7 @@ A { text-decoration: none }
Introduction
-This programmers manual describes Mini-XML version 2.3, a small XML
+
This programmers manual describes Mini-XML version 2.4, a small XML
parsing library that you can use to read and write XML data files in
your C and C++ applications.
Mini-XML was initially developed for the
@@ -1925,7 +1926,27 @@ hspace="10" src="A.gif" width="100">Mini-XML License
Release Notes
-Changes in Mini-XML 2.3
+Changes in Mini-XML 2.4
+
+- Fixed shared library build problems on HP-UX and Mac OS X.
+- The mxmldoc program did not output argument descriptions for
+ functions properly.
+- All global settings (custom, error, and entity callbacks and the
+ wrap margin) are now managed separately for each thread.
+- Added mxmlElementDeleteAttr() function (STR #59)
+- mxmlElementSetAttrf() did not work (STR #57)
+- mxmlLoad*() incorrectly treated declarations as parent elements (STR
+ #56)
+- mxmlLoad*() incorrectly allowed attributes without values (STR #47)
+- Fixed Visual C++ build problems (STR #49)
+- mxmlLoad*() did not return NULL when an element contained an error
+ (STR #46)
+- Added support for the apos character entity (STR #54)
+- Fixed whitespace detection with Unicode characters (STR #48)
+- mxmlWalkNext() and mxmlWalkPrev() did not work correctly when called
+ with a node with no children as the top node (STR #53)
+
+Changes in Mini-XML 2.3
- Added two exceptions to the LGPL to support static linking of
applications against Mini-XML
@@ -1963,12 +1984,12 @@ hspace="10" src="B.gif" width="100">Release Notes
- mxmlLoad*() did not treat custom data as opaque, so whitespace
characters would be lost
-Changes in Mini-XML 2.2.2
+Changes in Mini-XML 2.2.2
- mxmlLoad*() did not treat custom data as opaque, so whitespace
characters would be lost.
-Changes in Mini-XML 2.2.1
+Changes in Mini-XML 2.2.1
- mxmlLoadFd(), mxmlLoadFile(), and mxmlLoadString() now correctly
return NULL on error (STR #21)
@@ -1979,7 +2000,7 @@ hspace="10" src="B.gif" width="100">Release Notes
proper permissions on UNIX/Linux/OSX.
- Fixed a MingW/Cygwin compilation problem (STR #18)
-Changes in Mini-XML 2.2
+Changes in Mini-XML 2.2
- Added shared library support (STR #17)
- mxmlLoad*() now returns an error when an XML stream contains illegal
@@ -1993,7 +2014,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added checking for invalid comment termination ("--->" is not
allowed)
-Changes in Mini-XML 2.1
+Changes in Mini-XML 2.1
- Added support for custom data nodes (STR #6)
- Now treat UTF-8 sequences which are longer than necessary as an
@@ -2004,7 +2025,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added mxmlLoadFd() and mxmlSaveFd() functions.
- Fixed multi-word UTF-16 handling.
-Changes in Mini-XML 2.0
+Changes in Mini-XML 2.0
- New programmers manual.
- Added Visual C++ project files for Microsoft Windows users.
@@ -2037,7 +2058,7 @@ hspace="10" src="B.gif" width="100">Release Notes
destination path and install path. This caused problems when building
and installing with MingW.
-Changes in Mini-XML 1.3
+Changes in Mini-XML 1.3
- Fixes for mxmldoc.
- Added support for reading standard HTML entity names.
@@ -2053,7 +2074,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- The load and save functions now properly handle quoted element and
attribute name strings properly, e.g. for !DOCTYPE declarations.
-Changes in Mini-XML 1.2
+Changes in Mini-XML 1.2
- Added new "set" methods to set the value of a node.
- Added new formatted text methods mxmlNewTextf() and mxmlSetTextf()
@@ -2066,13 +2087,13 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added --with/without-snprintf configure option to control the
snprintf() and vsnprintf() function checks.
-Changes in Mini-XML 1.1.2
+Changes in Mini-XML 1.1.2
- The mxml(3) man page wasn't updated for the string functions.
- mxmlSaveString() returned the wrong number of characters.
- mxml_add_char() updated the buffer pointer in the wrong place.
-Changes in Mini-XML 1.1.1
+Changes in Mini-XML 1.1.1
- The private mxml_add_ch() function did not update the
start-of-buffer pointer which could cause a crash when using
@@ -2083,7 +2104,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Added a mxmlSaveAllocString() convenience function for saving an XML
node tree to an allocated string.
-Changes in Mini-XML 1.1
+Changes in Mini-XML 1.1
- The mxmlLoadFile() function now uses dynamically allocated string
buffers for element names, attribute names, and attribute values.
@@ -2095,7 +2116,7 @@ hspace="10" src="B.gif" width="100">Release Notes
- Add emulation of strdup() if the local platform does not provide the
function.
-Changes in Mini-XML 1.0
+Changes in Mini-XML 1.0
- The mxmldoc program now handles function arguments, structures,
unions, enumerations, classes, and typedefs properly.
@@ -2103,7 +2124,7 @@ hspace="10" src="B.gif" width="100">Release Notes
code.
- Added man pages and packaging files.
-Changes in Mini-XML 0.93
+Changes in Mini-XML 0.93
- New mxmldoc example program that is also used to create and update
code documentation using XML and produce HTML reference pages.
@@ -2128,15 +2149,15 @@ hspace="10" src="B.gif" width="100">Release Notes
- mxmlSaveFile() now supports a whitespace callback to provide more
human-readable XML output under program control.
-Changes in Mini-XML 0.92
+Changes in Mini-XML 0.92
- mxmlSaveFile() didn't return a value on success.
-Changes in Mini-XML 0.91
+Changes in Mini-XML 0.91
- mxmlWalkNext() would go into an infinite loop.
-Changes in Mini-XML 0.9
+Changes in Mini-XML 0.9
@@ -2204,6 +2225,9 @@ hspace="10" src="C.gif" width="100">Library Reference
- mxmlAdd()
- mxmlDelete()
+- mxmlElementDeleteAttr()
+
+ Mini-XML 2.4
- mxmlElementGetAttr()
- mxmlElementSetAttr()
- mxmlElementSetAttrf()
@@ -2334,6 +2358,30 @@ width="80%">
Returns
Nothing.
+
+
+
+ Mini-XML 2.4 mxmlElementDeleteAttr()
+
+Description
+Delete an attribute.
+Syntax
+ void
+
mxmlElementDeleteAttr( mxml_node_t *
+ node, const char * name);
+Arguments
+
+
+Name | Description |
+
+node | Element |
+name | Attribute name |
+
+
+Returns
+Nothing.
+
mxmlElementGetAttr()
Description
@@ -2383,7 +2431,7 @@ width="80%">
Nothing.
-
+
Mini-XML 2.3 mxmlElementSetAttrf()
@@ -2726,7 +2774,7 @@ width="80%">
First node or NULL if the string has errors.
-
+
Mini-XML 2.3 mxmlNewCDATA()
Description
@@ -2753,7 +2801,7 @@ width="80%">
New node
-
+
Mini-XML 2.1 mxmlNewCustom()
Description
@@ -2936,7 +2984,7 @@ width="80%">
New node
-
+
Mini-XML 2.3 mxmlNewXML()
Description
@@ -2959,7 +3007,7 @@ width="80%">
New ?xml node
-
+
Mini-XML 2.3 mxmlRelease()
Description
@@ -3003,7 +3051,7 @@ width="80%">
Nothing.
-
+
Mini-XML 2.3 mxmlRetain()
Description
@@ -3024,7 +3072,7 @@ width="80%">
New reference count
-
+
Mini-XML 2.3 mxmlSAXLoadFd()
Description
@@ -3063,7 +3111,7 @@ width="80%">
First node or NULL if the file could not be read.
-
+
Mini-XML 2.3 mxmlSAXLoadFile()
Description
@@ -3102,7 +3150,7 @@ width="80%">
First node or NULL if the file could not be read.
-
+
Mini-XML 2.3 mxmlSAXLoadString()
Description
@@ -3259,7 +3307,7 @@ width="80%">
Size of string
-
+
Mini-XML 2.3 mxmlSetCDATA()
Description
@@ -3283,7 +3331,7 @@ width="80%">
0 on success, -1 on failure
-
+
Mini-XML 2.1 mxmlSetCustom()
Description
@@ -3494,7 +3542,7 @@ width="80%">
0 on success, -1 on failure
-
+
Mini-XML 2.3 mxmlSetWrapMargin()
Description
diff --git a/www/str.php b/www/str.php
index e934555..f839e25 100644
--- a/www/str.php
+++ b/www/str.php
@@ -49,8 +49,9 @@ $subsystems = array(
$versions = array(
"Trunk",
- "+2.4",
- "+2.3.1",
+ "+2.5",
+ "+2.4.1",
+ "2.4",
"2.3",
"2.2.2",
"2.2.1",