Exemple #1
0
 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)
Exemple #2
0
    def parse(self, stream, parserFactory=None):

        from parser import getDocument
        Document = getDocument()

        document = Document(stream.name)
        return ParserBase.parse(self, stream, document, parserFactory)
Exemple #3
0
    def parse(self, stream, parserFactory=None):

        from parser import getDocument
        Document = getDocument()
        
        document = Document(stream.name)
        return ParserBase.parse(
            self, stream, document, parserFactory)
Exemple #4
0
 def parse(self, stream, parserFactory=None):
     from parser.Document import Document
     return BaseParser.parse(self, stream, Document(stream.name),
                             parserFactory)
Exemple #5
0
 def parse(self, stream, parserFactory=None):
     from parser.Document import Document
     return BaseParser.parse(self, stream, Document(stream.name), parserFactory)