用什么通过工具读xml文件的数据(100分)

  • 主题发起人 snowboys
  • 开始时间
S

snowboys

Unregistered / Unconfirmed
GUEST, unregistred user!
现自编写了一个工具:导出数据源的数据为xml文件。
用什么通用工具读xml文件的数据,用以确定生成xml的正确性。
 
delphi 中有此控件
我也不知道怎么用
 
下面是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.
 
使用 IE 就可以验证 XML 文档的正确性呀!
或者使用 XMLNodePad 也可以打开 XML 的文件呀。
 
IE的XML校验巨弱
 
在delphi中引入msxml.dll中的activex组件,通过它可以解析XML
 
顶部