↧
From: | Rick Strahl |
To: | Todd Landrum |
There's little reason to use wwXML::CursorToXml() anymore, since CURSORTOXML() and XMLTOCURSOR() (and XMLAdapter) exist natively in VFP.
+++ Rick ---
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>