added validation methods to XMLStreamer class and tests to boot