support for xml schema instance declarations, closes #517