I am using SSRS 2008 R2 and am trying to add an XML Data Source via XML File Location. But when I select my XML Location and XSD file, I click on Columns and got this error:
This says:
Error at Data Flow Task [XML Source 1 [5748]]: There was an error setting up the mapping. Reference to undeclared model group 'http://www.w3.org/2001/XMLSchema:redefinable'.
My XSD file begins with:
<xs:schema targetNamespace="https://mhddapps.state.tn.us/Schemas/CrisisAssessment.xsd" blockDefault="#all" elementFormDefault="qualified" version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="EN" xmlns:vs="http://schemas.microsoft.com/Visual-Studio-Intellisense"><xs:import namespace="http://www.w3.org/2001/XMLSchema" />
My XML file begins:
<?xml version="1.0" encoding="UTF-8"?> -<xs:schema version="1.0" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="https://mhddapps.state.tn.us/Schemas/CrisisAssessment.xsd" xmlns="https://mhddapps.state.tn.us/Schemas/CrisisAssessment.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">I'm not sure if this matters, but the XSD file I selected for this XML Source is not the "CrisisAssessment.xsd" file listed above. The XSD file I included code for above is from an XSD file I created called "xsdschema_SCS2.xsd". Does this make sense? How can I use two different XSD files? Or maybe 3, since I'm wanting to import the 2001 XMLSchema?
What am I doing wrong?
Ryan D