I try to use, within VFP8, the XMLAdapter to open an XML file containing
multiple (4) tables.

oXMLAdapter = NEWOBJECT('XMLAdapter')
oXMLadapter.LoadXML('M:\Edipax\order.xml',.T.)
oXMLAdapter.Tables(1).ToCursor()

up to there it works fine.

but when i try

oXMLAdapter.Tables(2).ToCursor()

i got an error "no existing member in the collection".

Thanks in advance for help,

Kind regards,

Guy

Re: XMLAdapter and multiple tables by Sietse

Sietse
Fri Sep 17 17:15:00 CDT 2004

Hi Guy

The XMLAdapter in VFP8 has capabilities for reading multiple table XML, I've
seen it in action.
Your XML probably contains hierarchical XML tables from a SQL server. This
gets retrieved into the XML adapter. The main table is the 1st table in the
tables collection. Child tables are accessable through the childtable
property of the XMLtable. Take a look at it in the VFP help

HTH,
Sietse Wijnker

BTW, if this help isn't sufficient, please post your XML.


"Guy Colsoul" <guy.colsoul@ineo.be> wrote in message
news:414b1343$0$8984$6c56d894@feed0.news.be.easynet.net...
>I try to use, within VFP8, the XMLAdapter to open an XML file containing
> multiple (4) tables.
>
> oXMLAdapter = NEWOBJECT('XMLAdapter')
> oXMLadapter.LoadXML('M:\Edipax\order.xml',.T.)
> oXMLAdapter.Tables(1).ToCursor()
>
> up to there it works fine.
>
> but when i try
>
> oXMLAdapter.Tables(2).ToCursor()
>
> i got an error "no existing member in the collection".
>
> Thanks in advance for help,
>
> Kind regards,
>
> Guy
>
>