leave special character as is in sql xml path('')
up vote
0
down vote
favorite
I have a query
select name, address, description from table1 for xml path('co'), type
but when there's special character in any column, it gets replaced with HTML code. How do i get it to leave that as is and not converting it to html code? Please advise. Thank you so much
sql xml
add a comment |
up vote
0
down vote
favorite
I have a query
select name, address, description from table1 for xml path('co'), type
but when there's special character in any column, it gets replaced with HTML code. How do i get it to leave that as is and not converting it to html code? Please advise. Thank you so much
sql xml
It is converted to XML. What else do you expect?
– Salman A
Nov 9 at 22:55
I would like for it to stay as & instead &
– user3731575
Nov 10 at 23:04
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a query
select name, address, description from table1 for xml path('co'), type
but when there's special character in any column, it gets replaced with HTML code. How do i get it to leave that as is and not converting it to html code? Please advise. Thank you so much
sql xml
I have a query
select name, address, description from table1 for xml path('co'), type
but when there's special character in any column, it gets replaced with HTML code. How do i get it to leave that as is and not converting it to html code? Please advise. Thank you so much
sql xml
sql xml
asked Nov 9 at 22:15
user3731575
617
617
It is converted to XML. What else do you expect?
– Salman A
Nov 9 at 22:55
I would like for it to stay as & instead &
– user3731575
Nov 10 at 23:04
add a comment |
It is converted to XML. What else do you expect?
– Salman A
Nov 9 at 22:55
I would like for it to stay as & instead &
– user3731575
Nov 10 at 23:04
It is converted to XML. What else do you expect?
– Salman A
Nov 9 at 22:55
It is converted to XML. What else do you expect?
– Salman A
Nov 9 at 22:55
I would like for it to stay as & instead &
– user3731575
Nov 10 at 23:04
I would like for it to stay as & instead &
– user3731575
Nov 10 at 23:04
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233951%2fleave-special-character-as-is-in-sql-xml-path%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It is converted to XML. What else do you expect?
– Salman A
Nov 9 at 22:55
I would like for it to stay as & instead &
– user3731575
Nov 10 at 23:04