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

Visual Basic

 
GeneralRe: DAll And BLL Template Question Pin
Vimalsoft(Pty) Ltd20-Sep-07 5:28
professionalVimalsoft(Pty) Ltd20-Sep-07 5:28 
GeneralRe: DAll And BLL Template Question Pin
Dave Kreskowiak20-Sep-07 4:33
mveDave Kreskowiak20-Sep-07 4:33 
GeneralRe: DAll And BLL Template Question Pin
Dave Kreskowiak20-Sep-07 4:48
mveDave Kreskowiak20-Sep-07 4:48 
GeneralRe: DAll And BLL Template Question Pin
Vimalsoft(Pty) Ltd20-Sep-07 5:20
professionalVimalsoft(Pty) Ltd20-Sep-07 5:20 
QuestionRunning two projects as one application Pin
saaaas19-Sep-07 17:52
saaaas19-Sep-07 17:52 
AnswerRe: Running two projects as one application Pin
Christian Graus19-Sep-07 18:19
protectorChristian Graus19-Sep-07 18:19 
QuestionExcel - How to read data from an XML file... Pin
Albert Giraudi19-Sep-07 16:37
Albert Giraudi19-Sep-07 16:37 
AnswerRe: Excel - How to read data from an XML file... Pin
Gary Bigman19-Sep-07 21:16
Gary Bigman19-Sep-07 21:16 
Hi Albert,

There are various ways to read an XML. Some of the standard ways which you can use are –

1. Use the various custom controls available in the market (they are ready to use and easy too).
2. Use the XMLTextReader class which is derived from XMLReader.

Here is some basic code which can be utilized in your application –

*************************Code Part*************************
Imports System.
Imports System.Xml

' Open an XML file.
Dim textValue as String
Dim localName as String

Dim textReader As XmlTextReader = New
XmlTextReader (My.applicatin.Info.DirectoryPath & "\xmltest.xml").

textReader.Read()
If textReader.HasValue Then
' Move to fist element
textReader.MoveToElement()

localName=textReader.LocalName
textValue=textReader.Value.ToString()

‘ You can put your custom code to write the value to an Excel file from here onwards.

*************************End of Code*************************

Albert hope this helps you to get your application up and runningSmile | :) . Have a nice day.

Regards,

Gary Bigman.

Software Engineer
ComponentOne LLC
www.componentone.com
GeneralRe: Excel - How to read data from an XML file... Pin
Albert Giraudi20-Sep-07 16:13
Albert Giraudi20-Sep-07 16:13 
QuestionForm Load Pin
Jodd19-Sep-07 14:04
Jodd19-Sep-07 14:04 
AnswerRe: Form Load Pin
Luc Pattyn19-Sep-07 15:42
sitebuilderLuc Pattyn19-Sep-07 15:42 
GeneralRe: Form Load Pin
Jodd19-Sep-07 22:51
Jodd19-Sep-07 22:51 
AnswerRe: Form Load Pin
helelark12319-Sep-07 20:21
helelark12319-Sep-07 20:21 
AnswerRe: Form Load Pin
Tom Deketelaere19-Sep-07 20:43
professionalTom Deketelaere19-Sep-07 20:43 
GeneralRe: Form Load Pin
Jodd19-Sep-07 22:52
Jodd19-Sep-07 22:52 
QuestionVB 6 and VB.net 2003 Network objects Pin
Phill_Goin19-Sep-07 12:27
Phill_Goin19-Sep-07 12:27 
AnswerRe: VB 6 and VB.net 2003 Network objects Pin
Gary Bigman19-Sep-07 22:14
Gary Bigman19-Sep-07 22:14 
GeneralRe: VB 6 and VB.net 2003 Network objects Pin
Phill_Goin20-Sep-07 2:30
Phill_Goin20-Sep-07 2:30 
GeneralRe: VB 6 and VB.net 2003 Network objects Pin
Dave Kreskowiak20-Sep-07 4:06
mveDave Kreskowiak20-Sep-07 4:06 
GeneralRe: VB 6 and VB.net 2003 Network objects Pin
Phill_Goin20-Sep-07 15:35
Phill_Goin20-Sep-07 15:35 
QuestionConcurrency Violation: the update command affected 0 of the expected 1 records.? Pin
Mr Oizo19-Sep-07 12:26
Mr Oizo19-Sep-07 12:26 
AnswerRe: Concurrency Violation: the update command affected 0 of the expected 1 records.? Pin
Dave Kreskowiak20-Sep-07 4:02
mveDave Kreskowiak20-Sep-07 4:02 
GeneralRe: Concurrency Violation: the update command affected 0 of the expected 1 records.? Pin
Mr Oizo20-Sep-07 8:25
Mr Oizo20-Sep-07 8:25 
Questionjava Pin
kendo1719-Sep-07 8:12
kendo1719-Sep-07 8:12 
AnswerRe: java Pin
Dave Kreskowiak19-Sep-07 8:27
mveDave Kreskowiak19-Sep-07 8:27 

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.