Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XmlToCursor() to ignore the XSD
Message
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Miscellaneous
Thread ID:
01673054
Message ID:
01673070
Views:
47
VFP9 SP2

>Which VFP version are you using?
>
>>If I remove it from the XML, the error goes away.
>>
>>>Why do you think it's caused buy XML schema part in XML?
>>>
>>>>"The system cannot locate the object specified"
>>>>
>>>>>What error do you get?
>>>>>
>>>>>>
>>>>>>Is it possible to make the VFP function XMLTOCURSOR() to ignore the XSD file in the .XML?
>>>>>>
>>>>>>I have a case where many XML files (not used by VFP but by a .NET application) have the XSD. Here is an example of a top of such XML file:
>>>>>>
>>>>>><?xml version="1.0" encoding="utf-8" ?>
>>>>>><EmailList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>>>>>>	xsi:noNamespaceSchemaLocation="EmailList.xsd" >
>>>>>>	<Contact>
>>>>>>		<FirstName>John</FirstName>
>>>>>>
>>>>>>
>>>>>>What happens is .NET has not problem that the XML file references an XSD file but the EmailList.xsd does not exit. .NET opens this XML and converts to dataset without any issues.
>>>>>>But when I try to use this XML from VFP, I get an error. One option for me is to manually remove the reference to the XSD file from each customer. Some work.
>>>>>>But if there is a way to make the VFP function ignore the reference to XSD, it would be better.
>>>>>>
>>>>>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform