Click here to Skip to main content
15,902,914 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionXML Extraction using VB Pin
nhsal6921-Oct-09 22:51
nhsal6921-Oct-09 22:51 
AnswerRe: XML Extraction using VB Pin
Christian Graus21-Oct-09 23:42
protectorChristian Graus21-Oct-09 23:42 
GeneralRe: XML Extraction using VB Pin
nhsal6922-Oct-09 0:19
nhsal6922-Oct-09 0:19 
GeneralRe: XML Extraction using VB Pin
Christian Graus22-Oct-09 0:49
protectorChristian Graus22-Oct-09 0:49 
GeneralRe: XML Extraction using VB Pin
nhsal6922-Oct-09 1:42
nhsal6922-Oct-09 1:42 
GeneralRe: XML Extraction using VB Pin
John M Bundy22-Oct-09 9:07
John M Bundy22-Oct-09 9:07 
GeneralRe: XML Extraction using VB Pin
nhsal6922-Oct-09 21:29
nhsal6922-Oct-09 21:29 
GeneralRe: XML Extraction using VB Pin
John M Bundy23-Oct-09 4:38
John M Bundy23-Oct-09 4:38 
Just because it might be easier for you to work with, take a look at this method. Drag a datagridview onto your form designer and put in the following code, change the table to see your different output. VS is very good at converting between XML and Datasets and vice-versa. If nothing else, the tables will help you visualize the structure of the XML, you can easily see from this sample that size is on a different 'level' than the rest of the data.

Imports System.IO
Public Class Form1
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'load xml into a dataset to use here
        Dim dS As New DataSet
        Dim fS As FileStream
        'open the xml file so we can use it to fill the dataset
        fS = New FileStream("C:\test\10g_2.xml", FileMode.Open)
        'fill the dataset
        Try
            dS.ReadXml(fS)
        Catch ex As Exception
            MsgBox(ex)
        Finally
            fS.Close()
        End Try
        Me.DataGridView1.DataSource = dS.Tables(2)

    End Sub
End Class

Questioncmd.executenonquery not accepting nz function Pin
rabih.tawil21-Oct-09 20:57
rabih.tawil21-Oct-09 20:57 
AnswerRe: cmd.executenonquery not accepting nz function Pin
Ashfield21-Oct-09 21:11
Ashfield21-Oct-09 21:11 
GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil21-Oct-09 21:27
rabih.tawil21-Oct-09 21:27 
AnswerRe: cmd.executenonquery not accepting nz function Pin
Mycroft Holmes21-Oct-09 21:11
professionalMycroft Holmes21-Oct-09 21:11 
GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil21-Oct-09 21:22
rabih.tawil21-Oct-09 21:22 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Mycroft Holmes21-Oct-09 21:33
professionalMycroft Holmes21-Oct-09 21:33 
GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil21-Oct-09 21:36
rabih.tawil21-Oct-09 21:36 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 22:03
protectorChristian Graus21-Oct-09 22:03 
GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil21-Oct-09 22:22
rabih.tawil21-Oct-09 22:22 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 23:15
protectorChristian Graus21-Oct-09 23:15 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Andy_L_J21-Oct-09 22:06
Andy_L_J21-Oct-09 22:06 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 23:41
protectorChristian Graus21-Oct-09 23:41 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Dave Kreskowiak22-Oct-09 1:40
mveDave Kreskowiak22-Oct-09 1:40 
GeneralRe: cmd.executenonquery not accepting nz function Pin
Christian Graus21-Oct-09 23:19
protectorChristian Graus21-Oct-09 23:19 
AnswerRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil22-Oct-09 3:04
rabih.tawil22-Oct-09 3:04 
AnswerRe: cmd.executenonquery not accepting nz function Pin
Dave Kreskowiak22-Oct-09 9:41
mveDave Kreskowiak22-Oct-09 9:41 
GeneralRe: cmd.executenonquery not accepting nz function Pin
rabih.tawil22-Oct-09 9:54
rabih.tawil22-Oct-09 9:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.