ElementTree handling nested tag

tekion tekion at gmail.com
Fri Oct 1 22:32:49 CEST 2010


All,
I have the following xml tag:
<event>
<resource_access>
      <action>httpRequest</action>
      <httpurl>HTTP://cmd.wma.ibm.com:80/</httpurl>
      <httpmethod>GET</httpmethod>
      <httpresponse>200</httpresponse>
   </resource_access>
</event>

I am interested in:
       <action>httpRequest</action>
      <httpurl>HTTP://cmd.wma.ibm.com:80/</httpurl>
      <httpmethod>GET</httpmethod>
      <httpresponse>200</httpresponse>
as well as the upper layer tag. How do I get at the nest tag listed
above?  Thanks.



More information about the Python-list mailing list