Once you have your base64 feed it into:
QDomText QDomDocument::createTextNode ( const QString & value )
You'll get back a QDomText object which you can pass into .appendChild(...)
So using the this technique, if you have a string like 'dl;kgjsdflkghlfjkghlkjf' and you call:
QDomText base64Text
= doc.
createTextNode("dl;kgjsdflkghlfjkghlkjf");
base64Elem.appendChild(base64Text );
QDomText base64Text = doc.createTextNode("dl;kgjsdflkghlfjkghlkjf");
base64Elem.appendChild(base64Text );
To copy to clipboard, switch view to plain text mode
You should end up with:
<base64Binary>dl;kgjsdflkghlfjkghlkjf</base64Binary>
<base64Binary>dl;kgjsdflkghlfjkghlkjf</base64Binary>
To copy to clipboard, switch view to plain text mode
Wysota already showed this in his last example.
Hopefully this will highlight the section of his example that actually sticks the base 64 string in the element.
Bookmarks