這兩天在接觸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 閱讀(295)
評論(0) 編輯 收藏 引用 所屬分類:
other