Dim stentyper As XmlNodeList = doc.GetElementByTagName("stentype")
Error 1 'GetElementByTagName' is not a member of 'System.Xml.XmlDocument'. C:\Documents and Settings\Administrator\Lokale indstillinger\Application Data\Temporary Projects\WindowsApplication1\Form1.vb 26 40 WindowsApplication1
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim doc As XmlDocument = New XmlDocument doc.Load("C:\stentyper.xml")
Dim stentyper As XmlNodeList = doc.GetElementByTagName("stentype") For Each stentype As XmlNode In stentyper Dim navn As String = stentype.ChildNodes(0).FirstChild.Value Dim laengde As String = stentype.ChildNodes(1).FirstChild.Value Dim bredde As String = stentype.ChildNodes(2).FirstChild.Value Dim hoejde As String = stentype.ChildNodes(3).FirstChild.Value Dim pris As String = stentype.ChildNodes(4).FirstChild.Value
Du er en gud :) Mange tusind tak for hjælpen. Min far bliver glad ;)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.