ANN: XmlDocuments version 1.44 released

From: Nils Haeck (n.haeckno_at_spamchello.nl)
Date: 11/19/04


Date: Fri, 19 Nov 2004 14:46:35 +0100

SimDesign is happy to announce the release of XmlDocuments version 1.44.

XmlDocuments is a one-unit simple parser and writer for XML files.
XmlDocuments is compatible with Delphi2/3/4/5/6/7, Kylix, and C++Builder.
Main features include:

* Read XML directly from string, stream or file with fast parser (1Mb/sec on
1.5GHz P3), very fast writes to string, stream and file (up to 10Mb/sec).

* Import of all common tags, including comments, CDATA, XML declarations and
stylesheets.

* Load from streaming media is supported; you can set up events to work with
the node data while it comes in; no need to keep the whole XML document in
memory! Works well for huge documents. This is the SAX-like approach.

* Save to file, string or stream in readable or compact format. Readable
format will add linefeeds and indents to make the file readable in a text
editor. Compact format sticks to the XML specification and adds minimal
control characters.

* Directly add blobs or streams in the XML file, they will be encoded as
Binhex or Base64 (but you don't have to worry about that).

* Many native Delphi types can be stored directly to the nodes, making this
code very suitable to use while writing storage methods. Store and load
boolean, single, double, word, integer, string, TFont, TColor, TPen, TBrush,
TDateTime. You don't have to worry about escaping the strings; this is done
automatically.

* Loads and saves ANSI (UTF-8) as well as Unicode (UTF-16) documents and
supports widestring.

* Unique feature: Add XML nodes to a file that exists on disk without
reading the complete file! The additional unit XmlAppends will search from
the end of the (possibly huge) file on disk and append node data there
directly.

XmlDocuments DCU version is free but shows a small nag message when the unit
is initialized. The sources can be bought for US$29.95.

Additional features since 1.43:

- Added TXmlNode methods WriteInt64 and ReadInt64, added property
ValueAsInteger,
  ValueAsFloat, ValueAsBool and ValueAsDateTime.

- NEW FEATURE: Store any TPersistent object to XML, and load/create it from
XML, with
  one command. A new unit is added (sdXmlObjectStorage.pas) which provides
methods to
  do this. An object's persistent properties are all stored, including
events and
  object references. This feature can be used to store complete forms as XML
files.
  See Example 5 for more information.

XmlDocument's webpage:
http://www.simdesign.nl/xml.html

XmlDocuments forum page, please direct questions here:
http://www.simdesign.nl/forum/

SimDesign is thankful for all customers that supported XmlDocuments so far!

Kind regards,

Nils Haeck M.Sc.
SimDesign B.V.
www.simdesign.nl