Added String Casting for most of the nodes.
DOMDocument::createComment() creates a cdata section in HHVM < 3.2