showind data from xml files in c# with more flexibile way
i want to show data from xml files like xml api of hotel packages. however i have some methods like xmldocument()
... still having doubt of using most effective way to represent hotel data with good programming techniques. this is a web portal where i have to fetch data from remote xml file.
<results>
<content>
<fields>
<field name="headlines"> This is headline </field>
<field name="text"> This is text </field>
<field name="url"> This is url </field>
<开发者_开发百科;fields>
</content>
<content>
…
</content>
…
</results>
Linq to XML is a good place to start. As well as that MSDN page, there's a CodeProject tutorial that explains how to use Linq to XML.
精彩评论