
This adds an XML plug-in based on the documentation an defusedxml. Change-Id: Id775cd0f3d45fd2e9dac1c5bca5c36e0b5618066
10 lines
338 B
Python
10 lines
338 B
Python
import lxml.etree
|
|
import lxml
|
|
from lxml import etree
|
|
from defusedxml.lxml import fromstring
|
|
from defuxedxml import lxml as potatoe
|
|
|
|
xmlString = "<note>\n<to>Tove</to>\n<from>Jani</from>\n<heading>Reminder</heading>\n<body>Don't forget me this weekend!</body>\n</note>"
|
|
root = lxml.etree.fromstring(xmlString)
|
|
root = fromstring(xmlString)
|