Record sub-module

class marcxml_parser.record.MARCXMLRecord(xml=None, resort=True)[source]

Bases: marcxml_parser.query.MARCXMLQuery

Syndication of MARCXMLParser, MARCXMLSerializer and MARCXMLQuery into one class for backward compatibility.

marcxml_parser.record.record_iterator(xml)[source]

Iterate over all <record> tags in xml.

Parameters:xml (str/file) – Input string with XML. UTF-8 is prefered encoding, unicode should be ok.
Yields:MARCXMLRecord – For each corresponding <record>.