I am using python minidom to parse a xml, but not able to get it working for below xml. I want to select the first server tag and want the value of name tag , in this case "Server1"\[code\]<class><name>MyClass</name><security><name>MyClass</name></security><server><name>Server1</name><ssl> <name>Server1</name></ssl><server-info> <name>Server1</name></server-info></server><server><name>Server2</name><ssl> <name>Server2</name></ssl><server-info> <name>Server2</name></server-info></server><server><name>Server3</name><ssl> <name>Server3</name></ssl><server-info> <name>Server3</name></server-info></server></class>\[/code\]