xsdata.formats.bindings module¶ class xsdata.formats.bindings.AbstractSerializer[source]¶ Bases: abc.ABC abstract render(obj)[source]¶ Render the given object to the target output format. Parameters obj (object) – Return type object class xsdata.formats.bindings.AbstractParser[source]¶ Bases: abc.ABC from_path(path, clazz)[source]¶ Parse the input file path and return the resulting object tree. Parameters path (Path) – clazz (Type[~T]) – Return type ~T from_string(source, clazz)[source]¶ Parse the input string and return the resulting object tree. Parameters source (str) – clazz (Type[~T]) – Return type ~T from_bytes(source, clazz)[source]¶ Parse the input bytes array return the resulting object tree. Parameters source (bytes) – clazz (Type[~T]) – Return type ~T abstract parse(source, clazz)[source]¶ Parse the input stream and return the resulting object tree. Parameters source (BytesIO) – clazz (Type[~T]) – Return type ~T