cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the XML data using VB.NET

former_member241304
Active Participant
0 Kudos

Hi,

   I am not knowing how to get the data from xml using vb.net.

Please guide me its urgent to me.

Regards,

P.Pallavi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is how I read XML in .NET. I'm using this for DI Server.

                For Each oFile As String In Directory.GetFiles(YOURPATH, "FILENAME.XML", SearchOption.TopDirectoryOnly)

                    oFileName = Path.GetFileName(oFile)

                    ds = New DataSet

                    ds.ReadXml(oFile)

                    oHeader = ds.Tables("TABLE IN XML").Copy

                    For Each oDr As DataRow In oHeader.Rows

                        MsgBox(oDr("FieldName IN XML"))

                    Next

                Next

Regards,

Bry

Blog: http://www.sap-tips-tricks.com/