I hope I am just using xmlAdapter wrong. I created a cursor with the fields in the same order as in the .XSD file. However, when I run the code below the XML element names are the field names from my cursor and not the element names in the XSD file. What do I need to do to output XML using the element names in the XSD file?
loXMLAdapter = CreateObject("xmlAdapter")
With loXMLAdapter
.XMLSchemaLocation = "Employees.xsd"
.RespectNesting = .f.
.AddTableSchema("c_empllist")
.ToXML("Payroll.xml", "", .T. )
EndWith
Or have I got it all wrong. Is the line:
.XMLSchemaLocation = "Employees.xsd"
actually telling xmlAdapter to create the Employees.xsd?
Bottom line, I need to create an xml file with the proper element names. How do I?
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn