File: xml_lxml.py

package info (click to toggle)
bandit 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,824 kB
  • sloc: python: 10,049; makefile: 22; sh: 14
file content (9 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
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)