Validate xml when loading a buffer
Merge pull request #8 from gregnietsky/master

Validate xml when loading a buffer