Activity for Johnny Mazowski

  • Johnny Mazowski Johnny Mazowski posted a comment on discussion Open Discussion

    Hello, I am dealing with creating XML file on the base of schema. Problem is with type recognition while assigning values to objects. My schema defines 2 simple types A and B (<xs:simpleType>) both similar but B has extra pattern restriction. Pyxb bidding classes ('An atomic simple type') are generated automatically in a way, that B inherits from A. class A (pyxb.binding.datatypes.string): ... class B (A): ... When I assign value to a complex element that is B type (by schema) just passing a string,...

1