add CONTRIBUTING.md
Fix error when generating Xml.

Fix warnings/un-escaped entities with deeply nested elements.

Fixes #3718
Merge pull request #1173 from ceeram/contribute

add CONTRIBUTING.md