Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CURSORTOXML() and C Binary
Message
From
22/11/2005 13:54:05
 
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01071246
Message ID:
01071262
Views:
21
Hi,

So the documentation (as per the "XML Functions" link from CURSORTOXML()) IS incorrect ?

I can think of a few things to try to work around this - but any suggestions as to the simplest working solution ?

Regards,
Viv

>AFAIK, only memo/binary is converted "properly" (encoded) by CURSORTOXML().
>
>>I have a cursor with a character binary field. AFAICS the docs state that field of this type are rendered as
<xsd:encoding value="base64"/>
however the relevant XSD generated by CURSORTOXML() is:
>>
>><xsd:element name="layout1">
>>  <xsd:simpleType>
>>    <xsd:restriction base="xsd:string">
>>      <xsd:maxLength value="5"/>
>>    </xsd:restriction>
>>  </xsd:simpleType>
>></xsd:element>
>>
>>
>>Needless to say a subsequent XMLTOCURSOR() chokes on this. Am I mis-reading - or, more importantly, what's the simplest way of fixing this?
>>
>>Regards,
>>Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform