Xmlnode(i).ChildNodes.Item(0).InnerText.Trim() Xmlnode = xmldoc.GetElementsByTagName("Product") Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickĭim fs As New FileStream("products.xml", FileMode.Open, FileAccess.Read) In this program it search the Node and its child Nodes and extract the data in child nodes.Ĭlick here to download the input file : product.xml Here we are using XmlDataDocument class to read the XML file. This program read the content in Node wise. We can read an XML file in several ways depends on our requirement. The following program read that file and extract the contents inside the XML tag. ![]() In the previous program we create an XML file and named it as products.xml. ![]() Reading an XML file means that we are reading the information embedded in XML tags in an XML file. ![]() XML is a self describing language and it gives the data as well as the rules to extract what the data it contains.
0 Comments
Leave a Reply. |