Link to home
Start Free TrialLog in
Avatar of mcrmg
mcrmg

asked on

XML PATH to keep html

Hi,

I use XML PATH to combine text in SQL, it works well.  But in some text, I have symbols, such as <, >.  After using the XML PATH, it turns into &lt; or &gt;.

Is there a way to keep what it was ?  thanks
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

No, you have to reconvert them because those symbols are also used as tag delimiters in XML.  The basic example from http://www.w3schools.com/xml/default.asp  They are changed into 'entities' so they won't interfere with the XML formatting.

<?xml version="1.0"?>
<note>
    <to>Tove</to>
    <from>Jani</from>
    <heading>Reminder</heading>
    <body>Don't forget me this weekend!</body>
</note>

Open in new window

Avatar of mcrmg
mcrmg

ASKER

I see, so basically, I have to use replace function? thanks
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial