I have recently used this TinyXml to create XML DOM Document. It is very easy to use.
It is very light weight as in it just a few header and source files unlike the famous apache xerces.
I have modified the TinyXml package to give XML DOM Document as a string. I have just added a few functions in the tinyxml.h and tinyxml.cpp files.