add schema & schema validation

Add schema generated via schemagen script.
Add schema validation code.
Schema is located at resources/pbs.xsd