关于xml读取信息. 谢谢指点

软件和网站开发以及相关技术探讨
回复
xddeep
帖子: 16
注册时间: 2006-10-28 20:08
来自: germany

关于xml读取信息. 谢谢指点

#1

帖子 xddeep » 2007-07-31 16:59

能用的有QT库, 还有标准库. 环境在kde下. 用emacs.

有一些xml文档的数据. 要求读取里面数据, 并且供其他方法来使用.

我的思路是 , 因为这些数据文档格式都已知,而且是固定的, 我建几个结构体. 然后在用vector来存储. 还是分别建立几个class. 在我的xmlreader类里面嵌套?

或者哪位高手有其他好的思路. 谢谢了. 具体用到哪些个类呢. 比较迷茫

xml格式如下:

<Grasp name='noname'>
<Grasp number = 0>
<Translation>
<x>x=10</x>
<y>y=11</y>
<z>z=12</z>
</Translation>
<Rotation>
<x>x=2</x>
<y>y=3</y>
</Rotation>
<Jointangle>
<alpha>alphe=0</alpha>
</Jointangle>
</Grasp>
<Grasp number = 1>
... ... ...
</Grasp >
... ...
<Grasp number = n>
</Grasp>
</Grasp name..>
antonym55
帖子: 353
注册时间: 2007-04-03 9:52
联系:

#2

帖子 antonym55 » 2007-07-31 23:37

建议用xerces
回复