views:

19

answers:

1

All,

I am inserting as xml datatype in a table, an XSLT document. Somewhere in my XSLT document I am using the character

< 

for a reason. However when inserting to the table, the SQL Server replaces the

< 

with

<

Any ideas how to store it without having SQL Server to change it?

Thanks,

M

+2  A: 

&#60; is the character < and this is the same as &lt;. XML is not a string. Two different representations can encode the same underlying XML and correctly written applications cannot distinguish between them. If your application relies on &#60; to exists in the XML, it cannot be correct.

Remus Rusanu
The reason I need it is because I am replacing a string with XML tags in XSLT. <xsl:with-param name="substringOut" select="''</coord><coord>''" />
koumides
See http://stackoverflow.com/questions/31870/using-a-html-entity-in-xslt-e-g-nbsp
Remus Rusanu