Commit Graph

41 Commits

Author SHA1 Message Date
Michael R Sweet
2c62878254
Normalize MXML_DESCEND_ values.
Normalize MXML_ADD_ values.

Drop MXML_ADD_TO_PARENT.

Move MXML_TAB to mxml-private.h
2024-03-06 20:03:48 -05:00
Michael R Sweet
4e92848ae2
Add mxmlLoadIO/mxmlSaveIO functions, merge everything under the new roof
(Issue #98)
2024-03-06 14:45:10 -05:00
Michael R Sweet
0cd995c772
Add separate node types for comments, CDATA, directives, and declarations (Issue #250) 2024-03-02 18:47:57 -05:00
Michael R Sweet
f9b9a40494
Start working on Mini-XML v4.0. 2024-02-27 15:04:27 -05:00
Michael R Sweet
e058082021
Clean up usage of free (Issue #276) 2021-10-26 14:50:25 -04:00
Michael R Sweet
f166ad1977
License change to Apache 2.0 w/exceptions for GPL2/LGPL2 software. 2019-01-04 20:44:51 -05:00
Michael R Sweet
ea6778390a
Bump version to 3.0.
Move all of the private structure definitions to mxml-private.h.
2019-01-04 20:02:48 -05:00
Michael R Sweet
e0db328ec8
Don't add ]] to the CDATA node (Issue #216) 2018-07-02 18:23:04 -04:00
Michael Sweet
bcfa6ef518 Update/fix documentation.
Add mxmlNewOpaquef and mxmlSetOpaquef functions.

Fix discussion writing code to look for opaque strings.

Fix dependencies for documentation generation.
2017-04-24 10:42:03 -04:00
Michael Sweet
1272c3dfdb Fix memory leak for mxmlDelete (Issue #183) 2017-03-29 18:18:22 -04:00
Michael Sweet
89a9742c0e Bump version to 2.11.
Update copyrights and web site addresses.

New logo image following msweet.org template.
2017-03-22 14:51:16 -04:00
Michael R Sweet
d8c0ba9007 mxmlDelete used a recursive algorithm which could require large amounts of
stack space depending on the file (Bug #549)

Bump version to 2.10.
2016-06-11 20:51:49 +00:00
Michael R Sweet
4351cf060c Prep for 2.8 release... 2014-01-04 21:50:06 +00:00
Michael R Sweet
6af02aaf9d Avoid a double-free situation when using the SAX load method.
Add missing contents.
2011-01-22 01:02:05 +00:00
Michael R Sweet
aaefc5c07c Rename mxmlFindValue to mxmlFindPath.
Rename mxmlGetPrevious to mxmlGetPrevSibling.

Rename mxmlGetNext to mxmlGetNextSibling.

Update documentation.
2011-01-03 02:03:29 +00:00
Michael R Sweet
97ca6dc424 Updated the source headers to reference the Mini-XML license and its exceptions
to the LGPL2 (STR #108)
2010-09-19 05:26:46 +00:00
Michael R Sweet
046d57d917 Add encoding="utf-8" to the ?xml PD. 2008-10-26 18:28:05 +00:00
Michael R Sweet
bf73da6782 Save work on documentation.
Add SAX load APIs.

Add man page output for mxmldoc.

Add types for various callback functions.
2007-04-23 21:48:03 +00:00
Michael R Sweet
0f8052e766 Add mxmlNewXML() function and use it.
More updates to the manual.
2007-04-19 21:12:08 +00:00
Michael R Sweet
4636114c5b Really Mini-XML 2.3, update documentation. 2007-04-18 01:55:03 +00:00
Michael R Sweet
cb7c6c2311 Add user_data and ref_count members to mxml_node_t structure.
Add mxmlRelease() and mxmlRetain() for reference-counted node management.

Add mxmlSetWrapMargin() to control wrapping of XML output.
2007-04-18 01:08:58 +00:00
Michael R Sweet
a5ea819842 Bump version to 2.3.
Add @since ...@ comments.

Fix parsing of @...@ comments.

Add comments to end of each list item.

Use "-Os -g" as the default optimization with GCC.

Change string functions to use _mxml prefix instead.
2005-10-13 18:27:00 +00:00
Michael R Sweet
cc95be7bed Add mxmlNewCDATA() and mxmlSetCDATA() functions.
Bump version to 2.2.3.

Update docos.
2005-08-05 14:17:19 +00:00
Michael R Sweet
19b8ed648f Add MXML_IGNORE and MXML_IGNORE_CB to allow whitespace to be
ignored in element-only XML files.
2005-06-07 23:43:45 +00:00
Michael R Sweet
35a7797e2c mxmlNewInteger(), mxmlNewOpaque(), mxmlNewReal(), mxmlNewText(),
and mxmlNewTextf() incorrectly required a parent node (STR #22)
2005-05-14 12:34:29 +00:00
Michael R Sweet
886a707ad7 Update copyright to 2005. 2005-01-29 07:21:44 +00:00
Michael R Sweet
f5971df74b Added support for CDATA (STR #14, STR #15)
Updated comment and processing instruction handling - no entity
support per XML specification.

Added checking for invalid comment termination ("--->" is not
allowed)

Fixed test program to work with new ?xml handling.
2005-01-29 07:19:38 +00:00
Michael R Sweet
0591ee2e19 Added support for custom data nodes (STR #6) 2004-10-28 02:58:01 +00:00
Michael R Sweet
537afc37da More documentation fun.
Move version definition to configure script.

Add XML schema for the mxmldoc output.
2004-05-02 16:04:40 +00:00
Michael R Sweet
e28ebd001c Copyright updates. 2004-04-06 01:47:20 +00:00
Michael R Sweet
4dbac7157e Fix enum handling. 2003-12-04 04:55:57 +00:00
Michael R Sweet
466072f832 More debug stuff.
Fix sort_node() bug in mxmldoc.
2003-12-03 03:59:04 +00:00
Michael R Sweet
17200e8cfe Move "set" methods in a separate file.
Add standard callback methods in a separate file.

Fix some bugs in mxmldoc...
2003-09-28 21:09:04 +00:00
Michael R Sweet
337baeddb5 New "set" and formatted string methods.
Prep for new "standard" opaque, integer, etc. callbacks.

Add new vsnprintf check.

Drop old string function checks for functions we don't actually use.
2003-09-28 12:44:39 +00:00
Michael R Sweet
6531fd7d8f Add --with-ansi configure option to avoid using non-ANSI strdup() function. 2003-07-27 23:11:40 +00:00
Michael R Sweet
54428c284f Add strdup emulation as needed.
Bump version to 1.1.
2003-07-20 13:41:17 +00:00
Michael R Sweet
bcc99b153a Fix some more documentation generator bugs.
Add detailed docos to the file.
2003-06-14 23:56:47 +00:00
Michael R Sweet
a9403b21b4 Working mxmldoc core. 2003-06-05 03:06:20 +00:00
Michael R Sweet
8cfa3005e5 Bug fixes in mxmlWalkNext().
Break whitespace processing into separate function and add "where" values
for before/after the open/close tags.

Major progress on mxmldoc example program.

Update test program to use new whitespace callback.

Clean up header file.

Add rating link to home page.
2003-06-04 21:19:00 +00:00
Michael R Sweet
f830ffd6a5 Add mxmlAdd() and mxmlRemove() functions.
Documentation updates.

General cleanup.
2003-06-04 17:37:23 +00:00
Michael R Sweet
7a51d3c414 Initial revision 2003-06-03 19:46:29 +00:00