Searched refs:xmlSnippet (Results 1 – 1 of 1) sorted by relevance
16 def parseXML(xmlSnippet): argument29 if isinstance(xmlSnippet, bytes):30 xml += xmlSnippet31 elif isinstance(xmlSnippet, str):32 xml += tobytes(xmlSnippet, "utf-8")33 elif isinstance(xmlSnippet, Iterable):34 xml += b"".join(tobytes(s, "utf-8") for s in xmlSnippet)38 % type(xmlSnippet).__name__45 def parseXmlInto(font, parseInto, xmlSnippet): argument46 parsed_xml = [e for e in parseXML(xmlSnippet.strip()) if not isinstance(e, str)]