SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


XML Validation: Declaration not found for element


XML Validation: Declaration not found for element

Author
Message
Kayal-717623
Kayal-717623
SSC-Enthusiastic
SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)

Group: General Forum Members
Points: 120 Visits: 290
Sorry guys, I guess the code was not added to my last post. So I am attaching it this time.

I am running into an issue using SQL Server 2005 while trying to use an XML Schema to Validate XML data to be inserted into a table. Any help in solving this issue would be greatly appreciated.

I receive this error:

Msg 6913, Level 16, State 1, Line 1
XML Validation: Declaration not found for element 'Additional'. Location: /*:Additional[1]

Please find attached the XML code and the insert statement i am using:

Thanks,
Kayal
Attachments
Error.txt (64 views, 1.00 KB)
Kayal-717623
Kayal-717623
SSC-Enthusiastic
SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)SSC-Enthusiastic (120 reputation)

Group: General Forum Members
Points: 120 Visits: 290
Sorry guys, I guess this editor doesnot display xml tags .. So I have attached the code above.

Thanks for your time,
Kayal
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search