I have the xml code:
<feed xml:base="https://test.net/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<title type="text">CustomTable5</title>
<id>https://eqmetest.table.core.windows.net/CustomTable5</id>
<updated>2011-11-15T11:36:32Z</updated>
<link rel="self" title="CustomTable5" href="CustomTable5" />
<entry m:etag="W/"datetime'2011-11-05T08%3A29%3A45.8347866Z'"">
<id>https://eqmetest.table.core.windows.net/CustomTable5(PartitionKey='',RowKey='1')</id>
<title type="text"></title>
<updated>2011-11-15T11:36:32Z</updated>
<author>
<name />
</author>
<link rel="edit" title="CustomTable5" href="CustomTable5(PartitionKey='',RowKey='1')" />
<category term="eqmetest.CustomTable5" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/xml">
<m:properties>
<d:PartitionKey></d:PartitionKey>
<d:RowKey>1</d:RowKey>
<d:Timestamp m:type="Edm.DateTime">2011-11-05T08:29:45.8347866Z</d:Timestamp>
<d:LastID m:type="Edm.Int32">54</d:LastID>
</m:properties>
</content>
</entry>
</feed>
I need to have a list of Name of elements (in my case it should be:PartitionKey,RowKey,Timestamp,LastID ) and if there will be much more tags my list should be from the one where LastID.Value==someId
Just to start I have wrote this:
XmlNamespaceManager xs = new XmlNamespaceManager(new NameTable());
xs.AddNamespace("m", "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata");
xs.AddNamespace("a", "http://www.w3.org/2005/Atom");
xs.AddNamespace("d", "http://schemas.microsoft.com/ado/2007/08/dataservices");
var propertiesElement = document.XPathSelectElements("/a:feed/a:entry/a:content/m:properties", xs);
But I dont know how to end)