NET - Explain how XPathNavigator read data from an XMLDocument

Explain how XPathNavigator read data from an XMLDocument.

public void DoRead()
{
        XPathNavigator myNavigator;
        XPathDocument myDocument;
        // Open the XML.
        myDocument = new XPathDocument(@"c:\abc.xml");
        myNavigator = myDocument.CreateNavigator();
        myNavigator.MoveToRoot();
        myNavigator.MoveToFirstChild();
        if (myNavigator.NodeType == XPathNodeType.Element)
        {
                if (myNavigator.HasChildren == true)
                {
                        myNavigator.MoveToFirstChild();
                        do
                        {
                                Console.Write("The XML string is ");
                                Console.WriteLine("is '{0}'", myNavigator.Value);
                        }
                        while (myNavigator.MoveToNext());
                }
        }
}
NET - What is an XML Web service?
What is an XML Web service? - XML Web Service is a unit of code that can be accessed independent of platforms and systems.......
NET - What is an XML Web service?
What is an XML Web service? - XML Web Service is a unit of code that can be accessed independent of platforms and systems.....
NET - Describe the steps to deploy a web service.
Describe the steps to deploy a web service - Using xcopy or Publish wizard copy the file to the destination server........
Post your comment