XMLTOCURSOR("books.xml","test",512)When I tried to use XMLTOCURSOR I got the error "XML Parse error: Required white space was missing. Line 3, Position 54." I removed the semicolon in that line";" and tried again and got "msxml3.dll : Required white space was missing." I also removed the semicolon in the XSD file and got the same error.
o=CREATEOBJECT("XMLAdapter") o.LoadXML("books.xml",.T.) o.Tables.Item(1).ToCursor() BROW LAST NOWAITI added back the semicolons and tried to parse the XML using the DOM parser, multiple versions. If it won't load using the DOM parser, neither XMLTOCURSOR nor XMLAdapter will ever work. And if it won't load with the DOM parser, I consider it an Office problem and not a VFP problem.
o=CREATEOBJECT("msxml.domdocument") IF NOT o.load("books.xml") ?o.parseError.reason ENDIF o=CREATEOBJECT("msxml2.domdocument.2.6") IF NOT o.load("books.xml") ?o.parseError.reason, o.parseError.srcText ENDIF o=CREATEOBJECT("msxml2.domdocument.3.0") IF NOT o.load("books.xml") ?o.parseError.reason, o.parseError.srcText ENDIF o=CREATEOBJECT("msxml2.domdocument.4.0") IF NOT o.load("books.xml") ?o.parseError.reason, o.parseError.srcText ENDIF o=CREATEOBJECT("msxml2.domdocument.5.0") IF NOT o.load("books.xml") ?o.parseError.reason, o.parseError.srcText ENDIF o=CREATEOBJECT("msxml2.domdocument.6.0") IF NOT o.load("books.xml") ?o.parseError.reason, o.parseError.srcText ENDIF> I am kinda hoping there is something that needs to be set in Access because it is "old and behind" and make this work :), but we have had issues with XmlToCursor and CursorToXml() not writing/reading stuff other platforms can read/write.