<Record> <FirstName>John</FirstName> <LastName>Smith</LastName> </Record> <Record> <FirstName>Paul</FirstName> <LastName>Kelly</LastName> </Record>So, as you can see, the file does not have the typical top line:
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>And it does not have the Root Element, such as, for example:
<VFPData> </VFPData>And I want to load this text file into a cursor using the code:
XMLTOCURSOR( "MyTextFile.txt", Cur_Name, 512+8192)I know that I can retrieve the string using STRTOFILE() and then add the top line and the Root Element. But that would be slow since the entire text file would have to be first loaded into a string. Is it possible to load the above text file into a cursor and add the top line and the Root Element on-the-fly?