随笔-59  评论-36  文章-0  trackbacks-0

这两天在接触XML,于是也就了解到有个TinyXml库。
因为刚接触TinyXml,所以对于其中的成员函数Value的行为总是有些不解,因为它输出的一会是元素名一会又是值,让我十分困惑。
后来在官方在线手册上才弄明白,Value输出的结果为根据对象类型的不同而不同,如下所述:

Document:   filename of the xml file
Element:       name of the element
Comment:    the comment text
Unknown:     the tag contents
Text:            the text string


TinyXml 在线手册: http://www.grinninglizard.com/tinyxmldocs/annotated.html

posted on 2010-03-29 11:45 zhaoyg 阅读(264) 评论(0)  编辑 收藏 引用 所属分类: other

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理