locked
Reading XML file in a Store App

    Question

  • I have an XML file on the web which I want to read from a C# Store app. This file is actually an Atom feed, but that doesn't matter, I just want to get the XML contained within.

    Anyway, I tried several methods but none of them can get me what I want.

    My requirements are pretty simple, I want to get each Entry, and from it take the Summary, and from it take the entire text including the tags. The closest I got was being able to get the entire text contained within <Summary>, but without the child tags <short-description> and <tab>, but I want them too.

    <?xml version="1.0" encoding="UTF-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"> <title>Product Details</title> <link rel="self" href="http://someLink" /> <subtitle>Product Details</subtitle> <id>somID</id> <updated>2015-03-04T11:20:05Z</updated> <dc:date>2015-03-04T11:20:05Z</dc:date> <entry> <title type="text">Loan ABC</title> <link rel="alternate" href="http://somLink" /> <author> <name /> </author> <summary type="text"> <short-description>Get the money you need when you need it! Your perfect banking partner provides you instant gold loans at cheaper interest rates.</short-description> <tab id="0" header="Features &amp; Benefits"> Avail loan amount up to Rs.75 Lakhs Quick processing within a few minutes No hidden charges or heavy pen *Conditions apply </tab> <tab id="1" header="How to apply ?"> Who can apply Any Individuals. How to avail the loan? To avail the loan, Please visit any of our branches. </tab> <accordian id="0" header="Documents Required"> If you are a new customer, following documents are required: Proof of Identity (Passport / Voters ID card/ Driving License/PAN Card) Recent Passport size photograph Address Proof (Ration card Tel/ Electricity Bill/ Lease agreement/ Passport/Trade license /Sales Tax certificate) </accordian> <accordian id="1" header="Repayment options"> Repayment of the loan can be made as lump sum or as installments </accordian> <accordian id="2" header="Gold loan - Rate per gram"> To know the maximum amount per gram, please click here. </accordian> <accordian id="3" header="Interest Rates &amp; Charges"> Please visit the Interest Rates page for details </accordian> </summary> </entry> <entry> <title type="text">Federal Proxy Loan </title> <author> <name> BMA </name> </author> <summary type="text"> <short-description>Do you want a loan ? We give out loans !!! At nominal interest rates !!! </short-description> <tab id="0" header="ABC &amp; DEF"> This is Line 1 This is Line 3 (Line 2 was empty) 4 5 </tab> <tab id="1" header="Header of ID 1"> ABCDEFGHI </tab> </summary> </entry> <entry> <title type="text">Federal Car Loan </title> <author> <name> BMA </name> </author> <summary type="text"> <short-description>Do you want a loan ? We give out loans !!! At nominal interest rates !!! </short-description> <tab id="0" header="ABC &amp; DEF"> This is Line 1 This is Line 3 (Line 2 was empty) 4 5 </tab> <tab id="1" header="Header of ID 1"> ABCDEFGHI </tab> </summary> </entry> <entry> <title type="text">Yet Another Federal Loan </title> <author> <name>BMA</name> </author> <summary type="text"> <short-description>We give wonderful loans, all for you - cum and get it</short-description> <tab id="0" header="Header &amp; d"> This is Line 1 This is Line 2 This is Line 3 </tab> <tab id="1" header="abc"> Only One Line for Tab 1 </tab> </summary> </entry> </feed>



    Saturday, March 28, 2015 7:14 AM

Answers