cleanup
new instead of malloc for pugi objects
created template for node and document xs code
xml_text and node::text support