Hi,
sample file:
<?xml version="1.0" encoding="UTF-8"?>
<test>
<SupplementalAction>
<![CDATA[#!/usr/bin/ksh
other stuff
]]>
</SupplementalAction>
</test>
sample code that does not work:
DOMNode *temp =
pDoc->getElementsByTagName(X("SupplementalAction"))->item(0);
const XMLCh* contents = temp->getFirstChild()->getNodeValue();
char* strValue = XMLString::transcode(contents);
std::cout << "\nCDATA:" <<strValue;
What am I doing wrong? Any help appreciated.
Is there any way of printing the in-memory DOM structure?
Thanks.
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel
bargains.
http://farechase.yahoo.com/promo-generic-14795097