← Prev in month
← Prev in thread
Next in thread →
Next in month →
how to insert bytes into CDATASection (Xerces-C++)
This is a resend after joining the mail list.
Hi,
I encountered problem when trying to insert severval
bytes (unsigned char) into a CDATASection when to
create a DOM tree in the memory. Please see the code
snippet in the trail.
If succeeded to enclose the bytes in a CDATASection,
what's the appropriate way to extract the bytes which
are identical to the original from the node?
Any pointers are highly appreciated.
Bin Sun
~ - ~ - ~ - ~ - ~ - ~ - ~ - ~ -
...doc is created as a valid DOMElement...
DOMElement* pMetaByElem =
doc->createElement(X("metadata"));
unsigned char bs[4] = {'Q', 'R', 'S', 'T'};
DOMCDATASection * metaByDataVal =
doc->createCDATASection((XMLCh *) pMeta);
XMLSize_t size = metaByDataVal->getLength();
!!!now size is 58 rather than 4.
Also I tried to use XMLString::transcode(bs), which
failed too.
__________________________________
Do you Yahoo!?
Plan great trips with Yahoo! Travel: Now over 17,000 guides!
http://travel.yahoo.com/p-travelguide
Yahoo! Mail Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.
← Prev in month
← Prev in thread
Next in thread →
Next in month →