Re: Problem inserting XML with DTD
- From: "Erwin Gabler" <sqlserver1.5.Egabler@xxxxxxxxxxxxxxx>
- Date: Tue, 9 May 2006 08:41:17 +0200
Hello Tobias,
thank you for the response.
Unfortunately not using DTDs is currently not an option (large set of
technical documentation from customer, who is not prepared for switching to
schemas).
So if we decide to work with SQL-Server we will need some kind of
workaround:
usage of partial schemas for indexing (performance) purposes
storage of XML with resolved entities
....
Anyway, a very important requirement is to reproduce an identical copy of
the original document on store/retrieve operations. We will therefore need
some type of replace/restore operations (the way you mentioned in your
response). As an alternative we could try to store a copy of the original
XML to a simple "varchar" column. The first solution has the disadvantage of
producing extra computational overhead. It also ev. manipulates the original
document structure (ev. infuencing search operations). The second solution
produces redundant data with possible problems on data modification
activities.
Kind regards,
Erwin
"Tobias Thernström" <ttnospam@xxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:ufcBW6pbGHA.4716@xxxxxxxxxxxxxxxxxxxxxxx
Hello Erwin,
Since DTDs are not supported by SQL Server (but XML Schemas are :-) ) you
will have to replace the ü with something else (like <uuml/>, ü
or ü) and then replace it again on the client side (with ü) when you
fetch it back to the client.
You should however consider not using DTDs.
HTH
/Tobias
.
- References:
- Problem inserting XML with DTD
- From: Erwin Gabler
- Re: Problem inserting XML with DTD
- From: Tobias Thernström
- Problem inserting XML with DTD
- Prev by Date: Re: Tracing SQL2005 XML Errors
- Next by Date: Re: Query in Xml
- Previous by thread: Re: Problem inserting XML with DTD
- Next by thread: Syntax XQuery
- Index(es):
Relevant Pages
|