Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create empty cursors from XSD?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Divers
Thread ID:
00963628
Message ID:
00963652
Vues:
7
You can create a string with XML structure and use XMLToCursor function:
lcMyXSD="Sales.xsd"
TEXT TO lcXML NOSHOW TEXTMERG
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<<lcMyXSD>>"/>
ENDTEXT
?XMLToCursor(lcXML,lcMyCursor,0)
Update
I didn't see you need it with XMLAdapter, but it's the same:
oXML = CREATE("XMLAdapter")
oXML.LoadXML(lcXML,.F.)
WITH oXML.Tables(1)
  .Alias = lcMyCursor
  .ToCursor()
ENDWITH
HTH
>Hello,

>Got an XML newbie question. I have an XSD file (2, actually. One including the other.) provided by a 3rd party. I need to create the XML according to this schema. Is there a way to load this XSD into the XMLAdapter to get empty cursors? Or, if I need to attach the appropriate cursors myself, is there some tool available to help read the XSD?

>Thanks in advance

>Dan Goodwin
>Primary Data Solutions
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform