(inString)
| 845 | |
| 846 | |
| 847 | def parseString(inString): |
| 848 | from mixbox.vendor.six import StringIO |
| 849 | doc = parsexml_(StringIO(inString)) |
| 850 | rootNode = doc.getroot() |
| 851 | rootTag, rootClass = get_root_tag(rootNode) |
| 852 | if rootClass is None: |
| 853 | rootTag = 'Report' |
| 854 | rootClass = ReportType |
| 855 | rootObj = rootClass.factory() |
| 856 | rootObj.build(rootNode) |
| 857 | # # Enable Python to collect the space used by the DOM. |
| 858 | # doc = None |
| 859 | # sys.stdout.write('<?xml version="1.0" ?>\n') |
| 860 | # rootObj.export(sys.stdout, 0, name_="Report", |
| 861 | # namespacedef_='') |
| 862 | return rootObj |
nothing calls this directly
no test coverage detected