Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create xml file with a schema.
Message
De
24/11/2006 06:33:16
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
24/11/2006 05:32:01
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
01172211
Message ID:
01172231
Vues:
18
John the schema is like the table definition in VFP is what identifies the fields names and also what are their type, so my oppinion for you is the following, 1st identify what is the XML format that the other app is expecting, just like a table definition, with what field names and data types, after that as I said do your Select statment to generate a cursor that conforms with that definition, once this is done the call the CURSORTOXML and that will generate the XML with the Schema that you want.
If the other Sofware has a Schema already predefined on the XMLTOCURSOR you can also specify what is the schema file you want to use when generating your XML.
For more info see the XMLTOCURSOR function in VFP Help.


>Thanks Alexandre,
>
>Unfortunately I don't understand what a schema is or how to use it. The reference text I have has the following text in it.
>
>"<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ros.ie/schemas/p35l/v3/" xmlns:ros="http://www.ros.ie/schemas/rostypes/" targetNamespace="http://www.ros.ie/schemas/p35l/v3/" elementFormDefault="qualified" attributeFormDefault="unqualified">
>	<xsd:import namespace="http://www.ros.ie/schemas/rostypes/" schemaLocation="../../rostypes/schema.xsd"/>"
>
>
>In order to create the XML file do I have to tell CursorToXML() to use this schema from the location specified in the text above.
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform