Hey, I'm writing a program and I'm trying to build in the ability to update it. I've got a menu item called Update and when you click it it should download an xml file from my site and read it. This is what the xml fil would look like:
When the person clicks the update button, the program would check it's own internal major, minor, and revision numbers against those read from the xml file. The problem is, I can't figure out how to read the darned xml file!
I want to navigate into the updateInfo node and read it's child nodes, but I can't get it to work. I have no idea what I'm doing wrong with this. Can someone please help me out!
Code:
<?xml version="1.0" encoding="utf-8"?>
<updateInfo>
<currentMajorVersion>1</currentMajorVersion>
<currentMinorVersion>0</currentMinorVersion>
<currentRevision>0</currentRevision>
<download>http://example.com/download.zip</download>
</updateInfo>
I want to navigate into the updateInfo node and read it's child nodes, but I can't get it to work. I have no idea what I'm doing wrong with this. Can someone please help me out!
Comment