I am looking for solution to my problem related to XML in python. i have an xml file
-<Group name="OptionalObjects">
-<Array name="Pre-defined Error Field">
<Index>4099</Index>
<ObjectType>8</ObjectType>
-<Variable name="Number of Errors">
<Index>4099</Index>
<Subindex>0</Subindex>
<DataType>5</DataType>
<AccessType>2</AccessType>
<ObjectType>7</ObjectType>
<DefaultValue>1</DefaultValue>
<PDOMapping>0</PDOMapping>
</Variable>
+<Variable name="Standard Error Field">
</Array>
This is just a part from hole code. i must search for specific index in whole codde and the program must print me out a parents of that index and all childrens of that parent includ with index ( Index,Subindex,DataType...PDOMapping). please hellp me becouse i'm totaly lost. i was trying with for loop but there is no futer. tnx