Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert header information in an xml file from the xmlada
Message
 
 
À
19/02/2007 16:29:01
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
01197141
Message ID:
01197148
Vues:
14
Would this work for you?
CLOSE DATABASES ALL
OPEN DATABASE (HOME(2) + "data\testdata")
USE testdata!customer
CREATE CURSOR HeaderRec (Author C(20), RecCount I)
INSERT INTO HeaderRec SELECT "John Doe", COUNT(*) FROM customer

oXA = CREATEOBJECT("XmlAdapter")
oXA.AddTableSchema("HeaderRec")
oXA.AddTableSchema("Customer")
oXA.ToXML("Customer.xml",,.T.)
MODIFY COMMAND Customer.xml NOWAIT 
Check also http://www.berezniker.com/x/jgI

>I need to generate an xml file from a cursor that I am creating. I have the xml output generating properly by using the xmladapter class, but I want to insert a header record at the beginning of the XML file with the user information and # of records that are in the xml file. I saw some references on using user created schemas but I could not find and good samples or white papers on this subject. Does anyone
>have any idead where I can find out more about this ?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform