im looking for a way to get specific tags .. from a very large xml document with python dom built-in
eg:
<AssetType longname="characters" shortname="chr" shortnames="chrs"> <type> pub </type> <type> geo </type> <type> rig </type> </AssetType> <AssetType longname="camera" shortname="cam" shortnames="cams"> <type> cam1 </type> <type> cam2 </type> <type> cam4 </type> </AssetType>
I want to get the value of the children of the AssetType node, who has the attribute (longname = "characters") to get the result 'pub','geo','rig'
please keep in mind that I have over 1000 <AssetType> nodes
thanx in advance
source share