XML data binding

来源:互联网 发布:网王之梦里花落知多少 编辑:程序博客网 时间:2024/04/29 17:10
 

XML data binding refers to a means of representing information in an XMLdocument as an object in computer memory.

翻译:

XML data binding是指这样的一个方法:在计算机内存中,将一个xml文档用一个对象表示出来。

This allows applications to access the data in the XML from the object rather than using the DOM orSAX to retrieve the data from a direct representation of the XML itself.

翻译:

这样子,我们可以通过对象而不是使用dom或者sax来操作一个xml文档。

An XML data binder accomplishes this by automatically creating a mapping between elements of the XML schema of the document we wish to bind andmembers of a class to be represented in memory.

翻译:

Xml数据连接器(XML data binder)通过自动建立xml元素和内存中类的对象的方式来完成的。

When this process is applied to convert an XML document to an object, it is called unmarshalling.

翻译:

其中,解组(unmarshalling)指的是,将xml文档转化为一个对象。

The reverse process, to serialize an object as XML, is called marshalling.

翻译:

相反的操作,就称为marshalling.

原创粉丝点击