read inner text based on a Attribute of xml node

how can I read inner text based on a Attribute of xml node?

I have the following xml file
<?xml version="1.0" encoding="utf-8" ?>
  <field enabled="true">Appl</field>
  <field enabled="true">Loc</field>
  <field enabled="true">RicExtn</field>

I am trying to open this xml file in C# and loop through each of the <field> element and if the attribute enabled="true"  then i want to extract the inntertext

i can get as far as the attibute is concerned however i'm unable to extract the inner text...

here is my code

            const string strFilename = "GroupBySelection.xml";
            XmlTextReader textReader = new XmlTextReader(strFilename);
            while (textReader.Read())
                 if((textReader.NodeType == XmlNodeType.Element) && (textReader.Name == "field") )
                    if (textReader.GetAttribute("enabled") == "true")
                        //get the value of the inner text here

please help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CollindsouzaAuthor Commented:

I had a look at the link and it doesnt really help me in my problem

all it does is looking trhrought the xml document using xmlReader and displaying the content...

how will it resolve my problem?
CollindsouzaAuthor Commented:
I found the solution to my problem....

here it is...

            XmlTextReader textReader = new XmlTextReader(strFilename);
            while (textReader.Read())
                if ((textReader.GetAttribute("enabled") == "true") && (textReader.Name == "field"))
PAQed with points refunded (500)

EE Admin

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.