Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have vfp cursor or vfp table from a xml file ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01519336
Message ID:
01519681
Vues:
48
hi yuri,

thank ! i have now 2 cursors.

But i can't get records ?
  * Load XML
  oXA = CREATEOBJECT("XmlAdapter")


  oXA.RESPECTNESTING = .F.
  oXA.XMLSCHEMALOCATION='MR.xsd'

  oXA.LOADXML( 'MR.xml',.T.)
  

  FOR i=1 TO oXA.TABLES.COUNT
oXA.TABLES(i).TOCURSOR()
  ENDFOR
>>hi all,
>>
>>
>>* Load XML
>>oXA = CREATEOBJECT("XmlAdapter")
>>
>>
>>oXA.RespectNesting = .T.




>>oXA.LoadXML( 'MR.xml',.T.)
>>oXA.XMLSchemaLocation='MR.xsd'
>>
>>
>>FOR i=1 TO oXA.Tables.Count
>>	oXA.Tables(i).Tocursor()
>>ENDFOR
>>
>>
>>MR.xlm and MR.xsd are in attachment But i don't have cursor or table ...
>>Why ?
>>
>>
>>thank in advance for help
>>
>>bernhart
>
>
>Look on solutions for "XML Schema is too complex".
>Other than that, I believe that .XMLSchemaLocation should go before .LoadXML.
>
>Good Luck
>
>Yuri Rubinov
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform