How do I remove & amp; from XML?

Hello,
DB: 11.1.0.7.0
I am trying to use XMLAGG to concatenate multiple fields delimited by "|". However, if the fields have characters like "&" or "<" they are being transformed in the XML. How do I convert them back?
SELECT rtrim (xmlagg (XMLELEMENT (E, mck.concatenated_segments||', ')).extract ('//text()'),', ') concatenated_segments
  FROM mtl_category_sets mcs,
       mtl_item_categories mic,
       mtl_categories_kfv mck
WHERE mcs.category_set_name = 'LiDestri Costing Sub Category'
       AND mic.inventory_item_id = 5862
       AND mic.organization_id = 98
       AND mic.category_set_id = mcs.category_set_id
       AND mck.category_id = mic.category_id
       AND mck.structure_id = mcs.structure_idResult (space added so it is not converted in html)
BRANDY &lt ;= 170 PROOFDesired Result
BRANDY <= 170 PROOFHow can I convert it to remove the & amp; type symbols?
Thanks in advance,
--Johnnie                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi Johnnie,
Use XMLCast :
select rtrim(
         xmlcast(
           xmlagg(
             xmlelement(e, mck.concatenated_segments || ', ')
           as varchar2(4000)
       ) as concatenated_segments
from ...

Similar Messages

  • To remove "&amp" from XML generated file.

    Dear All,
    I am facing one problem, when XML file is getting generated.
    Here when ever special character comes like "&", it shows me in the output of XML file as "&amp".
    How should it be avoided? Pls require some suggestions.

    Dear Jorg,
    Ya that's absolutely true, as i am not getting any error but want to fix that because when i download that XML file, after that i have to again upload that to some portal.
    So i request for the solution if anything could be done with it.
    Thank You
    Vishvesh

  • How to remove Unicode from XML file

    I get following error when unmarshal xml:
    [java] org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x15) was found in the element content of the document.
    Anyone know how to remove Unicode from xml file? Can I remove the unicode by rebuild the file?
    Thanks

    These sort of error usually occur when you're using a different character encoding to read the file than the one you wrote it with. Perhaps if you were to post the problem section of the file and/or the code that created it in the first place.

  • HOw Can I remove faces from the URL

    I know that it's in the web.xml file but as soon as i remove the faces part from the file nothing works. Someone please tell me how to properly remove "faces" from the url. Example http:.//localhost:8080/croot/Page1.jsp
    Thanks in advance

    I know that it's in the web.xml file but as soon as i remove the faces part from the file nothing works. Someone please tell me how to properly remove "faces" from the url. Example http:.//localhost:8080/croot/Page1.jsp
    Thanks in advance

  • Remove element from xml using dom.

    i want to remove an element from an xml file using dom.
    i remove the element but the whole content of the file is also deleted.
    how can i rewrite the file.

    vij_ay wrote:
    subject :Remove element from xml,but if empty element in input file then output should be <tag></tag>, not like <tag.xml/>I assume you mean <tag/> but why do you want this? Any application that will not accept this valid XML construct is flawed and a bug report should be raised against it.

  • How do i remove money from 1 itunes account to another ?

    How Do I Remove Money From One Itunes Account To Another ?

    See:  More Like This    To the right -->

  • I've had three laptops all connected to my itunes account, one was stolen, the other broke, how can I remove them from my itunes account?

    So, in three years, after getting an iphone and an apple account I've had to replace a laptop twice due to theft or damage. When I link my phone to my new computer, it asks me if I want to connect the computer with the phone and I say yes, but you can only have 5 devices connected to one account, since one was stolen, and the other laptop broke, how do I remove them from my account??

    De-authorise all, then authorise the one you still have.

  • How do I remove pictures from my iPhone that can't be deleted?

    How do I remove pictures from my iPhone that can't be deleted?

    What pics?
    This is very vague.
    If you mean pics that you synced to your iphone form your computer, then delete them the same way. Open itunes, connect iphone, select what you want to be on your iphone, sync.

  • How to get string value from xml in JSF??

    In JSF How to get string value from xml, .ini and properties file. I want to get string value from xml or text to JSF

    Just use the appropriate API's for that. There are enough API's out which can read/parse/write XML, ini and properties files. E.g. JAXP or DOM4J for xml files, INI4J for ini files and Sun's own java.util.Properties for propertiesfiles.
    JSF supports properties files as message bundle and resource bundle so that you can use them for error messages and/or localization.

  • How can i remove pictures from my droid turbo without having to use the touch screen on the phone at all?

    how can i remove pictures from my droid turbo without having to use the touch screen on the phone at all?  my screen is cracked and i am waiting on a replacement phone.  as far as i can tell in order to access the phone storage through my computer, i have to use the touchscreen to enable it so that the computer will see it as a camera.  I can't do that as the top half of the touschscreen is unresponsive.  any suggestions?  teaches me to use the backup services offered in the future, but i still need a short term solution for this time.

        I'm sorry to hear your screen is cracked spence425. I know its difficult to use the phone while its damaged. I'm happy you are receiving a replacement device. Have you saved any of your pictures and other data to the cloud? Here is a link about the cloud http://vz.to/1mF0GIx . Unfortunately, you will be unable to remove any data from the phone if the screen is unresponsive but if you are looking to transfer data to your new phone, it would have needed to be saved via the cloud first. Keep us posted.
    Kinquana_VZW
    Follow us on Twitter @vzwsupport

  • How do I remove them from my itunes account as authorized accounts for my new macbook iphone and ipad to use? I CANNOT access them can i call you?  also if i have an old itunes account on another email

    help 4 of my authorized computers crashed or are gone how do I remove them from my itunes account as authorized accounts for my new macbook iphone and ipad to use? I CANNOT access them can i call you?
    also if i have an old itunes account on another email can i transfer those songs i still have access to both emails?
    thank you

    De-authorise all, then authorise the one you still have.

  • How can I remove icloud from my iphone as I don't want my whole mailbox on it?

    Is it possible to only receive email without having my whole mailbox downloaded?  If not, how do I remove icloud from my devices?

    Create a new ID for yourself.
    Of course that will have none of your items purchase in the old ID.
    Once you have an ID then log into that ID on the iPhone.
    Allan

  • How can I remove songs from my iphone but they still stay in my library

    I have set up my music to sync only checked items, however, all the songs are still on my iphone.  I only want certain songs on my phone, but it still shows several songs that I have not checked off.  How do I remove songs from my iphone but they still will stay in my library. 

    What you need to do is go to music, and slide your finger to the right on the song you want to remove from your device. The song will still show in the music app but will have a cloud with an arrow beside it and you would have to re-download the song to your device to be able to listen to it. And also, this will only take the song off your device and it won't be removed from your library on iTunes. I hope this helps!
    Ryan

  • How can I remove devices from my account if I dont have access to them anymore?

    I have used 5 devices in the past and now dont have access to them how do I remove them from my account?

    To remove a device or computer from your Apple ID:
    Open iTunes.
    Sign in to your Apple ID by choosing Store > Sign In from the iTunes menu.
    Choose Store > View My Account from the iTunes menu.
    From the Account Information screen, click Manage Devices.
    Click the Remove button next to the device name you would like to unassociate.

  • How can i remove Ubuntu from my laptop

    yes im an idiot, i installed ubuntu over windows when my computer died and How can i remove Ubuntu from my laptop cause i tried to reformat but kept giving me the blue screen error and its realy annoying me,Ubuntu just isnt right for me please help me  :L 

    aquos wrote:
    i have an h.p. g60 535 dx note book,windows was wiped out so i installed ubuntu and don't like it  is there a sequence of key strokes that will erase the pc back to factory? ubuntu  is useless ...thanks  i forgot what ever name i made up to register.  just use m.h.Not if you wipe the Factory recovery partition then you will have to order the Factory REcovery media from hp. Obtaining HP Recovery Discs or an HP USB Recovery Drive
    Read this before ordering your Recovery Discs! (US and Canada Only)

Maybe you are looking for