these Li data how can i retrive the values in to my html
- and
- tag.... any one give me a solution
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Dec 5, 2012, 12:13 AM EST
http://stackoverflow.com/questions/1421848/how-to-parse-xml-and-insert-content-into-html-form-using-jquery
VulpesRank #55 · 29.2K reputationPosted Dec 4, 2012, 4:17 AM EST
using System;
using System.Linq;
using System.Xml.Linq;
class Test
{
static void Main()
{
XElement fav = XElement.Load("Favourites.xml");
string[] values = (from li in fav.Element("favourites").Elements("li") select
li.Value).ToArray();
foreach(string value in values)
{
Console.WriteLine(value);
}
Console.ReadKey();
}
}
How you could insert those values into an HTML file would depend on the structure of that file.
bharaneedharan babu24 reputationPosted Dec 4, 2012, 6:14 PM EST
bharaneedharan babu24 reputationPosted Dec 5, 2012, 2:22 AM EST