I use cursortoxml() in two different applications like this to produce .xml files:
[pre]
select A
set fields to field1,field2
cursortoxml(0,"L_XML",1,32)
strtofile(strconv(L_XML,9),"outfile.xml")
set fields off
[/pre]
In application 1, the table names are prepended with the database name like this in the produced xml:
[pre]<?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
<VFPData>
<dbname_tablename>
<field1>S</field1>
...[/pre]
In application 2, the database name is not included:
[pre]<?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
<VFPData>
<tablename>
<field1>S</field1>
...[/pre]
Can anyone explain how to control this? I want the dabase name always to be included.
Thanks'
[pre]
select A
set fields to field1,field2
cursortoxml(0,"L_XML",1,32)
strtofile(strconv(L_XML,9),"outfile.xml")
set fields off
[/pre]
In application 1, the table names are prepended with the database name like this in the produced xml:
[pre]<?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
<VFPData>
<dbname_tablename>
<field1>S</field1>
...[/pre]
In application 2, the database name is not included:
[pre]<?xml version = "1.0" encoding="UTF-8" standalone="yes"?>
<VFPData>
<tablename>
<field1>S</field1>
...[/pre]
Can anyone explain how to control this? I want the dabase name always to be included.
Thanks'