C++中的XML数据绑定  被引量:2

XML Data Binding in C++

在线阅读下载全文

作  者:王永民[1] 韩兵 王力[1] 

机构地区:[1]西安电子科技大学软件所,陕西西安710071 [2]南京卷烟厂技术装备处,江苏南京210012

出  处:《微机发展》2004年第6期88-91,共4页Microcomputer Development

摘  要:在应用程序中访问XML文档有DOM的树结构、SAX流模型,以及XML数据绑定的方法。前两种方式在XML文档和应用之间处理大量的数据时非常麻烦,而数据绑定是处理大量数据的好方法。文中从XML模式描述C++结构的基础出发,实现了把有效的XML文档绑定到结构,在C++程序中,通过调用通用的打包和解包接口函数解决了结构实例和XML文档数据之间的直接转换,而不需过多的处理。There are three methods to access XML documents, tree-structure in DOM, stream-model in SAX, and XML data binding. Must probe deeply into XML text nodes when the first two methods are used and thus is a big trouble exchanging huge data among XML documents and applications. Now the data binding method specially used to exchange huge data has been implemented in Java. This paper describes the XML data binding in C++ that makes the data exchanging much easier, only to call the marshalling and unmarshalling methods in the program to do the work.

关 键 词:文件对象模型 XML简化编程接口 XML文档 树结构 流模型 XML模式 XML数据绑定 

分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象