Hi, I am trying to create a DOM xml on the fly (based on a schema). I need to store binary data in an xml document. I figured the xs:base64Binary type of xs:element is the right way to do this.
I have this code written. But once I have encoded the raw binary data, how do I set that encoded data into the DOMNode or DOMElement? MyUnicodeString NodeName(_T("MyBinaryNode")); DOMElement *pElem = pdoc->createElementNS(m_rootNameSpaceUri, NodeName); catElem->appendChild(pElem); // pxmlByteInput points to the raw binary data (un-encoded) // inputSize is the raw data size XMLByte *pEncodedData = Base64::encode(pxmlByteInput, inputSize, &outputSize); // How do I set this *XMLByte data to the MyBinaryNode? Sean --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]