How to accept xml even when elements are not defined in its schema

Hi,
I got this requirement where i need to accept xmls even though its schema definition is not available note that i am storing the xmls into obejection-relational mode in oracle xmltype column table.
How can i register schamas which has a perticular element defined conditionally to refer to two schemas based on its elementname (pct:CompanyName and CompanyName), please go through the below given scenario for further clarity on the same
Oracle Version
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
*Sample XML
* <CabInfo>
     <pct:CabName>Yellow Cab</pct:CabName>
     <CompanyName>Taxi4You<CompanyName>
</CabInfo>
Schema Definition
Cab.xsd
<xsd:All minOccur="0">
<xsd:element name="CabInfo" type="pct:Cabs" minOccurs="0"/>
</xsd:All>
pct points to a commontype.xsd file
<xsd:complexType name="Cabs">
<xsd:all minOccurs="0">
<xsd:element name="CabName" type="xsd:string" minOccurs="0"/>
<xsd:element name="CompanyName" type="xsd:string" minOccurs="0"/>
</xsd:all>
</xsd:complexType>
Now when a xml comes with both the tags pct:CabName and pct:CompanyName then its not an issue however i need to accept xmls which can come as pct:CabName and only CompanyName without the pct namespace referrence.
I was considering choice tags a method to acheive this but i read it cannot be used with ALL i cant remove ALL either from my schema.
Please suggest if this can be acheived.

Hello,
You can use module pool to design the screen, all the fields will then remain fixed in the position defined.
CALL SCREEN 100. " 3 fields declared P_NAME p_ROL and P_SUBJECT
*&      Module  STATUS_0100  OUTPUT
*       text
MODULE status_0100 OUTPUT.
*  SET PF-STATUS 'xxxxxxxx'.
*  SET TITLEBAR 'xxx'.
  LOOP AT SCREEN.
    IF screen-name = 'P_ROL'.
      screen-active = '0'.
      screen-invisible = '1'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
Regards,
Mansi.
Edited by: SAP USER on Apr 22, 2009 1:02 PM

Similar Messages

  • My Macbook is not playing sound unless i have headphones in. The light in the headphone plug stays on even when they are not plugged in. How can i fix this?

    My Macbook is not playing sound unless i have headphones in. The light in the headphone port stays on even when they are not plugged in. How can i fix this?

    You might need to clean the headphone port (I was in the same situation and this worked for me).  Dirt, dust, and debris accumulate in the port and eventually the computer registers the debris as headphones being plugged in.  After cleaning the issue was resolved.

  • HT1430 How do I restart iPad when buttons are not responding?

    How do I restart iPad when buttons are not responding?

    GIve the reset another try; nothing to lose.
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Audio - toggle on/off multiple sounds even when they are not currently playing

    I am wondering if there is a way to stop toggle all sounds even if they are not playing.
    What I mean by that is I have several sound files that play one at a time when a slide comes in. I can toggle on/of the current sound but what if I want to toggle all sounds on/off in the compostion even if they are not playing so that when I go to next slide it will be on or off depending what was chosen on the previous slide?
    One of the problem would be that I do not want all sounds to be turned back on at the same time but only the current one but I still want to be able to turn off all the sounds if the user decides he does not want to hear sound while at the same time I want the sounds to load automatically on each slide if he has decided to have sound.
    Hope this makes sense.

    didn't have the time to test this code yet.
    but it should work.
    Html5 audio can not be accessed by class, it can only be accessed by id.
    so i made this code
    $( "audio" ).each(function() {
    var a = $(this).attr("id");
    var audioPlayer = document.getElementById(a)
        audioPlayer.pause();
        audioPlayer.currentTime = 0;
    this will find the id of the audios and pause them and reset the time to 0
    ( not really a way to officially stop audio )
    or you van just mute it with this code
    $( "audio" ).each(function() {
    var a = $(this).attr("id");
    var audioPlayer = document.getElementById(a)
        audioPlayer.muted = true;
    - Rob

  • How do you refresh devices when they are not showing up on iTunes?

    Sometimes my iTunes doesn't recognize one of my devices after I have left the building and come back.  Is there a way to tell iTunes to refresh the devixes listed?  There is no problem with the wifi, so there should be communication between the iPhone or iPad and iTunes on my Mac.

    You mean they don't appear in the Notes app on your devices?

  • I recently had to get a new computer, my list of audible books is there but can't open because original file cannot be found.  how do I find them or redownload them when they are not in my purchased list anymore?

    I recently had to purchase a new computer, after doing so I no longer can open my audible books.  the list is there, but I get an error message telling me that the original file cannot be found.  How can I redownload them when they are not in my purchased list anymore when I go to the Apple Store??

    Downloading past purchases from the App Store, iBookstore, and iTunes Store - http://support.apple.com/kb/ht2519 - enabled with iTunes 10.3 and newer; not available in all countries; apps, books (not audiobooks), music, t.v. shows, and movies (some - not all studios have permitted this). Movies currently available in the USA only. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.  Discontinued items not available. For items not included in the iCloud list, or locations or computer systems where iCloud is not (yet?) available, you only get one download per fee paid.  Apple notes it is your responsibility to back up your purchases.
    Select the store on the left side of iTunes.
    Click on Purchased on the right side under Quick Links.
    You can re-download your available previous purchases.

  • I was adding something to one of my notes when half of my notes disappeared, how can I find them again, they are not even in my iCloud?

    i was adding something to one of my notes when half of my notes disappeared, how can I find them again, they are not even in my iCloud?

    http://support.apple.com/kb/HT1848  Did you transfer your purchased item, take a look at the link

  • My iphone5 thinks that my headphones are plugged in even when they're not. How can I fix this?

    My iphone5 thinks that my headphones are plugged in even when they're not. How can I fix this?

    Try inserting and removing headphones in succession 6-7 times.
    If this does not work, take it to an Apple Store or Apple Authorized Service Provider and have them evaluate it.

  • Why does Safari still accept cookies, even when I put Block Cookies "Always"

    Why does Safari still accept cookies, even when I put Block Cookies "Always",? There are always a list of every website with cookies. Is that just a record of what could've been accepted or its a bogus feature that still accepts regardless of what feature is on?

    Apple has rolled over users since OS X 10.6.8 when this issue first appeared.
    If you want a browser that actually CARES about it's users, then install Firefox, it's the only one that does.

  • Can we recharge iPhones several times a day even when they are in 50%

    Dear all,
    Can we recharge iPhones several times a day even when they are in 50%?
    Is it OK, if we leave iPhone plugged-in even when it is fully charged? I have heard that, we need to discharge battery completely at least once a month to improve the battery life. Is that right?
    Thanks

    Dear Farhad,
    there is definitely two schools of thought about this, the conventional one is use phone until almost dead then full charge, however recent articles in macworld that frequent charges do no more harm to these batteries. i think the best advice is to use your phone and then charge it when it needs charging. Most phone batteries ae fairly tired after a couple of years anyway, regardless of how to charge.
    bw
    Andrew

  • My ipod 5th gen won't change volume when headphones are plugged in, but when they are not I can change the volume on the speaker.  How do I fix this?

    My ipod 5th gen won't let me adjust volume when headphones are plugged in, but when they are not I can adjust the volume on the speaker.  How do I fix this?

    Try a hard reset of the Nano. To do this, press and hold both the Select (Center) and Menu buttons together long enough for the Apple logo to appear.
    I assume you have double checked to make sure you are plugging the headset all the way in meaning the white part of the headset is flush with the body of the Nano?
    B-rock

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

  • HT201413 I have ipod 4 i want to sync the device to my pc through Itunes by the sync selection to my iTunes at PC were disable cause even the device are not appearing on iTunes PC but the iPod was connected to my PC how I can be able to fix this.

    I have ipod 4 i want to sync the device to my pc through Itunes by the sync selection to my iTunes at PC were disable cause even the device are not appearing on iTunes PC but the iPod was connected to my PC how I can be able to fix this.

    Hi there,
    If you are experiencing an issues where iTunes is not recognizing your iPod, then I would recommend taking a look at the article below.
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/TS1363
    -Griff W.

  • How to use java script when popups are blocked in browser

    How to use java script when popups are blocked in browser

    Not. When people install a popup blocker they don't WANT popups, so stop trying to force them down their throats.

  • GRC 5.3: CUP asks to perform risk analysis even when there are no risks in request

    Hi All,
    We recently upgraded from GRC 5.3 SP13 to SP22.
    The one issue which we are facing after upgrade is that now CUP is forcing approvers to do Risk Analysis, even when there are no risks in the CUP Request, that is Risk Tab is Green.
    Previously approvers were able to approve requests without doing risk analysis, if there were no risks in the request.
    CUP used to force them to do risk analysis only when there were risks associated with requests.
    But now, it is forcing approvers to perform risk analysis, even if there are no risks, i.e. approvers are not able to approve requests without any risks without doing risk analysis.
    Please advise.
    Thanks
    Aditi

    Hi,
    Can you check if any change is made in Configuration -> Workflow -> Stage -> Approvers
    Regards,
    Claudio

Maybe you are looking for