adding json schema validation functionality
xml filename as parameter of read function