What's the trick fo开发者_StackOverflowr deriving a download URL given an entry in the Packages table in the OData data set?
< content type="application/zip" src="SOME-URL" />
Under the <entry/>
node, look for a <content/>
node which contains 2 attributes type
and src
. The src
attribute contains the download url. You could use LINQ to XML to get it. Seems easy, right? Oh, and remember to append an XNamespace
to the XName
when using LINQ to XML to query the nodes.
精彩评论