Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to have vfp cursor or vfp table from a xml file ?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01519336
Message ID:
01519681
Views:
47
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform