[fix bug 703408] Validate XML data.
Merge pull request #12 from glogiotatidis/validate-xml-2

[fix bug 703408] Validate XML data.