How to query xml data with namespaces
I'm using SQL Server, and am trying to import data from an XML file into a table. The problem I am having is that it is not importing any of the data. From some testing and editing the XML data I found out that the namespaces are the problem. If I delete the xmlns:i and xmlns from the XML data, as well as anything referencing namespaces from the query, then it imports the data; but if I keep them it doesn't import any data. There are no crashes or errors or anything, my data just does not get imported. My XML data looks like this: <Customers> <Customer xmlns:i="http://www.w3.org/2001/XMLSchema
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.