[Python-bugs-list] [ python-Feature Requests-715263 ] Access to DOM Element attributes using __getitem__

SourceForge.net noreply@sourceforge.net
Mon, 12 May 2003 10:52:50 -0700


Feature Requests item #715263, was opened at 2003-04-04 07:26
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=715263&group_id=5470

Category: XML
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: chris burdess (bluezoo)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Access to DOM Element attributes using __getitem__

Initial Comment:
Element objects in XML DOM implementations in Python
should provide access to their attributes in a standard
Python way, using __getitem__. Thus, the following code
to print the version of an XMI document should work:

  import xml.dom.minidom
  print
xml.dom.minidom.parse(filename).documentElement['xmi.version']


----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2003-05-12 12:52

Message:
Logged In: YES 
user_id=80475

At first blush, this seems reasonble.  Fred, what do you 
think?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=715263&group_id=5470