delphi中txmldocument控件的用法(Txmldocument controls in Delphi usage).docVIP

  • 17
  • 0
  • 约7.55千字
  • 约 9页
  • 2017-08-17 发布于河南
  • 举报

delphi中txmldocument控件的用法(Txmldocument controls in Delphi usage).doc

delphi中txmldocument控件的用法(Txmldocument controls in Delphi usage)

delphi中txmldocument控件的用法(Txmldocument controls in Delphi usage) Delphi usage of TXMLDocument controls at 2008-12-31 10:40 a.m. Delphi parsing XML documents do well than directly using the MS MSXML2_TLB interface to facilitate a lot, is described in the following. Before you speak, give an example of XML, and it is easier to understand some parts in combination with an instance. 1, XML, version=, 1, encoding=, GB2312, -- document version information, annotation format is the same as HTML-- 2 XMLPackage 3 clinetinfo ip= 202.101.100.90 handler= Si unit= Jiangsu network software 4 data 5 row id= 1 name= sun sex= male age= 24 duty= software engineer / 6 row id= 2 name= Moon sex= female age= 25 duty= manager 7! --data contains two examples of row, to be distinguished by attribute -- ID 8 /data 9 memo length= 16 color= $0034494B Hello! I am Yaya! /memo! - this includes the contents of elements as Text, but also contains two attributes of length, color, of course, there will be no attribute -- 10 Actions acition= update/insert / ! -- the element describes a motion control information -- 11/XMLPackage The TXMLDocument control provides us two common practice: one, directly with the properties and methods of the package to read and write XML files, I called it their analytical method; two, with the XML Data Binding Wizard controls to create a user interface for their unit, many interfaces and then follow this interface unit provide to achieve similar XML file read and write, very convenient, but there are limitations, I call it controls the analytical method. I will focus on the first method of use. First, the analysis of their own: The following three categories Ill tell you are five actions: create, read, modify, add, and delete. (1) create and add: First, you create the XML instance, so you can create it dynamically: TXMLDocument.Create (F:\Work\ \task\XML\lab_xml\country.xml files); You can also create dynamically like this: Xml:= TXMLDocument.Create (NIL); Xml. Loa

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档