How do I get the value out of a DOM Element

kj7ny kj7ny at
Thu Sep 27 07:50:52 CEST 2007

I have been able to get xml.dom.minidom.parse('somefile.xml') and then
dom.getElementsByTagName('LLobjectID') to work to the point where I
get something like: [<DOM Element: LLobjectID at 0x13cba08>] which I
can get down to <DOM Element: LLobjectID at 0x13cba08> but then I
can't find any way to just get the value out from the thing!

.toxml() returns something like: u'<LLobjectID><![CDATA[1871203]]></

How do I just get the 1871203 out of the DOM Element?


More information about the Python-list mailing list