Module processors.xml.processor
Processor
Classes
class Processor (reader, writer, doc_id)
-
An abstract class to process XML using ISO/NISO STS.
Args
reader
:object
- A reader that reads data from some input source.
writer
:object
- A writer that writes data to some output source.
doc_id
:str
- The document identifier (UUID4)
Attributes
reader
- A file object.
writer
- A writer object.
doc_id
- The document identifier
Ancestors
- abc.ABC
Subclasses
- CommitteeProcessor
- DateProcessor
- FigureProcessor
- FormulaProcessor
- IcsProcessor
- ListProcessor
- MetaProcessor
- ReferenceProcessor
- SectionProcessor
- StringProcessor
- TableProcessor
- TermProcessor
- TitleProcessor
Methods
def converter(self, data)
-
Convert the data. Overwrite this method to implement the conversion logic.
def get_section_id(self, node)
-
Get the identifier of the section this element belongs to. If
def process(self)
-
Read and write data.