Serializer sub-module

class marcxml_parser.serializer.MARCXMLSerializer(xml=None, resort=True)[source]

Bases: marcxml_parser.parser.MARCXMLParser

Class which holds all the data from parser, but contains also XML serialization methods.

to_XML()[source]

Serialize object back to XML string.

Returns:String which should be same as original input, if everything works as expected.
Return type:str
__str__()[source]

Alias for to_XML().