def parse(self, stream, parserFactory=None): from parser import getDocument Document = getDocument() document = Document(stream.name) return ParserBase.parse(self, stream, document, parserFactory)
def parse(self, mechanism, file): # create the document root to hand to the xml Parser from Document import Document root = Document(mechanism, file.name) # parse return Parser.parse(self, file, root)
def parse(self, stream, parserFactory=None): from parser import getDocument Document = getDocument() document = Document(stream.name) return ParserBase.parse( self, stream, document, parserFactory)
def __init__(self): BaseParser.__init__(self) return
def parse(self, stream, parserFactory=None): from parser.Document import Document return BaseParser.parse(self, stream, Document(stream.name), parserFactory)
def __init__(self): Parser.__init__(self) return
def __init__(self): ParserBase.__init__(self) return