how to read value from xml file. for example i have booth id stored in xml and i want to read the id number in vb.net. how do i do that.
Could you please post the content of the xml file?
can i post to you private.
i just posted private, actualy i try to get kioskno (from xml) but i have no idea i doesn't want to read the value from xml. i have no idea where goes wrong with the code.
please guide me
Edited 6 Years Ago by swathys: n/a
i really have problem read value from xml. i have no idea whats wrong with the code.
Can anyone HELP ME PLEASE !!!!
this id the code i coded at form load
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load xmlKioskNo = ReadRetailerSettingXML(strXMLPath, 0) Label3.Text = Format(CreditBalance(), "RM" & vbTab & "#,###,###.00") End Sub
and this is i coded at module level
Public Function ReadRetailerSettingXML(ByVal strXMLPath As String, ByVal LoopID As Integer) As String Dim xmlRoot As MSXML.IXMLDOMElement Dim objDOMXML As New MSXML.DOMDocument Dim intNodesLength As Short Dim a As Integer = 0 Dim stroutput As String = "" strXMLPath = RBMKioskPath objDOMXML.resolveExternals = True objDOMXML.validateOnParse = True objDOMXML.async = False Call objDOMXML.load(strXMLPath) xmlRoot = objDOMXML.documentElement If xmlRoot.baseName = "Configuration" Then If xmlRoot.childNodes.item(LoopID).hasChildNodes = True Then intNodesLength = xmlRoot.childNodes.item(LoopID).childNodes.length xmlRoot = xmlRoot.childNodes.item(LoopID).firstChild For a = 0 To intNodesLength - 1 If xmlRoot.attributes.item(0).text = "Knumber" Then xmlKioskNo = xmlRoot.text End If xmlRoot = xmlRoot.nextSibling Next a End If End If objDOMXML.abort() End Function
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Hello All ...
Iam Getting An Error With try to excecute the stored procedure .
I have Have Sql database , the stored procedure like so :
USE [MPRS] GO /****** Object: StoredProcedure [dbo].[Search_Licenses_By_Number] Script Date: 26-Nov-16 8:06:52 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Here is the sample output that I ...