I have this XML file located at http://www.example.com/sample_file.xml
<DataSet>
<Body>
<Day date="2011-08-29">
<Price type="Mac开发者_运维技巧y's">123.4</Price>
<Price type="Tiffany's">456.7</Price>
</Day>
</DataSet>
</Body>
Using VB.NET, I want to read the file from the web and display the information ('type' and 'price') in a TextBlock.
I would also like to get only the price for a single type (for example: Macy's).
Just use LINQ to XML, its really Easy,
i have a link here, its in C# but you can quite easily write the same in VB.
Building an XML based RSS Reader
精彩评论