BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XML DOM
Whats the 'push model'?
Hybrid Model Part Two: Choosing between SAX and DOM


 
 

<< XHTMLXmlSerializer >>


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 1637

How to create a navigator with XmlDocument and CreateNavigator?


Summary How to create a navigator with XmlDocument and CreateNavigator?

A navigator is something that is used to navigate. In terms of XML it is used to iterate the XML file. The key is to use the function CreateNavigator. This function will return a XPathNavigator object which you can use to iterate or navigate through the XML file. In this example you will how you can create a navigator with the XmlDocument class to naviagate through a XML file. For that example I am using the following XML file.

Output:

1st news titledescription of the 1st news 2nd news titledescription of the 2nd news 3rd news titledescription of the 3rd news 4th news titledescription of the 4th news 5th news titledescription of the 5th news

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XHTMLXmlSerializer >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML