Your xml variable is going to refer to the top node (<?xml?>), which only has a single child ().
If you want the actual contents, you want xml.DocumentElement. This starts you at , which has two children (the two nodes). So with the above XML, you would use: