Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems generating an XML using a XSD file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Problems generating an XML using a XSD file
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01224215
Message ID:
01224215
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform