mirror of
https://github.com/michaelrsweet/mxml.git
synced 2025-02-20 17:35:30 +00:00
Fix bugs reported by Robert.
Update man page and packaging files.
This commit is contained in:
parent
ae90b39e03
commit
60fefabd53
13
CHANGES
13
CHANGES
@ -1,6 +1,17 @@
|
||||
README - 07/22/2003
|
||||
README - 07/23/2003
|
||||
-------------------
|
||||
|
||||
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
|
||||
|
||||
- The private mxml_add_ch() function did not update the
|
||||
|
5
README
5
README
@ -1,11 +1,11 @@
|
||||
README - 07/22/2003
|
||||
README - 07/23/2003
|
||||
-------------------
|
||||
|
||||
|
||||
INTRODUCTION
|
||||
|
||||
This README file describes the Mini-XML library version
|
||||
1.1.1.
|
||||
1.1.2.
|
||||
|
||||
Mini-XML is a small XML parsing library that you can use to
|
||||
read XML and XML-like data files in your application without
|
||||
@ -16,6 +16,7 @@ INTRODUCTION
|
||||
Mini-XML provides the following functionality:
|
||||
|
||||
- Reading and writing of UTF-8 encoded XML files.
|
||||
- Reading and writing of UTF-8 encoded XML strings.
|
||||
- Data is stored in a linked-list tree structure,
|
||||
preserving the XML data hierarchy.
|
||||
- Supports arbitrary element names, attributes, and
|
||||
|
@ -16,11 +16,11 @@ href="../index.html">Back to Home Page</a> ]</p>
|
||||
|
||||
<h1 class="title" align="center">Mini-XML Home Page</h1>
|
||||
|
||||
<p class="title" align="center">Current Release: v1.1.1, July 22, 2003<br/>
|
||||
<p class="title" align="center">Current Release: v1.1.2, July 23, 2003<br/>
|
||||
[ <a
|
||||
href="mxml-1.1.1.tar.gz">Download Source (.tar.gz 70k)</a>
|
||||
href="mxml-1.1.2.tar.gz">Download Source (.tar.gz 70k)</a>
|
||||
| <a
|
||||
href="mxml-1.1.1-1.i386.rpm">Download Linux RPM (.i386.rpm 64k)</a>
|
||||
href="mxml-1.1.2-1.i386.rpm">Download Linux RPM (.i386.rpm 64k)</a>
|
||||
| <a href="CHANGES">Change Log</a> | <a
|
||||
href="documentation.html">Documentation</a> | <a
|
||||
href="http://freshmeat.net/projects/mxml">Rate/Make Comments</A> ]</p>
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* "$Id: mxml-file.c,v 1.17 2003/07/22 10:29:19 mike Exp $"
|
||||
* "$Id: mxml-file.c,v 1.18 2003/07/23 14:47:17 mike Exp $"
|
||||
*
|
||||
* File loading code for mini-XML, a small XML-like file parsing library.
|
||||
*
|
||||
@ -248,7 +248,7 @@ mxmlSaveString(mxml_node_t *node, /* I - Node to write */
|
||||
* Return the number of characters...
|
||||
*/
|
||||
|
||||
return (ptr[1] - ptr[0]);
|
||||
return (ptr[0] - buffer);
|
||||
}
|
||||
|
||||
|
||||
@ -286,8 +286,8 @@ mxml_add_char(int ch, /* I - Character to add */
|
||||
return (-1);
|
||||
}
|
||||
|
||||
*buffer = newbuffer;
|
||||
*bufptr = newbuffer + (*bufptr - *buffer);
|
||||
*buffer = newbuffer;
|
||||
}
|
||||
|
||||
*(*bufptr)++ = ch;
|
||||
@ -1432,5 +1432,5 @@ mxml_write_ws(mxml_node_t *node, /* I - Current node */
|
||||
|
||||
|
||||
/*
|
||||
* End of "$Id: mxml-file.c,v 1.17 2003/07/22 10:29:19 mike Exp $".
|
||||
* End of "$Id: mxml-file.c,v 1.18 2003/07/23 14:47:17 mike Exp $".
|
||||
*/
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: mxml.list.in,v 1.6 2003/07/21 12:42:37 mike Exp $"
|
||||
# "$Id: mxml.list.in,v 1.7 2003/07/23 14:47:17 mike Exp $"
|
||||
#
|
||||
# EPM software list file for mini-XML, a small XML-like file parsing library.
|
||||
#
|
||||
@ -32,7 +32,7 @@ $srcdir=@srcdir@
|
||||
%vendor Michael Sweet
|
||||
%license ${srcdir}/COPYING
|
||||
%readme ${srcdir}/README
|
||||
%version 1.1.1
|
||||
%version 1.1.2
|
||||
|
||||
%description <<EOF
|
||||
Mini-XML is a small XML parsing library that you can use to read
|
||||
@ -41,6 +41,7 @@ requiring large non-standard libraries. Mini-XML provides the
|
||||
following functionality:
|
||||
|
||||
- Reading and writing of UTF-8 encoded XML files.
|
||||
- Reading and writing of UTF-8 encoded XML strings.
|
||||
- Data is stored in a linked-list tree structure, preserving
|
||||
the XML data hierarchy.
|
||||
- Supports arbitrary element names, attributes, and
|
||||
@ -88,5 +89,5 @@ f 0444 root sys ${mandir}/cat3/mxml.$CAT3EXT $srcdir/mxml.$CAT3EXT
|
||||
f 0444 root sys ${mandir}/man3/mxml.$MAN3EXT $srcdir/mxml.man
|
||||
|
||||
#
|
||||
# End of "$Id: mxml.list.in,v 1.6 2003/07/21 12:42:37 mike Exp $".
|
||||
# End of "$Id: mxml.list.in,v 1.7 2003/07/23 14:47:17 mike Exp $".
|
||||
#
|
||||
|
32
mxml.man
32
mxml.man
@ -1,5 +1,5 @@
|
||||
.\"
|
||||
.\" "$Id: mxml.man,v 1.1 2003/06/15 01:22:37 mike Exp $"
|
||||
.\" "$Id: mxml.man,v 1.2 2003/07/23 14:47:17 mike Exp $"
|
||||
.\"
|
||||
.\" mxml man page for mini-XML, a small XML-like file parsing library.
|
||||
.\"
|
||||
@ -15,7 +15,7 @@
|
||||
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
.\" GNU General Public License for more details.
|
||||
.\"
|
||||
.TH mxml 3 "mini-XML" "14 June 2003" "Michael Sweet"
|
||||
.TH mxml 3 "mini-XML" "23 July 2003" "Michael Sweet"
|
||||
.SH NAME
|
||||
mxml \- mini-xml library
|
||||
.SH INCLUDE FILE
|
||||
@ -33,6 +33,8 @@ Mini-XML provides the following functionality:
|
||||
.IP \(bu 4
|
||||
Reading and writing of UTF-8 encoded XML files.
|
||||
.IP \(bu 4
|
||||
Reading and writing of UTF-8 encoded XML strings.
|
||||
.IP \(bu 4
|
||||
Data is stored in a linked-list tree structure,
|
||||
preserving the XML data hierarchy.
|
||||
.IP \(bu 4
|
||||
@ -93,8 +95,28 @@ function:
|
||||
fclose(fp);
|
||||
.fi
|
||||
.PP
|
||||
You can find a named element/node using the
|
||||
"mxmlFindElement()" function:
|
||||
The "mxmlLoadString()", "mxmlSaveAllocString()", and
|
||||
"mxmlSaveString()" functions load XML node trees from and save
|
||||
XML node trees to strings:
|
||||
.nf
|
||||
|
||||
char buffer[8192];
|
||||
char *ptr;
|
||||
mxml_node_t *tree;
|
||||
|
||||
...
|
||||
tree = mxmlLoadString(NULL, buffer, MXML_NO_CALLBACK);
|
||||
|
||||
...
|
||||
mxmlSaveString(tree, buffer, sizeof(buffer),
|
||||
MXML_NO_CALLBACK);
|
||||
|
||||
...
|
||||
ptr = mxmlSaveAllocString(tree, MXML_NO_CALLBACK);
|
||||
.fi
|
||||
.PP
|
||||
You can find a named element/node using the "mxmlFindElement()"
|
||||
function:
|
||||
.nf
|
||||
|
||||
mxml_node_t *node = mxmlFindElement(tree, tree, "name",
|
||||
@ -155,5 +177,5 @@ mxmldoc(1), http://www.easysw.com/~mike/mxml/
|
||||
.SH COPYRIGHT
|
||||
Copyright 2003 by Michael Sweet.
|
||||
.\"
|
||||
.\" End of "$Id: mxml.man,v 1.1 2003/06/15 01:22:37 mike Exp $".
|
||||
.\" End of "$Id: mxml.man,v 1.2 2003/07/23 14:47:17 mike Exp $".
|
||||
.\"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# "$Id: mxml.spec,v 1.5 2003/07/21 12:42:38 mike Exp $"
|
||||
# "$Id: mxml.spec,v 1.6 2003/07/23 14:47:17 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: 1.1.1
|
||||
Version: 1.1.2
|
||||
Release: 1
|
||||
Copyright: GPL
|
||||
Group: Development/Libraries
|
||||
@ -37,6 +37,7 @@ requiring large non-standard libraries. Mini-XML provides the
|
||||
following functionality:
|
||||
|
||||
- Reading and writing of UTF-8 encoded XML files.
|
||||
- Reading and writing of UTF-8 encoded XML strings.
|
||||
- Data is stored in a linked-list tree structure, preserving
|
||||
the XML data hierarchy.
|
||||
- Supports arbitrary element names, attributes, and
|
||||
@ -94,5 +95,5 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/share/man/man3/*
|
||||
|
||||
#
|
||||
# End of "$Id: mxml.spec,v 1.5 2003/07/21 12:42:38 mike Exp $".
|
||||
# End of "$Id: mxml.spec,v 1.6 2003/07/23 14:47:17 mike Exp $".
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user