Get XML Nodes from XmlDocument - CSharp System.Xml

CSharp examples for System.Xml:XML Document

Description

Get XML Nodes from XmlDocument

Demo Code

/*/*from www  .j a v  a  2s . c  om*/
FOR FURTHER DETAILS ABOUT LICENSING, PLEASE VISIT "LICENSE.txt" INSIDE THE SAGEFRAME FOLDER
*/
using System.IO;
using System.Xml;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;

public class Main{
        public static XmlNodeList GetXMLNodes(XmlDocument doc, string selectednode)
        {
            XmlNodeList xnLst = doc.SelectNodes(selectednode);
            return xnLst;
        }
}

Related Tutorials