Added `to_xsd` method to IObject interface