Commit Graph

47 Commits

Author SHA1 Message Date
Michael R Sweet
735989840c Save work on adding @private@ comment support...
mxml-file.c:
    - Change comment from @private to @private@.

mxmldoc.c:
    - scan_file(): Changes to support @private@.
    - update_comment(): Remove node if the comment contains @private@.
2005-11-29 20:43:30 +00:00
Michael R Sweet
74e7d69032 Fix memory leak in mxmlLoad*() functions (STR #27)
Fix default implementation of mxml_error() to properly format the
error message.
2005-08-16 14:46:18 +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
e0262e0099 Fix segfault in mxmlLoad*() with invalid XML. 2005-05-30 13:00:54 +00:00
Michael R Sweet
63cd5de2a0 Fix bug in custom data with whitespace.
Prep for 2.2.2 release.
2005-05-19 14:56:05 +00:00
Michael R Sweet
ad02a0255f Fix STR #21: load methods didn't return NULL on error.
Update docos for 2.2.1.
2005-05-18 01:45:20 +00:00
Michael R Sweet
6712bf6914 Update for 2.2 release. 2005-02-26 05:27:25 +00:00
Michael R Sweet
8fc90a57d6 CHANGES:
- Changelog update.

mxml-file.c:
    - Check for invalid control chars (STR #10)
    - Don't allow elements to contain duplicate attributes (STR
      #16)

textmxml.c:
    - Add whitespace handling for CDATA elements.

test.xml:
    - Add CDATA and comment data to test file.
2005-01-29 17:03:33 +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
c0878b3f9a Treat UTF-8 sequences that are longer than needed as an error (STR #4) 2004-10-28 01:07:00 +00:00
Michael R Sweet
3625039424 Fixed entity number support (STR #8)
Fixed mxmlLoadString() bug with UTF-8 (STR #7)

Fixed entity lookup bug (STR #5)
2004-10-26 21:04:32 +00:00
Michael R Sweet
3cc3f8a63d Add new mxmlLoadFd() and mxmlSaveFd() functions. 2004-07-11 13:14:07 +00:00
Michael R Sweet
195aef09fd VC++.NET fixes. 2004-06-25 18:52:34 +00:00
Michael R Sweet
0fd3bd7f33 Optimizations and bug fixes from STR #2:
- mxmlIndexNew() sort algorithm update to eliminate unnecessary
      right-hand recursion.
    - Combine printf() and puts() calls in mxmldoc to reduce the number
      of calls and code size.
    - mxmlSaveFile() now writes Unicode chars with fwrite for potential
      speedup and modest size savings.
    - mxmlEntityAddCallback() now returns an integer status so an app
      knows when it was not possible to add an entity callback.
2004-06-01 20:19:34 +00:00
Michael R Sweet
acab636423 UTF-16 input support. 2004-05-16 21:54:47 +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
465d3e7231 Change whitespace callback to return a string. 2004-05-01 15:20:05 +00:00
Michael R Sweet
e28ebd001c Copyright updates. 2004-04-06 01:47:20 +00:00
Michael R Sweet
f08b4a7f7d More character entity fun, along with a reworking of UTF-8 support. 2003-12-21 15:01:15 +00:00
Michael R Sweet
e4491379f8 Tweek mxmldoc.
Add entity support.
2003-12-19 02:56:11 +00:00
Michael R Sweet
9011f087c8 Add first half of entity support and decoding code. 2003-12-18 04:16:37 +00:00
Michael R Sweet
ad9728c731 Fix LoadString/File bug with parent and non-conforming XML data. 2003-12-13 16:32:42 +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
04ce2615b2 Fix handling of quoted element and attribute names.
Update changelog.
2003-12-01 15:27:47 +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
6531fd7d8f Add --with-ansi configure option to avoid using non-ANSI strdup() function. 2003-07-27 23:11:40 +00:00
Michael R Sweet
d18b4626fd doco updates 2003-07-26 17:24:14 +00:00
Michael R Sweet
60fefabd53 Fix bugs reported by Robert.
Update man page and packaging files.
2003-07-23 14:47:17 +00:00
Michael R Sweet
cc71dd6baf Add mxmlSaveAllocString() function. 2003-07-22 10:29:19 +00:00
Michael R Sweet
d918e36dc1 Fix mxmlSaveString-related bugs reported by Robert...
Bump version to 1.1.1.
2003-07-21 12:41:47 +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
95fc4e37f1 Fix some bugs... 2003-07-20 13:19:08 +00:00
Michael R Sweet
cd5601fd40 Start of string writing code... 2003-06-19 04:25:12 +00:00
Michael R Sweet
dd903644a5 Add prototype and definitions for string functions and array types. 2003-06-19 03:20:41 +00:00
Michael R Sweet
243f70768f Dynamically allocate element name, attribute name, and attribute value
buffers.

Bump version number to 1.0.1.
2003-06-15 21:31:45 +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
1d1c545e64 Fix whitespace handling.
Partially working mxmldoc!
2003-06-04 23:20:31 +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
438ded6568 Whitespace handling issues.
Unicode output issues.

Comment/declaration handling fixes.

Add mxmldoc to build.
2003-06-04 16:30:40 +00:00
Michael R Sweet
daa3fc2b78 Whitespace using newlines when possible... 2003-06-04 02:34:30 +00:00
Michael R Sweet
79c27ac3e2 Support > and  . 2003-06-04 01:26:34 +00:00
Michael R Sweet
0855089dcd Support comments. 2003-06-04 01:23:21 +00:00
Michael R Sweet
9ee636328b Fix mxmlSaveFile() bug... 2003-06-04 00:25:59 +00:00
Michael R Sweet
7a51d3c414 Initial revision 2003-06-03 19:46:29 +00:00