"Rajender" <reddymade@hotmail.com> wrote in message news:3be601c4ab27$a46c1f00$a301280a@phx.gbl...[color=blue]
> Because of the field eventdate which is dt:datetime in my
> xsd file.
>
> ******* MY XSD file
> <?xml version="1.0" ?>
> <Schema xmlns="urn:schemas-microsoft-com:xml-data"[/color]
: :
This is not an XSD file -- it is an XDR mapping schema.
If you're using this as the mapping schema for an SQL
Server 2000 Updategram, then you're probably missing
one of the type attributes on the eventdate element that
tells SQL Server 2000 you have an XML Schema ISO
8601 datetime,
<ElementType
name="eventdate"
xs:type="xs:dateTime"
sql2:type="dateTime"
dt:type="DateTime" />
and add the appropriate xmlns declarations to the
Schema element,
<Schema
xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dt="urn:schemas-microsoft-com:xml:datatypes"
xmlns:sql2="urn:schemas-microsoft-com:mapping-schema"
xmlns:sql="urn:schemas-microsoft-com:xml-sql" >
I'd also refer you to Daniel Cazzulino's solution on SQL XML
(one difference is it employs an XML Schema document as the
mapping schema, not an XDR),
http://www.sqlxml.org/faqs.aspx?faq=67
HTH,
Derek Harmon