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 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, stream, parserFactory=None): from parser.Document import Document return BaseParser.parse(self, stream, Document(stream.name), parserFactory)