Default namespace have to be the first in xmlnamespaces()

Hi,
for some reason default namesapace have to be the first namespace and then you can add other namespaces.
SQL> select * from v$version;
BANNER                                                                         
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi               
PL/SQL Release 10.2.0.1.0 - Production                                         
CORE     10.2.0.1.0     Production                                                     
TNS for Linux: Version 10.2.0.1.0 - Production                                 
NLSRTL Version 10.2.0.1.0 - Production                                         
SQL> with t as (select xmltype('<s:a xmlns:s="sss" xmlns="aaa"><b>1</b></s:a>') xcol
  2             from dual)
  3  select x.val
  4  from t
  5       ,xmltable(xmlnamespaces('sss' as "s",default 'aaa')
  6                 ,'/s:a'
  7          passing t.xcol
  8          columns val varchar2(1) path '/s:a/b/text()'
  9        ) x;
V                                                                              
                                                                                Value is missing!
SQL>
SQL> with t as (select xmltype('<s:a xmlns:s="sss" xmlns="aaa"><b>1</b></s:a>') xcol
  2             from dual)
  3  select x.val
  4  from t
  5       ,xmltable(xmlnamespaces(default 'aaa', 'sss' as "s")
  6                 ,'/s:a'
  7          passing t.xcol
  8          columns val varchar2(1) path '/s:a/b/text()'
  9        ) x;
V                                                                              
1                                                                               Now we have the value.
Looks like a bug or what?
Ants

Not an issue anymore in 11.1.0.6.0...
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE    11.1.0.6.0      Production
TNS for Linux: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL>  with t as (select xmltype('<s:a xmlns:s="sss" xmlns="aaa"><b>1</b></s:a>') xcol
  2                from dual)
  3     select x.val
  4     from t
  5          ,xmltable(xmlnamespaces('sss' as "s",default 'aaa')
  6                    ,'/s:a'
  7             passing t.xcol
  8             columns val varchar2(1) path '/s:a/b/text()'
  9           ) x;
V
1
1 row selected.
SQL> with t as (select xmltype('<s:a xmlns:s="sss" xmlns="aaa"><b>1</b></s:a>') xcol
  2               from dual)
  3    select x.val
  4    from t
  5         ,xmltable(xmlnamespaces(default 'aaa', 'sss' as "s")
  6                   ,'/s:a'
  7            passing t.xcol
  8            columns val varchar2(1) path '/s:a/b/text()'
  9          ) x;
V
1
1 row selected.Time for a backport..., upgrade...?

Similar Messages

  • I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    I like the mail feature with one exception; I cannot figure out how to change the font size of incoming mail permanently.  And, when answering an email I have to highlight the first few words and zoom it so I can see what I am writing.  what am I missing?

    You can type the email using what you set in preferences and then highlight the text and use command - minus sign (or command - + for larger) to reduce the size of the text.
    You can also type command - T and a window will appear allowing you to select fonts/sizes/color/ background highlight.
    The above works in Notes also. I haven't tried to do this in any other Apple application.
    For incoming emails, you can use the above to reduce font size, but I don't know of a way to permanently set the incoming font size to a default.

  • HT5621 I got iphone 4s secondhand and i made restore then its asking me for apple Id which i don't  have it even the first owner i ask him about it but he don't have? please i need your HELP

    I got iphone 4s secondhand and i made restore then its asking me for apple Id which i don't  have it even the first owner i ask him about it but he don't have? please i need your HELP

    No one here can help you, nor can/will Apple. If you don't know the Apple ID/Password that was originally used to activate this phone, you won't be able to re-activate it. And, if the previous owner tells you that he/she doesn't know it, you're out of luck. You simply won't be able to use the phone for anything other than a paperweight.
    Called Activation Lock.

  • If i have one iPad and I want all the apps that are there how do I copy that so i can have them on another iPad the same way as i have them on the first iPad?

    if i have one iPad and I want all the apps that are there how do I copy that so i can have them on another iPad the same way as i have them on the first iPad?

    If you want both iPad to be identical .....
    Without connecting your iPad to your laptop, start iTunes. Go to iTunes>Preferences>Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    Now connect your iPad to your Mac and start iTunes.
    When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases.
    After it finishes transferring all your apps to the Mac, right click on your iPad and select Backup your iPad.
    Sync the iPad and eject it when it is complete.
    Quit iTunes
    Connect the second iPad.
    Launch iTunes
    Right click on the iPad name on the left side and select - Restore from Backup
    Select the backup of the first iPad and let it restore from that backup.
    When it finishes restoring - sync with iTunes to transfer all of the apps and any other content that you want onto that iPad
    Eject the iPad when you are done.
    Check the second iPad and if all of the content did not sync as you wanted - or you want to remove some of the content - connect it again and then choose the content that you want - uncheck what you do not want - and click on Apply in the lower right corner of iTunes.

  • I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpaid the first before pairing the second. How do I unpair?

    I have lost the remote that was paired. I bought another remote, but the procedure to pair the new one does not work. I suspect the the AT will work with only one remote at-a-time and i have to unpair the first before pairing the second. If this is true, how do I unpair? If not, what can I do?

    I was premature in posting the question. I found the answer in andother posting, and it was successful.
    Thanks, and sorry for the false alarm.

  • I have 3 ipads, the first one hooked up to wifi right away. the other 2 find my wifi and let me join, but says its offline. can someone help me please?

    I have 3 ipads and when i got them i started to link them or register them..whatever u call it. The first one hooked up right away, the other two were easy and linked to my wifi ..but they both say that they are NOT connected to internet?? the first one works fine?? help please

    I assume that all three iPads have been activated - correct? If so, do the iPads see your network? Go to Settings>Wifi. Is your network showing in that setting? Try turning WiFi off and then on again on the two iPads that will not connect. You can also try rebooting your router. Unplug it for about 30 seconds and then plug it back in and then try to connect.

  • Is there a way to have iTunes play the first song in a playlist & then stop

    We're using iTunes to play backing tracks in a show. We are using a vpedal through the USB for play and pause. We would like to be able to hit the pedal to play the first track and then have it stop ( NOT automatically play the second track). Then we could just hit the pedal to play each subsequent track. Thanks for your help

    Michael - thank you so much for your effort to help me with this question. I have tried what you have suggested and it does exactly what you say it will do but does not solve the issue. Let me explain what needs to happen a little better: The playlist of backing tracks has 4 songs. The Vpedal is a third party programable device that will activate play/pause in iTunes. I will have no access (nor will anyone else) to the computer while I am in character during this part of the performance. I introduce the piece and step on the vpedal and the first song plays. If I don't hit it again, each subsequent track will play automatically - this is bad because applause, etc. makes the time between songs variable. So, currently I have to step on the pedal at the end of song #1 to pause it and then when ready for song #2 step on it again to play. The same process for end of song #2 (pause), start of song #3 (play), end of song #3 (pause) and start of song #4 (play). This works but the problem with it is I must be very precise when to pause - wait a second too late and then next song will begin. So, it would be far preferable if iTunes only needed me to press the pedal to play and the program would pause automatically at the end of each song but be ready to play the next song when I hit the pedal. Hope this makes it clearer.
    Any other thoughts? Again, thanks.

  • Ever since you instructed me to reset my firefox to defaults, I have dropped from the server 6-12 times a day, why is this happening,

    I had some problems, got a ticket issued, was told to reset all to defaults on firefox. I did that, now the last 2 days, I have had more than 12 times where firefox cannot connect with the server. It does work sometimes., but it seems to be getting worse. I am certain it is not the hardware in this case. It was not until I saw a search engine called Whitesmoke in the search field, that problems began. I went through all the recommended ways to remove and ultimately I was successful, I think, could the server problem be caused by this Whitesmoke search engine hijacker? Please provide a solution, I am sure I am not the only one experiencing this. My system has also slowed down to a snails pace since I reset to your defaults, what can be done about that?
    Thanks so much for your help.
    Kathy Vega

    A possible cause is security software (firewall,anti-virus) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox and the plugin-container from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.org/kb/Server+not+found
    *https://support.mozilla.org/kb/Firewalls

  • Firefox says I am already running Firefox,and I have to close the first one first.Only it's not running and I have to re-boot my computer in order to access Firefox.

    I have been using other browsers because of this annoying problem,and don't want to because FF is my favorite.
    Also,in addition to the problem above:When I launch FF to get to my home page,two FF's open.I have to tick one to get back to just one.This happens every time.
    Also:No matter when I launch FF and attempt to start surfing,I always get the message that FF cannot find whatever webpage I am looking for,including my home page.
    FF was running beautifully,as always,until this started a month ago.I attempted to uninstall FF so I could start over,but it doesn't appear in my "uninstall" folder in my control panel.
    I purchased a registry cleaner program a few days ago,hoping somehow it might help,but it has not.
    Thank you

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • TS4526 I have 3 of the first generation apple tv's. while they continue to show my library, I can no longer see new content to download in the tv and movie sections?

    I have 3 first generation apple tvs.  I can no longer see new i tunes content to stream any more. How do I fix this?

    After 2-3 days with this problem, it has resolved on its own.  I now have access to movies, tv shows, and music.

  • Firefox hangs on opening, toolbar only shows "Firefox", I have to minimize the first window and open a second to make it work.

    this version on my Macbook works, the problem is on my imac which is a similar setup. I open the app and initially looks normal but it reverts to a menu bar showing only FIREFOX, and becomes unresponsive. However if that window is minimized the menu bar reverts to its normal self, and an open second window functions normally. At close down I have to close each window separately , otherwise Firefox can trip up Shutdown or Restart. I've re-installed with no success.

    OK on the iMac now but not sure how to send the System Details. Any help welcome.

  • Any way to not have Edge be the first option?

    Whenever I use my iphone at home, I use my wifi...which works great. I turn off 3G to save on the battery when in the house. However, I've noticed that if I want to use the internet or even check email, sometimes it will try to use Edge before the wifi, which is annoyingly slow. Is there a reason it does this or is this normal? If I have wifi connected, I'd like that to be the only way to surf the web or check email as it's much faster obviously.

    The iPhone will attempt to connect to the fastest internet connection available at the time. If you have wi-fi access on and 3G access enabled, it there is an available wi-fi network that you have connected to, your iPhone will automatically connect to the wi-fi network for internet access. If there isn't a wi-fi network available that you have access to, your iPhone will connect via 3G. If 3G access is turned off, your iPhone will connect via EDGE.
    The cellular network is always available in the background so to speak since the iPhone will switch from an available wi-fi network that you have access to - to the cellular data or internet network and vice-versa automatically and seamlessly. Visual voicemail messages are downloaded to the iPhone via the cellular data or internet network only - so it is always available in the background as long as you have cellular reception.
    If you aren't actively using your iPhone for internet access when connected to an available wi-fi network, your iPhone may switch to the cellular data or internet network while asleep, but when you wake your iPhone up, it should switch back to the wi-fi network with a few seconds at most.

  • I have downloaded a tv series into itunes and the third episode won't play.  We have successfully watched the first two.  What is the problem?

    I am having trouble viewing the third episode of a tv series that I have downloaded on Itunes.  Any suggestions?

    It won't work, they are linked to your account and can only be played via iTunes on a computer, an iOS device or Apple TV. You might be able to get a cable to link your Mac to your TV so that you can play/mirror it through your TV e.g. if it's a Macbook with an HDMI socket and your TV also has an HDMI socket then you could try an HDMI to HDMI cable (Apple do them, and electrical stores should also have them) - I've used one to play iTunes TV programmes on my TV (though I don't think that I got sound through my TV, only my Mac).
    Message was edited by: King_Penguin

  • How can i make my iphone a wifi hotspot when i don't have wifi in the first place?

    hello all
    i need a wifi hotspot for my iphone but i don't have a way to conect to the internet at my house.
    can i get some help?

    It's not clear from your post what you're actually trying to accomplish. Using your phone as a WiFi hotspot means that you are using the phone's cellular data connection to create a WiFI network for other devices to connect to. Is that what you're trying to do? If so, contact your carrier and have the feature added to your account.
    If you're trying to get broadband internet at your house so that you can connect to your phone to a WiFi network and avoid using cellular data, you'll have to find an internet service provider in your area and arrange for service with them.
    Best of luck.

  • HT1923 Im am a bit of a luddite, I have one of the first ipads and want to update to the ios 6.1.3 - is this possible and if so, HOW

    How do I update my earliest version of the Ipad wireless 64g ipad to ios 6.1.3 - I am not too technical and previously I have been able to do it through my PC but cant seem to do it now.

    Thanks Stedman. All other updates have always worked... I wish they would warn you when you buy the top of the range device at the time,  that it would be out of date only a few years later. Oh well, thanks for the help!!
    Cowboy

Maybe you are looking for