Parse xml in basic


#1

Hello
How can i parse xml in NSbasic?
in vb6 code is:

Dim MiXml As New DOMDocument
 
Private Sub Command1_Click()
jornada = MiXml.selectSingleNode("quinielista/porcentajes").Attributes(0).Text
partido1 = MiXml.selectSingleNode("quinielista/porcentajes/partido[0]").Attributes(1).Text
MsgBox jornada
Label1.Caption = partido1
End Sub
 
Private Sub Form_Load()
 
MiXml.Load ("https://www.quinielista.es/xml2/porcentajes.asp?jornada=20&temporada=2018")
 
 
End Sub

Sincerely


#2

Have a look at the SAP sample - it uses an XML library.

There is also this article:

http://wiki.nsbasic.com/Parsing_XML_files_and_saving_in_a_database