XML Schema Problem

5 pts.
Tags:
SQL
SQL Server
SQL Server 2008
XML and XML schema
XML File Creation
hi I have an xml file <UserRoleConsumers> <UserRoleConsumer> <ConsumerID>67</ConsumerID> <RoleConsumerID>89</RoleConsumerID> </UserRoleConsumer> <UserRoleConsumer> <ConsumerID>45</ConsumerID> <RoleConsumerID>78</RoleConsumerID> </UserRoleConsumer> ... .... ... </UserRoleConsumers> while creating a schema for this CREATE XML SCHEMA COLLECTION UserRoleConsumerSchema AS ' <schema xmlns="http://www.w3.org/2001/XMLSchema"> <element name="UserRoleConsumers"> <complexType> <element name="UserRoleConsumer"> <complexType> <sequence> <element name="ConsumerID" minOccurs="1" maxOccurs="1" /> <element name="RoleConsumerID" minOccurs="1" maxOccurs="1" /> </sequence> </complexType> </element> </complexType> </element> </schema>' GO I got a error Msg 2297, Level 16, State 1, Line 1 Element <element> is not valid at location '/*:schema[1]/*:element[1]/*:complexType[1]/*:element[1]'. i'm not abke to find it pls help Thanks

Software/Hardware used:
SQL SERver 2008

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following