开发者

How to read XML data from a URL by using Visual Basic .NET and Windows Phone 7

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜