tags:

views:

163

answers:

1

how to get CDATA in xml file using tinyxml library. If possible give a 2-3 line code snippet?

A: 

TinyXML sees CDATA as text:

http://www.grinninglizard.com/tinyxmldocs/classTiXmlText.html

It should be a TxXmlText node where the CDATA() method returns true.

Minor point of caution: there isn't a test case for this the TinyXML test suite (xmltest.cpp).

grinliz