EDN Admin
Well-known member
How to change the loading of data to a webserver.I want to load the peoplecustom.xml from by web server http://app.livehub.org/xml/People.xml http://app.livehub.org/xml/People.xml
<pre class="prettyprint XDocument loadedCustomData = XDocument.Load("PeopleCustom.xml");
var filteredData = from c in loadedCustomData.Descendants("Person")
where c.Attribute("Age").Value == "27"
select new Person()
{
FirstName = c.Attribute("FirstName").Value,
LastName = c.Attribute("LastName").Value
};[/code]
<br/>
<hr class="sig Solve your Problems @ http://www.livetut.com/
View the full article
<pre class="prettyprint XDocument loadedCustomData = XDocument.Load("PeopleCustom.xml");
var filteredData = from c in loadedCustomData.Descendants("Person")
where c.Attribute("Age").Value == "27"
select new Person()
{
FirstName = c.Attribute("FirstName").Value,
LastName = c.Attribute("LastName").Value
};[/code]
<br/>
<hr class="sig Solve your Problems @ http://www.livetut.com/
View the full article