How to grab an attribute from XML node with code behind code?

I have an xml file I am using to build a true and false question with (see below). There is an attribute named isCorrect in the distractor node that I'd like to grab during the ItemDataBound process, what syntax would I use to access that attribute from the code behind?

Code behind partial sample:
            private void questionRepeater_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
                  RepeaterItem item = e.Item;
                  if( (item.ItemType == ListItemType.Item) || (item.ItemType == ListItemType.AlternatingItem))
                        Repeater distractorRepeater = (Repeater) item.FindControl("choicesRepeater");
                        DataRowView drv = (DataRowView) item.DataItem;
                        distractorRepeater.DataSource = drv.CreateChildView("question_distractor");
                        //Response.Write(" item: " +distractorRepeater.);
                        }// end of if itemtype...            
            }// end of questionRepeater...

<?xml version="1.0" encoding="utf-8" ?>
            <stem>An Apple is a fruit?</stem>
            <distractor1 isCorrect="true">True</distractor1>

            <stem>A Bird is a vehicle? </stem>
            <distractor2 isCorrect="true">False</distractor2>      
            <stem>A Jetta is an animal? </stem>
            <distractor2 isCorrect="true">False</distractor2>      
Who is Participating?
Gautham JanardhanConnect With a Mentor Commented:
     System.Xml.XmlDocument FDoc =
                        new System.Xml.XmlDocument();
                  System.Xml.XmlNodeList FList =
                  for(int i=0;i<FList.Count;i++)
cbittnerAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.