def test_init(self): self.assert_(XmlPropertyListParser())
def parse(self, xmlin): parser = XmlPropertyListParser() return parser.parse(xmlin)
def parse_using_plist_parser_etree(): """plist_parser with xml.etree.cElementTree""" xmlin = StringIO(bytes) return XmlPropertyListParser()._parse_using_etree(xmlin)
def parse(self, xmlin): parser = XmlPropertyListParser() return parser._parse_using_sax_parser(xmlin)
def parse_using_plist_parser_sax(): """plist_parser with SAX parser""" xmlin = StringIO(bytes) return XmlPropertyListParser()._parse_using_sax_parser(xmlin)