I am using XMLAdapter() using LoadXML() to load an XML file. One of the tables in the group gives me NULL values. If I hand type those values in the XML file, I can get the values reflected in the table.
Can't tell you without seeing the XML. What could be a reason, is that there are no structural informations within the XML about the data, that is no embedded schema.
Predefining cursor(s) for LoadXML can solve that problem. I assume that is what you do when you say you're "hand typing those values".
I don't have the time. One thing catching my eye: The XML Encoding is "UTF-8", with all your fumbling with FILETOSTR() and STRTOFILE() you're changing this encoding to ANSI and XMLAdapter perhaps fails because of that.
There is no reason to change the XML to point to the file location o the XSD file, you can set the XSD schema via the XMLSchemalocation property of the XMLAdapter. This overrides what location is encoded in the XML. Only if you set XMLSchemalocation to "1" an inline schema or a schema reference in the XML will be searched.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.