moved node xml creation into own method and added logging
Merge pull request #36 from tadukurow/robust_node_xml

More robust node xml creation and logging