Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sarahmfr
Posting Yak Master
214 Posts |
Posted - 2011-11-30 : 16:40:43
|
I have a data flow with xml source flat filethe source file name is a variable I got the following errorwas unable to process the XML data. Invalid character in the given encoding. i am using unicode dt_wstr for the input and outputany suggestionmy schema has the following<?xml version="1.0"?><xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="SP2AnnouncementInfo"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="AnnouncementInfo"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="SectionNumber" type="xs:unsignedInt" /> <xs:element minOccurs="0" name="SP2SectionID" type="xs:unsignedInt" /> <xs:element minOccurs="0" name="AcademicPeriod" type="xs:string" /> <xs:element minOccurs="0" name="Subject" type="xs:string" /> <xs:element minOccurs="0" name="Body" type="xs:string" /> <xs:element minOccurs="0" name="SendEmail" type="xs:unsignedByte" /> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>Thankssarah |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-12-01 : 00:44:54
|
the schema looks fine. can you post part of xml from document which errored?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|