I have a given XML file that I need to process. For the sake of argument, let's say I've already loaded it in as a string.
<?xml version="1.0" encoding="UTF-8" ?> 
<GROUP ID="_group_id" ORDERINFO="00000" TITLE="Group 1">
  <GROUP ID="_group_id_2" TITLE="Group 2">
    <LO ID="_id_code1" LANG="enUS" TYPE="_cust" TITLE="Title 1" /> 
    <LO ID="_id_code2" LANG="enUS" TYPE="_cust" TITLE="Title 2" /> 
  </GROUP>
  <GROUP ID="_group_id_3" TITLE="Group 3">
    <LO ID="_id_code1" LANG="enUS" TYPE="_cust" TITLE="Title 1" /> 
    <LO ID="_id_code2" LANG="enUS" TYPE="_cust" TITLE="Title 2" /> 
  </GROUP>
</GROUP>
There can be many LOs and many GROUPs in a given XML file. I've been trying various methods with no luck. I need something that will find the matching LO by ID to a given string and then allow me to retrieve the corresponding TYPE and TITLE into strings so that I may use them for processing.
I tried reading the file into an XmlDocument but once loaded I could not figure out how to find the appropriate elements.
Sorry for post prior to edit - some text got cut off
 
     
     
     
     
    