a guest Mar 19th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- from lxml import etree
- self.tree = etree.Element("cbnp-message")
- self.tree.attrib['xmlns'] = "VALUE1"
- CURRENT OUTPUT:
- <cbnp-message xmlns="VALUE1">
- DESIRED OUTPUT:
- <cbnp-message:cbnp-message xmlns:cbnp-message="VALUE1" xmlns="VALUE2">
RAW Paste Data