Hello gentlemens
Could someone share some example of how to open a xml file and read the xml tags and get data from that tags,
or
refer some technique to find the best way to do it.
Very thanks in advance.
best regards.
Pedro.
get data from an XML file
Re: get data from an XML file
Hi,
I'm using the free Chilkat activeX component.
I'm using the free Chilkat activeX component.
Re: get data from an XML file
Look at the samples in \exp19\samples\xml.
I use the DC_Xml2ObjectTree() and DC_XmlNode() functions.
I use the DC_Xml2ObjectTree() and DC_XmlNode() functions.
The eXpress train is coming - and it has more cars.
Re: get data from an XML file
Chris and Roger.
Thanks for feedback.
DC_Xml2ObjectTree and Dc_XmlNode is working for me .
here is a small sample just for share...
oTree := DC_Xml2ObjectTree( FileXML ) // FileXML is the source file XML
aDataSet := oTree:findNode( 'DataSet' ) // 'Dataset' is the root node
aTable := aDataSet:findNode( 'Table',.t. ) // 'Table' is the subnode
for i :=1 to len(aTable)
oNome := aTable:findNode('NOME')
cNome := oNome:content
oTel := aTable:findNode('TELEFONE')
cTel := oTel:content
oNif := aTable:findNode('NIF')
cNif := oNif:content
NEXT
Best Regards
Pedro
Thanks for feedback.
DC_Xml2ObjectTree and Dc_XmlNode is working for me .
here is a small sample just for share...
oTree := DC_Xml2ObjectTree( FileXML ) // FileXML is the source file XML
aDataSet := oTree:findNode( 'DataSet' ) // 'Dataset' is the root node
aTable := aDataSet:findNode( 'Table',.t. ) // 'Table' is the subnode
for i :=1 to len(aTable)
oNome := aTable:findNode('NOME')
cNome := oNome:content
oTel := aTable:findNode('TELEFONE')
cTel := oTel:content
oNif := aTable:findNode('NIF')
cNif := oNif:content
NEXT
Best Regards
Pedro
Pedro Alexandre