× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,


I have an SQL statement that builds an XML document using XMLELEMENT as follows;


XMLELEMENT(NAME "DescriptionText", TRIM(data))


which goes fine as long as data doesn't contain any special characters, however with data being for example


'My garden is 500 m²'


it doesn't escape the ² (square character) which causes the document to be invalid as it should normally be escaped to ²


The idea was to build a UDF that does this so I could write


XMLELEMENT(NAME "DescriptionText", myUDF(TRIM(data)))


however this results in


'My garden is ²'


which is invalid since XMLELEMENT does escape the standard characters like <, > and &.


It looks like there's no solution to this problem... or how are other people handling this ?


Kind regards,

Paul

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.