I'm using QDomDocument to create XML strings.
Expected result:
<container>
<datavalue> </datavalue>
</container>
<container>
<datavalue> </datavalue>
</container>
To copy to clipboard, switch view to plain text mode
Actual outcome:
<container>
<datavalue></datavalue>
</container>
<container>
<datavalue></datavalue>
</container>
To copy to clipboard, switch view to plain text mode
But if my datavalue is like " 1 ", then it works. It's only happening when there are no characters at all. 
Do you guys know any easy work around for it?
Bookmarks