Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
N-Tier Design
Message
De
18/09/2003 19:18:18
 
 
À
18/09/2003 11:14:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00830147
Message ID:
00830512
Vues:
24
Hi Alex.

I had to replace it with a Set Textmerge set of constructs and several Case statements as each record (line) in the flat file format being replaced, has a different structure (PITA).

Obviously you did not have time to checkout this class in Chapter 17 of MegaFox: 1002 Things You Wanted to Know About Extending VFP < vbg >

How do I data-drive the production of XML?( Example: GenerateXml.scx and ExportXML.prg::ExportXML )

As noted above, one of the limitations to using the XMLTOCURSOR() function is that it cannot be used to represent complex relationships between multiple cursors in a single document. Another problem is that when the structure of a cursor changes, so does the generated XML. Fortunately, since we are using Visual FoxPro, it is possible to create a data-driven class that gives us the flexibility we require. However, you should be aware that our sample classes do not account for every single type of node that could be contained in an XML document, nor do they handle DTDs or Schemas. They are intended to show how an XML handling class can be constructed to meet your specific needs.

We designed our metadata to handle the creation of XML from specified cursors as well as the creation of these cursors from an XML document. This metadata is contained in two separate tables. The first one, XMLCURSORS.DBF, holds information about the cursors from which the XML is generated or into which XML is to be imported. Its structure is shown in Table 17.1.

Sheesh! If I knew that you weren't going to use it, I would never have sent you a copy < gd&r >
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform