예제 #1
0
 def test_init(self):
     self.assert_(XmlPropertyListParser())
예제 #2
0
 def parse(self, xmlin):
     parser = XmlPropertyListParser()
     return parser.parse(xmlin)
예제 #3
0
def parse_using_plist_parser_etree():
    """plist_parser with xml.etree.cElementTree"""
    xmlin = StringIO(bytes)
    return XmlPropertyListParser()._parse_using_etree(xmlin)
예제 #4
0
 def parse(self, xmlin):
     parser = XmlPropertyListParser()
     return parser._parse_using_sax_parser(xmlin)
예제 #5
0
def parse_using_plist_parser_sax():
    """plist_parser with SAX parser"""
    xmlin = StringIO(bytes)
    return XmlPropertyListParser()._parse_using_sax_parser(xmlin)