XmlDocuments версия 1.42

Библиотека для чтения и парсинга XML-документов. This software component contains a small-footprint Delphi XML implementation that allows to read and write XML documents. You basically only need one unit and you can simply add it to the "uses" clause.

  • Read XML directly from string, stream or file with fast parser (1Mb/sec on 1.5GHz P3), writes to string, stream and file even faster.
  • 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. See example 1. 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 dont 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 dont 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 implements proper conversion warnings. Recognises streams even without byte order marks. XmlDocuments works internally with UTF8 encoded strings to preserve extended characters, and supports widestrings.
  • 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. See Example 4.

Скачать XmlDocuments 1.42 900 кб + XmlDocumentsHelp.chm 80 кб



Опубликовал admin
21 Сен, Вторник 2004г.



Программирование для чайников.