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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Dec 5, 2012, 5:13 AM
http://stackoverflow.com/questions/1421848/how-to-parse-xml-and-insert-content-into-html-form-using-jquery
bharaneedharan babuPosted Dec 5, 2012, 7:22 AM
bharaneedharan babuPosted Dec 4, 2012, 11:14 PM
VulpesPosted Dec 4, 2012, 9:17 AM
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.