XML Parsing in compact framwork

Posted on 2006-04-04
Last Modified: 2010-04-16

If I have a XML file like this:

<?xml version="1.0" encoding="utf-8" ?>
            <custName>Test Cust</custName>

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.
Question by:kplonk
    LVL 8

    Accepted Solution

    LVL 7

    Expert Comment

    You could use XPATH to select all the ITEM nodes under a particular ORDER node.  

    I believe the code is XmlDocument.SelectNodes(xpathExpression).

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Using AutoMapper with flattened, nested classes 4 41
    Add row in datatable 18 43
    c# PowerShell runspace woes 5 38
    Aspnet xml 2 27
    Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
    This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now