(s)
| 319 | # Takes a string, and parses it into an XML element. |
| 320 | # |
| 321 | def StringToElement(s): |
| 322 | f = StringIO(s) |
| 323 | et = ElementTree.parse(f) |
| 324 | el = et.getroot() |
| 325 | return el |
| 326 | |
| 327 | |
| 328 | ######################################################################## |