[BangPypers] [Small Hitch]Minidom and xml parsing.

Subhodip Biswas subhodipbiswas at gmail.com
Tue Jul 12 08:50:01 CEST 2011


Hi all,

I am fairly new to python and i am stuck with a problem.
What I am  trying to do is parse a xml file using minidom. My xml file
as almost a structure like this :

<someparentabove>
       <parent>
	      <child1>
	      </child1>
	      <child2>
	      </child2>
      </parent>
      <anotherparent>
      </anotherparent>
</someparentabove>

I can get parent along with childs using getElementsByTagName, But is
there a way I can get only the children (child1 and Child2)?


-------------
Thanks and Regards
Subhodip Biswas


GPG key : FAEA34AB
Server : pgp.mit.edu
http://subhodipbiswas.wordpress.com
http:/www.fedoraproject.org/wiki/SubhodipBiswas


More information about the BangPypers mailing list