Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursors created but no data
Message
De
18/04/2013 13:35:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Titre:
Cursors created but no data
Divers
Thread ID:
01571384
Message ID:
01571384
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform