Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLTOCURSOR command
Message
From
08/10/2007 12:39:41
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Title:
XMLTOCURSOR command
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01259486
Message ID:
01259486
Views:
105
First of all, I am using VFP 7.

I have a simple XML file:
<?xml version="1.0" encoding="UTF-8"?>
<results xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="c:\vfp\ka\runtime\results.xsd">
	<result>Test</result>
</results>
Here is the schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="results">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="result" type="xs:string"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
I am trying to import the XML file into a cursor with the following command (assume the text of the XML file is already in the variable cText):
XMLTOCURSOR(cText,"TEST")
I get the error: Unable to infer XML schema.

What do I need to do to make this work? Thanks!!!
Very fitting: http://xkcd.com/386/
Next
Reply
Map
View

Click here to load this message in the networking platform