(dom)
| 23 | return file.read().decode() |
| 24 | |
| 25 | def extract_output(dom): |
| 26 | elements = dom.getElementsByTagName('output') |
| 27 | assert len(elements) == 1, 'XML Error' |
| 28 | output = elements[0] |
| 29 | assert len(output.childNodes) == 1, 'XML Error' |
| 30 | child = output.childNodes[0] |
| 31 | assert child.nodeType == child.CDATA_SECTION_NODE, 'XML Error' |
| 32 | return child.nodeValue |
| 33 | |
| 34 | def get_revision(name): |
| 35 | string = info_utility('xml', name) |