下面是delphi6中的帮助,要不要翻译,呵呵
Use TXMLDocument to represent an XMLdo
cument. TXMLDocument can read an existing XMLdo
cument from a file, it can be associated with an in-memory string that is the contents of an XMLdo
cument, or it can create a new, empty XMLdo
cument.
You can use TXMLDocument directly to load an XMLdo
cument, read and edit it, and save any changes. You can also use TXMLDocument to access the objects generated by the XML Data Binding wizard.
TXMLDocument uses an externaldo
M (Document Object Model) parser to analyze the XMLdo
cument. This parser is usually assigned by specifying thedo
MVendor property.
When you set the Active property to True, TXMLDocument uses thedo
M parser to parse the XMLdo
cument so that you can examine or modify it. In particular, thedo
cumentElement property provides an interface to the root node of thedo
cument. You can use that interface to access its child nodes and to add or delete child nodes.
TXMLDocument implements the IXMLDocument interface. Applications obtain this interface from TXMLDocument or from the nodes in thedo
cument.
When TXMLDocument is created without an Owner, it behaves like an interfaced object. That is, when all references to its interface are released, the TXMLDocument instance is automatically freed. When TXMLDocument is created with an Owner, however, it behaves like any other component, and is freed by its Owner. When you add a TXMLDocument component from the component palette to a form or data module, it is automatically created with an Owner. When the TXMLDocument component is created using the global LoadXMLDocument function (or by a function that the XML Data Binding wizard generates to return the root node of thedo
cument), the function creates a TXMLDocument instance without an Owner.