对TinyXml的一条笔记

对TinyXml的一条笔记

这两天在接触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

你可能感兴趣的:(对TinyXml的一条笔记)