Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: CursorToXML

$
0
0
Re: CursorToXML
Web Connection 5.0
Re: CursorToXML
Jan. 24, 2013
07:52 am
3P70GW44LShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Todd Landrum
Todd,

There's little reason to use wwXML::CursorToXml() anymore, since CURSORTOXML() and XMLTOCURSOR() (and XMLAdapter) exist natively in VFP.

+++ Rick ---


Looks like there may be a problem with the XMLToCursor and CursorToXML. I'm doing this:

o = CREATEOBJECT("wwXML") * Take a 1 record table and turn it into XMLSELECT CurTest o.nCreateDataStructure = 1 lXML = o.CursorToXml()* Now turn that XML back into a cursor o.XMLToCursor(lXML, "Import") ?o.cErrorMsg

This returns a "Datatype 'decimal' is not supported" in cErrorMsg. The CurTest has a field with a "Currency" data type. The generated lXML has this in it which the XMLToCursor doesn't like:

<ElementType name="wecost" content="textOnly" model="closed" dt:type="decimal"><AttributeType name="type"/><attribute type="type"default="decimal"/><AttributeType name="size"/><attribute type="size"default="20"/><AttributeType name="precision"/><attribute type="precision"default="4"/></ElementType>




Rick Strahl
West Wind Technologies


from Saalfelden, Austria

Making waves on the Web


Viewing all articles
Browse latest Browse all 10393

Trending Articles