Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2003 Server
>I am trying to read in some XML data which matches a worldwide standard, I have the XSD and IE shows the XML fine.
>
>When I call the .LoadXML() of the XMLAdapter it return .T. suggesting all has been read, but the table count is 0 and I can not see any data.
>
>Any ideas?
>
>
>Regards
>
>
>Gar Williams
I've found that you need to set the schema location before loading the XML, something like:
oxa=createobject("xmladapter")
oxa.XMLSchemaLocation="someXSDfile.xsd"
oxa.LoadXML("someXMLfile.xml")
for liTable = 1 TO oxa.tables.Count
oxa.tables.item(liTable).ToCursor()
endfor
HTH
Mike
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement