WPF XML dispaly LINQ/Lucene.net/XPath

Mar 21, 2011 at 7:19 PM

Hi ,

 I want to dsiplay ids  in the combo and selected id xml nodes(complet xml node) in the ritch text book. I am facing some performance issues while doing the noraml way of getting the xmlnodes and loop. Looking for best approach for the good performance.

Below is my XML:  I want to show distinct ids in the combo when user select one or more ids from the combo the corresponding xml node (complete XML node for those ids ) need to dispaly in the ritch text box . Can you Please advice me the best approach both Lucene.net and with LINQ . Thanks in advance.

<Root>
  <Book>
    <id>1</id>
    <name>Book Id -1 </name>
    <relatedBooks>
       <name> RL1 </name>
    </relatedBooks>   
  </Book>

  <Book>
    <id>2</id>
    <name>Book Id -2 </name>
    <relatedBooks>
       <name> RL1 </name>
    </relatedBooks>   
  </Book>

  <Book>
    <id>1</id>
    <name>Book Id A1 -1 </name>
    <relatedBooks>
       <name> RL2 </name>
    </relatedBooks>   
  </Book>

</Root>

 Thanks in advance

Regards

Ram

Developer
Mar 26, 2012 at 4:27 PM

Ram,

So if I understand correctly, you want to know the best query to get this type of structure quickly?