Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLtoCURSOR error
Message
From
14/04/2011 07:53:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/04/2011 07:27:29
George Lechintan
Independent consultant
Sebes, Romania
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01507271
Message ID:
01507278
Views:
70
>Trying co create a cursor from a memo field that contains a xml structure.
>(The memo field is in fact on a remote view of a Access table).
>
>I tryed to validate the contents with the free validator from http://www.w3schools.com/xml/xml_validator.asp and it gives no errors.However, VFP gives "XML parse error" (image attached).
>
>Any advice is welcome.
>
>Thanks.

Without seeing the XML itself it is hard to tell but based on the partial view in image I would first try:
local xml
xml = textmerge( '<data><< myMemo >></data>' )
XMLToCursor( m.xml, "MyCursor" )
XMLToCursor can process one level (single table) XML. In image looks like there is no root node and directly leaf nodes.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform