Click here to Skip to main content
15,917,059 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: A very simple question with a twist Pin
Steve Westbrook22-Oct-09 2:22
Steve Westbrook22-Oct-09 2:22 
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 
Fantastic.. it's working....

here is the final code :



Try

    Dim odoc As New System.Xml.XmlDocument
    odoc.Load("C:\test\10g_2.xml")
    Dim oXmlLog As System.Xml.XmlElement
    Dim text As String = ""
    For Each oXmlLog In odoc.SelectNodes("Root")
        Dim node As System.Xml.XmlElement
        For Each node In oXmlLog.SelectNodes("Folder")
            Dim fullpath As String = node.Attributes.GetNamedItem("fullpath").Value

            'Dim SizeData As String = node.Attributes.GetNamedItem("SizeData").Value

            Dim subnode = node.SelectSingleNode("Name")
            Dim name As String = subnode.InnerText

            Dim subnode2 = node.SelectSingleNode("SizeData")
            Dim SizeData As String = subnode2.Attributes.GetNamedItem("Size").Value


            Dim Date_ As XmlElement = odoc.DocumentElement
            Dim Date_time As XmlNodeList = Date_.ChildNodes
            Dim Date__time = (Date_time(0).InnerText)



            text &= Date__time & " " & fullpath & " " & name & " " & SizeData & Environment.NewLine
        Next
    Next

    Console.Write(text)
    Console.Read()
Catch ex As Exception
    Console.Write(ex.ToString())
    Console.Read()
End Try


Now I just need to get it to pass this info to SQL..
Thanks again...
GeneralRe: XML Extraction using VB Pin
John M Bundy23-Oct-09 4:38
John M Bundy23-Oct-09 4:38 
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 

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.