I have the following XML in a string:
<RootElement>
<Data>
<Row>
<Id>1</Id>
<Name>Foo</Name>
</Row>
<Row>
<Id>2</Id>
<Name>Bar</Name>
</Row>
</Data>
</RootElement>
And the following class:
public class BusinessObject
{
public int Id { get; set; }
public string Name { get; set; }
}
How can i parse all the data in the Row elements to an IList using XPath?
I need to learn this for training.
Thanks for your answers.
Usage: