Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Category:
Coding, syntax & commands
Environment versions
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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only