0

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

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
narenra
  • 1
  • 2

1 Answers1

1

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
  • 580
  • 1
  • 4
  • 8