Artemination
Artemination

Reputation: 723

How to upper case xml with special character in sql server?

I need to upper case a XML, but the xml could have some special characters like < & " so I replace them in the XML with (&lt;) (&amp;) (&quot;), then when I do the ucase with upper I get this:

XML parsing: line 1, character 387, well formed check: undeclared entity

How can avoid this? so I can ucase my XML?

Parsing xml with Special Characters in SQl Server

Upvotes: 0

Views: 546

Answers (1)

davmos
davmos

Reputation: 9577

XML character entity references must be lower-case. So, you could try upper-casing before encoding the special characters.

Upvotes: 1

Related Questions