About Delphi-XML

来源:互联网 发布:300英雄有mac版吗 编辑:程序博客网 时间:2024/06/13 06:33
 

About XML and Delphi

http://delphi.about.com这个网站中有一个系列的文章,是关于xml和Delphi的,
原始链接在http://delphi.about.com/library/weekly/aa072500a.htm

What is XML?
XML is the 'Extensible Markup Language', universal language for data on the Web. XML gives developers the power to deliver structured data from a wide variety of applications to the desktop for local computation and presentation. XML is also an ideal format for server-to-server transfer of structured data. Using an XML parser, software is able to walk through the hierarchy of the document extracting the structure of the document, its content, or both. XML is in no way limited to Internet use. In fact, XML's main strength - organizing information - makes it perfect for exchanging data between different systems.

XML looks much like HTML. However, whereas HTML describes the layout of a page (for data displaying purposes) XML is concerned with defining and describing data, it describes the type of content. Hence, 'extensible' because it is not a fixed format like HTML. 
We can also think of each XML file as a mini database. Tags, or markups (the text surrounded by angle brackets) in an XML document delineate the records and fields. The text between the tags is the data. We perform operations like retrieving, updating, and inserting data with XML using a parser and a set of objects exposed by the parser.

As a Delphi programmer, what you need to know is how to use XML. Therefore, in this article I'll be presenting several ways in which XML can be integrated into your Delphi applications.

 

xmlworks一个开源项目