xsdata.formats.mixins module

class xsdata.formats.mixins.AbstractParser[source]

Bases: abc.ABC

from_path(path, clazz)[source]

Parse the input file path and return the resulting object tree.

Return type

Type

from_string(source, clazz)[source]

Parse the input string and return the resulting object tree.

Return type

Type

from_bytes(source, clazz)[source]

Parse the input bytes array return the resulting object tree.

Return type

Type

abstract parse(source, clazz)[source]

Parse the input stream and return the resulting object tree.

Return type

Type

class xsdata.formats.mixins.AbstractSerializer[source]

Bases: abc.ABC

abstract render(obj)[source]
Return type

object