For future reference:
The solution to this problem is a simple one.
rgelem = list(xmldoc.selectNodes('/root/elem'))
returns a real list of IXMLDOMElements that can be sliced.
-- Marcel
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm using MSXML to select elements from a XML document and want
to slice off the last part of an IXMLDOMNodeList.
>>> import win32com.client
>>> xmldoc = win32com.client.Dispatch('msxml.DOMDocument')
>>> xmldoc.load('file.xml')
True
>>> rgelem = xmldoc.selectNodes('/root/elem')
>>> if rgelem.