<?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.