You need a schema that specifies the data type of each field. When you do CURSORTOXML, one of the parameters specifies to save the schema. You can save it with the XML or in a separate file.
>I have an xmlstring like this created with cursortoxml:
>
>
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
><VFPData>
> <ccoutput>
> <ctxt>test group 1</ctxt>
> <iid>1</iid>
> </ccoutput>
></VFPData>
>
>
>coming from a cursor (ctxt c(30),iid I)
>when I convert to a cursor again with xmltocursor the integer field iid is .t. instead of 1
>
>how can I get around this problem. Can I somehow on the cursortoxml statement include a schema?
>???
>
>
>thanks
>
>Peter
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer