WIP: xml format support, resource validations