Hi,
There is only one cursor/file created with a field structure as specified in the XML file. See this link
http://www.code-magazine.com/article.aspx?quickid=0301092&page=1Multiple files can only handled in a .Net Dataset as far as I know.
>Hi Neil, thanks for your reply.
>
>I was lao getting an error when I tried to access the file
> index or expression does not match member of the collection
>
>My Code Is:
>adapter = CREATEOBJECT("XMLADAPTER")
>x=Adapter.LoadXML("RAAP.XML",.T.)
>Adapter.Tables(1).ToCursor()
>
>
>The Adapter.tables gives the error, even though I can see the file in Dot Not.. seems to have 3 differnt files .
>
>How do I know how many files.. Is there a Tables(Count) or similar ?
>
>Regards,
>
>gerard
>
>
>
>>Hi,
>>XMLTable.ToCursor( [ lAppend [, cAlias [, nCodePage ]]] )
>>
>>Use an alias to access the cursor, otherwise it ends up with the same name as the input file.
>>
>>>Hi.
>>>adapter.Tables(1).ToCursor()
>>>
>>>Anybody know waht the ToCursor method does.
>>>How do you access the cursor that's created ?
>>>
>>>Regards,
>>>Gerard
Regards N Mc Donald