Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 12th, 2004, 03:35 PM
q8z q8z is offline
Registered User
 
Join Date: Oct 2004
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default read xml

hi
i have 2 files of xml that i need to read from, the files are in the link:
http://planet.nana.co.il/s3d (under the title vb.net)
i need to read data from the xml foles to a label
this cod is not good, how to fx it?
Private Sub ButtonGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonGo.Click
Dim r1 As XmlTextReader
r1 = New XmlTextReader("c:/1.xml")
//here is the problem!
//how can i get the question from the xml file?
LabelQ.Text = r1.ReadElementString.ToString()//return bag
r1.Close()
End Sub
thanks


 
Old October 23rd, 2004, 01:13 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use ReadXML method of DataSet to read XML in to DataSet and you can do manipulations easily.



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
Read xml data itHighway Classic ASP Basics 4 December 2nd, 2008 04:46 AM
Read xml file Nehru C# 0 October 8th, 2007 04:40 AM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM
Read a XML element value chandler7272 C# 0 June 15th, 2006 02:54 AM
XSLT read through XML to transform another XML dendenx2 XSLT 8 July 7th, 2005 08:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.