Add attribute using pyxml

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PyPK

    #1

    Add attribute using pyxml

    How do I add a new attribute to the existing xml Document tree???

  • uche.ogbuji@gmail.com

    #2
    Re: Add attribute using pyxml

    "How do I add a new attribute to the existing xml Document tree??? "

    what do you mean by "using pyxml"? There are several pyxml modules.
    Do you mean minidom? If so that comes with stock Python as well (hint:
    element_node.se tAttributeNS(ns , qname)).

    --
    Uche Ogbuji Fourthought, Inc.
    http://uche.ogbuji.net http://fourthought.com
    http://copia.ogbuji.net http://4Suite.org
    Articles: http://uche.ogbuji.net/tech/publications/

    Comment

    Working...