Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems generating an XML using a XSD file
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
Problems generating an XML using a XSD file
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01224215
Message ID:
01224215
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform