I've been banging my head against the wall on this for a few days now. I have what I think is some pretty simple XML (with associated XSD) that I need to load into a cursor. Using the following code I can get the cursors created but the data will not load. Forgive me in advance as this is the first time that I've used XMLAdapter and XML in general.
loXMLAdapter = CREATEOBJECT("XMLAdapter")
loXMLAdapter.XMLSCHEMALOCATION = 'c:\temp\postalConfig.xsd'
loXMLAdapter.RespectNesting = .T.
loXMLAdapter.LOADXML([c:\temp\postalConfig.xml], .T. )
IF loXMLAdapter.ISLOADED
FOR EACH loTable IN loXMLAdapter.TABLES
lotable.TOCURSOR()
NEXT
ENDIF
I'm hoping it's something simple and that there's an easy way of getting the data loaded without having to write a custom XML parser to load the data that XMLAdaptor has already read.
I've attached a zip file containing the XML and XSD files.
Any and all help will be greatly appreciated!
Thank you.
Bruce Crane
Software Engineer
Regulus Integrated Solutions, LLC - Napa