OSB 10gr3 XQuery with CDATA - how to best do this?

Hi There,
I am writing an XQuery function to transform from one schema to another. My target schema has an attribute that is a string (xs:string), but the related protocol uses is for embedding another XML schema. Therefore I would like to treat the embedded value as an XML document using the CDATA command. I have tried using fn:concat and fn-bea:serialize but they do not work. There was an older thread :
Returning CDATA using XQuery in ALSB
in which the fn:inline is suggested, but this is not a valid function in the OSB10gR3 version.
Can somebody provide me with an idea about how to use CDATA in an xquery ? Here is an example of the non-working fn:concat implementation:
<ns0:abcRequest>
<ns0:abcRequest>
{fn:concat("<![CDATA[") }
{ $abcMessage/@* , $abcMessage/node() }
{fn:concat("]]>") }
</ns0:abcRequest>
<ns0:abcEgmId>{ xs:string( $abcEgmId ) }</ns0:abcEgmId>
<ns0:abcHostId>{ xs:int( $abcHostId ) }</ns0:abcHostId>
</ns0:abcRequest>
Any ideas for OSB 10g R3 would be much appreciated.
Thanks,
David.

Hi Anuj,
The serialize function does not escape the contents properly. It converts ">" to "Ambersand-G-T-Semicolon" (I had to spell them out since this forum had converted the characters back to the greater than symbol). I need to have the embedded CDATA and XML document untouched for subsequent processing on the side of the SOAP Provider (which I have no control over).
So I want to achieve:
<xmlElement>
<innerElement><![CDATA[<myEmbeddedXML><nextedElement>....</myEmbeddedXML></nextedElement>]]>
</xmlElement>
Does this make sense ?
Thanks,
David.
Edited by: user10313579 on Oct 27, 2010 9:30 PM

Similar Messages

  • When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    mostafa182 wrote:
    ... how I can solve this problem?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • During the io 5 update process, my iphone 3gs froze and now will shut off and turn on by itself, and will not allow me to unlock the phone or do anything with it. how do i fix this?

    during the io 5 update process, my iphone 3gs froze and now will shut off and turn on by itself, and will not allow me to unlock the phone or do anything with it. how do i fix this?

    Follow the instructions here > http://support.apple.com/kb/HT1808
    You may need to try a few times to get it to work

  • I suddenly cope with latency, how can I fix this?

    I suddenly cope with latency, how can I fix this?

    The Gift Card can only be Redeemed in the Country of issue...

  • I have DSL on my PC and would like to use it with IPad2 - how can I do this

    I have DSL on my PC and would like to use it with IPad2  how can I get this set up.

    All you need is wireless. If the DSL modem does not provide routing services or does not provide wireless, then you need to get a wireless/wired router. If the modem provides wireless, then that's all you need. Consult the user manual for the DSL modem or talk to your service provider.

  • Hey i have my iphone is not synching with itune, how can i solve this problem..

    Hey my iphone is not synching with itune, how can i solve this problem?

    It can sync with a 32-bit, so long as you have the correct version of iTunes installed. I'm assuming that you are referring to a Windows based computer, so check out this support document regarding the device not being recognized by Windows. http://support.apple.com/kb/TS1538

  • HELP PLEASE!  I logged in with my iCloud account and merged her contacts with mine how can I undo this If i log out her contacts erase and stay on my iPhone and visa versa

    HELP PLEASE!  I logged in with my iCloud account and merged her contacts with mine how can I undo this If i log out her contacts erase and stay on my iPhone and visa versa

    One of you will need to migrate to a separate iCloud account, then you can delete the other person's data from each account.
    To migrate to a new account, start by saving an photo stream photos that are not in your camera roll to your camera roll.  To do this, open your my photo stream album, tap Select, tap the photos, tap the share icon (box with upward pointing errow), then tap Save to Camera Roll.  Then go to Settings>iCloud, tap Delete Account, choose Keep on My iPhone when prompted, provide the account password to turn off Find My iPhone when prompted, then sign in with a different Apple ID to create the new account and choose Merge to upload your data.
    You can then each to to your iCloud accounts on icloud.com from your computer and delete the other person's data from your account.

  • After restoring my ipod itunes crashes when veryfing restore with apple how can i skip this part?

    Trying to restore my ipod touch 4th gen and after it extracts software itunes crashes when it trys to verify restoration with apple how can i cancel this last part

    Try deleing the download file and try again. It is located here:
    IPSW file location for Mac and Windows
    I would also disable the computer's antivirus and firewall during the download and update/restore.

  • My contact list does not always include a video icon so I can use FaceTime with wifi- how can i fix this

    my contact list does not always include a video icon so I can FaceTime with a contact- how can I fix this?

    Thanks so much for your reply but that won't help in my current situation. Maybe I didn't make it clear. The latest version of Quicktime as new as it sounds doesn't support screen recording on a powermac G5 Motorola chip with OS 10.5.8 which is the highest os I can go with that machine. If I can sync the two computers so I can get the application to record from my newer computer then I'm ok. I just don't have the recording application for audio that I'm using to demo for the website on the laptop as it's about 10,000 dollars. So, I have to use the older computer to do the audio presentation and try to get the newer computer synced to it so I can use the new version that works on snow leopard to record a screen shot that will hopefully appear on my laptop instead of the old machine. Hope that makes sense. It's a bit confusing but in a nutshell it's like this:
    1. I am a Pro Tools Instructor which is the state of the art application and recording device for audio and movie scoring and I have a new job where I make small snippets of tips using Pro Tools which I'd like to record with quicktime on screen as they happen
    2. the best version of Quicktime Pro available for the Power Mac, OS 10.5.8 will not do screen recording on it.
    3. I can use the Quicktime application from my newer laptop but I need to sync it to the old machine
    4. I'm hoping but I don't know, if I do this, that I can record Pro Tools in action from my new machine buy seeing it on this laptop screen and then recording it with the new quicktime.
    5. If I can sync the two computers, I'm hoping this can happen but I can't use my ethernet connection as I have it used to connect to my recording console and can't afford to buy anything new like an ethernet hub yo connect the two so I'm hoping that there's another way to connect them.
    I hope that makes sense and that possible you or someone else can help. Thanks so much! Scott

  • HT3965 I plugged my husband's iphone into our computer after I plugged mine in and it replaced all his contacts and data with mine, how do we reverse this change?

    I plugged my husband's iphone 4 into our computer after I plugged mine in and it swapped all of his data/contacts out for mine, how do we fix this?

    How to use multiple iDevices with one computer

  • I have been unable to sync my phone with itunes - how can I fix this?

    When I link into itunes, I am told that my phone is not registered.  I have had my phone for less than 6 months.  It worked through the itunes up until May and then I was unable to get it to connect to sync with itunes.  I am able to buy products but not share with my other devices.  How do I fix this?

    The actual error message reads :  This Iphone can non be used because the Apple mobile device sevice is not started.

  • Window opens behind another window with sound how do i stop this.

    When I open a window, another window will open behind it with sound. Mostly some add witch I then open that page and close. How do you stop this unwanted pages from opening?

    I assume we are talking about Safari?  If so goto Safari > Preferences > Security.  Make sure Block pop-up windows is checked.
    Also uncheck Enable Java.  I have had problems with pop-under windows and this has prevented them.  If you have a site that requires Java you can always re-enable it.

  • I can log on icloud on pc but when i enter password on my ipad mini first gen with ios8 it tells me wrong password. and i can receive mail but cannot send any mail via icloud, gmail, yahoo never had to set this up with ios7. how do i resolve this?

    I updated my ipad mini first gen 32gig (4.3gig free) to run ios8 8.0(12A365) and i have a problem sending emails. i can receive mail but when i send it fails. my dropbox works fine, safari, and other apps work fine on the internet just the receiving of mail. Do i need to add a new outgoing server, though i dont remeber having to do this when i updated to ios7. how do i resolve this?

    Here's a troubleshooting article from Apple:  iOS: Troubleshooting Mail
    It doesn't seem to cover your specific issue, but have you tried using a different network (either a different wi-fi network, or switching from wi-fi to cellular or vice-versa if you have a wi-fi+cellular iPad)?
    For GMail, iCloud and Yahoo, copies of messages are stored on their respective servers, so you could try deleting the account on your iPad, then re-adding each account one at a time to see if that resolves the issue.

  • I use iCal, work wants me to sync with Outlook, how do I do this?

    Dear Community.
    I'm happily using iCloud to run my diary across all my Apple devices, how do I get my current setup to sync with Outlook so my office can see my diary?
    I don't want to change how I make appt's, I can make an appt on my phone, iPad or MacBook and it'll sync nicely, I just need to be able to share one specific Work diary in my iCloud/ Apple account with Outlook. I use Outlook on my MacBook for email only, I have no interest in using the calendar function other than to keep it synced to allow my colleagues to access it.
    Any help would be greatly appreciated. It's bad enough that people want to be able to track my daily schedules, without having to spend hours trying to figure out how to keep the system I have for diary management and not have to move everything just to placate someone.
    Thank you in advance.

    Hi Crackyrich,
    I may have a possible solution for you.  Since you have everything set up in iCloud, have you tried the Calendar sharing feature?  You can create a work calendar to keep it separate from your personal calendar, and share the work calendar privately or publicly.   Here's how:
    iCloud: Calendar sharing overview
    http://support.apple.com/kb/PH2689
    You can share a calendar both publicly and privately with other people. Sharing gives you flexibility in managing calendars. For example, you could create a calendar for your child’s sports team and share it privately with just the coaches so they can edit it. You could also share it publicly with all the parents so they can view (but not change) it whenever they want. 
    Sharing works as follows:
    Public calendars can be shared with anyone. To access public calendars, visitors need to use Calendar on a Mac, Microsoft Outlook on a Windows computer, or any other app that supports the iCalendar file format. 
    A public calendar can’t be edited by anyone but the calendar owner (the creator).
    Private calendars can be shared with other iCloud users. 
    Participants can view the calendar using iCloud Calendar; the Calendar app on iPhone, iPad, iPod touch, or a Mac; or Microsoft Outlook on a Windows computer. 
    As the owner (creator) of a shared calendar, you assign edit privileges to the invitees to control who can modify the calendar. There are two types of access privileges that can be assigned: 
    Participants with View Only access can:
    View the calendar and change their view (from day to week, for example), without affecting the view of other participants
    Change their own calendar preferences 
    Participants with View & Edit access privileges can do everything listed above, plus:
    Create and delete calendar events
    Change details (for example, the name, date, and time) for calendar events
    Track the responses of guests invited to a calendar event
    Participants can’t invite new people to a shared calendar.
    Note:    If multiple participants try to edit a shared calendar at the same time, the changes that are saved first are kept and reflected in the calendar. The person whose changes arenʼt saved sees a message that his or her changes werenʼt saved. 
    If you disable your iCloud account, any shared calendars you created become unavailable; all participants automatically receive an email notifying them that the calendar is no longer shared. 
    Last Modified: Jan 8, 2015
    iCloud: Share a calendar with others
    http://support.apple.com/kb/PH2690
    iCloud: Share a calendar with others
    You can share a calendar both publicly and privately with other people. For specifics about viewing and editing privileges for shared calendars, and how participants can access the calendars, see Calendar sharing overview. 
    Share a calendar privately
    Click the Share button to the right of the calendar name in the sidebar, then select Private Calendar.
    Note:    You can also share the same calendar publicly. For instructions, see the next task, “Share a calendar publicly.” 
    Type the invitee’s email address in the Add Person field and press Return.
    Click the pop-up menu with the invitee’s name and choose access privileges (View & Edit or View Only). 
    For each person you want to share the calendar with, repeat steps 2 and 3.
    When you’ve invited everyone and set their privileges, click OK.
    Invitation emails are sent from your iCloud email address to the participants you specified.
    Share a calendar publicly
    Click the Share button to the right of the calendar you want to share, then select Public Calendar.
    Note:    You can also share the same calendar privately. For instructions, see the previous task, “Share a calendar privately.” 
    To invite people to view the calendar, click Email Link.
    Type one or more email addresses in the To field, then click Send.
    The people you specify automatically receive an invitation email that includes the calendar’s URL. An invitee doesn’t need to be an iCloud user to accept an invitation to view a shared public calendar. 
    In the sidebar, a shared calendar has a dark Share button.
    You can also resend invitations to one or more invited participants at any time. 
    Last Modified: Jan 8, 2015
    Hope this helps ...
    Judy

  • I have a homepage, however Firefox also opens up an annoying tab with news. how do i disable this

    This is something new for Firefox, however it is very annoying like a virus. i want 1 tab to open when i click my browser. Firefox opens up an additional tab along with my homepage. i want this disabled if i want Firefox news i will visit a forum for Firefox.

    See these articles for some suggestions:
    * https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    * https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    * http://kb.mozillazine.org/Preferences_not_saved

Maybe you are looking for

  • Getting error while running .sql file

    Hi,   I export a schema "schema1" with name export1.sql i am trying to run this .sql at schema2 i am getting an error  ' input is too long () 2499 charecters" even if put set buffersize 100000 and set define off i am getting same error file won't run

  • I am unable to access rotten tomato film clips with safari

    I am unable to access rotten tomato film clips with Mac 10.6.8 with Safari server 5.1.10  Only a black screen shows.  I have latest version of Adobe flash installed.  I have allowed in my Safari preferences to allow Java and all other plug ins.

  • Migration of windows 2008 std 32bit DC to windows 2012 std

    i have 32bit DC in my local environment having schema ver 44.. now i hav another server and want to migrate to windows 2012 std edition.. can some one guide me how to achieve this task?

  • TS1702 my iPod touch won't install apps

    I have a fourth generation ipod touch and when I pick a app to download it doesn't install properly. How do I fix this?? Thanks in advance.

  • Quotation mark problem!

    Hello everyone! I have a unusual problem to address. I have recently gotten into HTML coding, and I am using a navigation menu and it requires quotation marks. As seen in the picture on the top, TextEdit keeps inverting them, thus ruining my code! I