SHARE
TWEET

Untitled

a guest Mar 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from lxml import etree
  2.  
  3. self.tree = etree.Element("cbnp-message")
  4. self.tree.attrib['xmlns'] = "VALUE1"
  5.  
  6. CURRENT OUTPUT:
  7. <cbnp-message xmlns="VALUE1">
  8.  
  9. DESIRED OUTPUT:
  10. <cbnp-message:cbnp-message xmlns:cbnp-message="VALUE1" xmlns="VALUE2">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top