XML Parsing in compact framwork

Hi,

If I have a XML file like this:

<?xml version="1.0" encoding="utf-8" ?>
<orders>
      <order>
            <number>80000001</number>
            <custName>Test Cust</custName>
            <items>
                  <item>
                        <id>35000019</id>
                        <received>no</received>
                        <code>10095</code>
                  </item>
                  <item>
                        <id>35000020</id>
                        <received>no</received>
                        <code>10011</code>
                  </item>
                  
            </items>
      </order>
</orders>

If c# compact framework what is the best way to loop over the items table for a given order. I have the order table in a foreach loop so for each order I want to loop over the items table?

Thanks Kieran.
kplonkAsked:
Who is Participating?
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.

navalarya1982Commented:
0

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
mmarksburyCommented:
You could use XPATH to select all the ITEM nodes under a particular ORDER node.  

I believe the code is XmlDocument.SelectNodes(xpathExpression).
0
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
C#

From novice to tech pro — start learning today.

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.