c# 4.0 - Linq to select nodes into xml which have node values in list -


i have following xml.

<?xml version="1.0"?> <instrumentserverdata>  <node>    <name>**test**</name>    <comments/>    <dob/>    <location/>    <configs/>  </node>  <node>    <name>**example**</name>    <comments/>    <dob/>    <location/>    <configs/>  </node>  <node>     <name>**check**</name>     <comments/>     <dob/>     <location/>     <configs/>  </node> 

have list 'testlist' contains 'test' , 'check'. want select entire nodes have name value in list 'testlist'(i,e filter/delete xml nodes don't have name value in list)


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -