示例#1
0
def make_parser(parser_list=[]):
        return expatreader.create_parser()
示例#2
0
文件: Parser.py 项目: nedmax/SOAPpy
def make_parser(parser_list=[]):
        return expatreader.create_parser()
示例#3
0
 def parse(self, xmlfile, **kwargs):
     doc = self.module.parse(xmlfile,
                             parser=expatreader.create_parser(**kwargs),
                             **kwargs)
     return doc.toxml()
示例#4
0
 def parseString(self, xmlstring, **kwargs):
     doc = self.module.parseString(
         xmlstring, parser=expatreader.create_parser(**kwargs), **kwargs)
     return doc.toxml()
示例#5
0
import xml.sax.expatreader as bad
import defusedxml.expatreader as good

p = bad.create_parser()
b = good.create_parser()