When decoding an XML blob, pyanbind was trying to check the pattern restriction on an lxml.objectify.StringElement object, which is not a native string type.
With JSON decoding, this problem does not happen because the JSON value is a native str type.
A fix for https://github.com/robshakir/pyangbind/issues/345
When decoding an XML blob, pyanbind was trying to check the pattern restriction on an lxml.objectify.StringElement object, which is not a native string type.
With JSON decoding, this problem does not happen because the JSON value is a native str type.