The best way to get one or more records against the search criteria is to suggest the best way to do the XML document. .
Personally I can use LINQ XML if you can possibly have your question Time is very vague, but for example, you can write:
XDocument doc = XDocument.Load ("test.xml"); Var matches = doc.Descendants ("person"). Where (x = & gt; (string) x attribute ("name") == "john"). Where (x = & gt; x.Elements ("child"). Mount ()> = 2); When you can use XPath, then I generally do not like it - all of the embedded language within each other There are common problems, using C # again, so there is no new syntax for you to know - just the relevant methods within the XML Library from LINQ. XML from LINQ also helps simplify the namespace, and you do not have to worry about avoiding the price etc., because your query is in the code instead of the string.
Comments
Post a Comment