You can create a string with XML structure and use XMLToCursor function:
lcMyXSD="Sales.xsd"
TEXT TO lcXML NOSHOW TEXTMERG
<?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
<VFPData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="<<lcMyXSD>>"/>
ENDTEXT
?XMLToCursor(lcXML,lcMyCursor,0)
UpdateI didn't see you need it with XMLAdapter, but it's the same:
oXML = CREATE("XMLAdapter")
oXML.LoadXML(lcXML,.F.)
WITH oXML.Tables(1)
.Alias = lcMyCursor
.ToCursor()
ENDWITH
HTH
>Hello,
>Got an XML newbie question. I have an XSD file (2, actually. One including the other.) provided by a 3rd party. I need to create the XML according to this schema. Is there a way to load this XSD into the XMLAdapter to get empty cursors? Or, if I need to attach the appropriate cursors myself, is there some tool available to help read the XSD?
>Thanks in advance
>Dan Goodwin
>Primary Data Solutions