I am able to parse a regular xml file that is not compressed using the XDocument..XElement etc. What I need to be able to do is have my application access an XML file that has been compressed (gzip) on a web server and parse it.
Is there a way to decompress the gz file and use my regular xml parsing process on the fly without the user having to actually download the file manually? Currently, this is what I'm using to parse the xml files..
This adds all items to a listview (though, I will most likely go with combo boxes later) but I can not figure out how to pull the resources.xml.gz file and parse it from the application.Code:Dim resourceList As XDocument = XDocument.Load("resources.xml") For Each resource As XElement In resourceList...<resource> Dim supplyName As String = resource.Element("supplies") Dim hoursNumber As String = resource.Element("hours") Dim item As New ListViewItem(supplyName) item.SubItems.Add(hoursNumber) ListView1.Items.Add(item) Next
Thanks in advance for any and all help.