Xml extract - a particular value (not the whole tag

Hi
I have an xml in database column as follows:
<tag1 xmlsn:ns1="http://abc.def.org/".....>
<ns1:tag2>...</ns1:tag2>
<ns1:xyz
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="virtual">
<ns1:abcdesc xsi:type="xType">
<ns1:abcdesc xsi:type="defDesc">
<ns1:abcdesc xsi:type="yType">
<ns1:Name>ABC</ns1:Name>
<ns1:id>171351</ns1:id>
</ns1:abcdesc>
</ns1:abcdesc>
<ns1:abcdesc xsi:type="defDesc">
<ns1:abcdesc xsi:type="yType">
<ns1:Name>ABC</ns1:Name>
<ns1:id>171352</ns1:id>
</ns1:abcdesc>
</ns1:abcdesc>
</ns1:abcdesc>
</ns1:xyz>
</tag1>
How may I extract only the id's given?
This is my query:
select
tablename.xmlcolumn.extract('//tag1/ns1:xyz/ns1:abcdesc/ns1:id','xmlns:ns1="http://abc.def.org/"').getSDtringVal()
from tablename
I do not get just the id's with this query but the whole xml tag as follows:
<ns1:id xmlns:ns1="http://abc.def.org/">171351</ns1:id>
Any help?
Thx!

Got it.
Adding text() after the id in the query helps.
Thx!

Similar Messages

  • Retriving data from database on selecting particular value in the combo box

    Hi,
    On selecting the particular value from the combo box, the corresponding value of the other segement fields should be retrived from databse and displayed in the text box

    Babel,
    If you don't have a query bdoc and the business query that joins both 2 tables already, then please crate one.
    After that, write this code on the change of the combobox.
    You would have to change the names below for the Query, properties, anchor, parameters, controls.
    ===================================
    Private Sub ctrlBankNameCombo_onValueChanged2(ByRef boundAttributeChanged As Boolean)
    On Error Resume Next
    Dim objBankQuery As BusinessQuery
    Dim ObjBankCol As BusinessCollection
    Dim strID As String
    If Not boundAttributeChanged Then Exit Sub
    strID = ""
    strID = myanchor.bo.getAttribute("BankNameComboProperty") ' Bank ID
    If strID <> "" Then
        Set objBankQuery = gServices.factory.newBusinessQuery("MyNewQuery")
        objBankQuery.Mandt = "000"
        objBankQuery.BANKID = strID
        Set ObjBankCol = objBankQuery.query 
           If Not ObjBankCol Is Nothing Then  
               ctrlBankAddress.Value = ObjBankCol.getAttribute(1, "BankAddress")
               ctrlBankPhone.Value = ObjBankCol.getAttribute(1, "BankPhone")
           End If
    End If
    ===================================
    Regards,
    Vadim.

  • Urgent: How to exclude a particular value from the selection in the infopac

    How to exclude a particular value from the selection in the infopackage.
    Ex: not load for cost center 10000
    Thank you,
    sam

    Hi Sam,
    You cannot do this directly as exclusion, but you can include all other values, even as ranges and thus exclude the particular value, else you can also try to do this by writing a routine.
    Hope this helps...

  • I have ios7.1.2 on my iphone and am trying to upgrade to 8.0.2. I haven't installed 8 yet and when I try and upgrade nothing happens.  It says just the improvements from 8 are available but not the whole ios.  What to do?

    I have ios7.1.2 on my iphone and am trying to upgrade to 8.0.2. I haven't installed 8 yet and when I try and upgrade nothing happens.  It says ios8.0.2  improvements from 8.0.1 are available but not the whole ios.  What to do?

    It sounds like maybe 8.0.1 has downloaded onto your phone but not installed. You can check for it in Settings > General > Usage > Storage, Manage Storage. If it's there you should see it at the top of the list of apps. Swipe to delete it. 8.0.1 was pulled by Apple quickly after it was introduced due to issues and replaced by 8.0.2. Once it's deleted you should be able to download and install 8.0.2.

  • HT1351 Only want to see sync songs/artists/albums on iPod touch (not the whole library in iTunes). How to do it?

    I only want to see on iPod touch songs/artists/albums manually selected for sync (not the whole library in iTunes). How to do it? Not sync titles appear in grey colour...

    So if I understand you correctly, you want to be able to sync only certain songs, artists, and albums correct? If so you can configure this set up from under the iPod's Music configuration tab in iTunes as described in the Syncing Automatically section in the Apple support document you linked in at the top of the page.  Note that you cannot select only certain songs, but you can set it up to sync selected Artists, Genres, and Albums.
    If the tab and its configurations are grayed out, it is likely because your iPod is set up for manual management, meaning the manually manage music and videos option is enabled from under the iPod's Summary tab.
    B-rock

  • How can I change one section of the document to a landscape orientation and not the whole document?

    How can I change one section of the document to a landscape orientation and not the whole document?

    Page Setup, including page orientation, is done in the File menu. The setting applies to the whole document. As Peter says, you can rotate the contents of a page (not including the text layer of a word processing document).
    As an alternative, you could use Numbers, where Sheets are empty canvases onto which you may place images, charts, tables and text boxes, and where page orientation may be set for individual Sheets. The main tradeoff is that you lose many of the built-in word processing and page layout features of Pages.
    Regards,
    Barry

  • How to Delete an iCloud Account's Email (Not the Whole Account, Just the Email)

    Hello,
    A couple of years ago, before iCloud was iCloud and was actually MobileMe, I created my own email on it (an @me.com email) and have had it ever since. Even after it became iCloud, i've kept my @me.com email address and have it to this day. I've used it ever since I created it; however, I absolutely hate using it now, and I really want to just get rid of it. I constantly receive spam messages on it, and I have found Gmail to be a much better email service compared to iCloud. I have been trying to figure out how to delete the email itself and not the whole iCloud account; however, I find it very surprising that I haven't been able to find much information about this at all. I know how to delete the whole iCloud account, but all I want to delete is the email. Is there any possible way to do this? Or is my only solution to delete the whole iCloud account? If I deleted the whole iCloud account, would it affect my Apple ID in any way? If I deleted my iCloud account and it does not affect my Apple ID, then would it be possible for me to delete my iCloud account and create a new one without the email?
    Currently, I only have an iPod Touch 4th Generation running iOS 5.1.1 (I know. It seems very outdated nowadays. ). I also have a Windows 7 computer that I use to access icloud.com, but I don't have the iCloud program actually installed to it.
    Thanks in advance and please help!

    Sorry, but I believe there is no way to properly answer your question.Please start a live chat with Apple for assistance as i believe so their the only ones with the power as so, your email is used for recovery, purchase, and more!If it so changed, you'd need to restart your device, also, your best bet is to just to contact apple also.Didn't help?Sorry!Theres really no way...

  • How can I print only one or two pages, not the whole article?

    I just want to print one page not the whole article.  There is no provision for what pages to print.

    I don't know where they are in Word but the print dialog is standard throughout OSX and this seems logical enough.
    The only problem is the Paper Handling is hidden under Layout. But sort of makes sense.
    Peter

  • How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    How do you move a single album, and not the whole library, in iPhoto to an external hard drive?

    File -> Export to a folder and copy it over.
    That will give you a folder with the images. There is no way to move an album outside of iPhoto. You would need to have a library containing it.
    Regards
    TD

  • How do i delete files in pages, i have some old invoices in pages that i want to delete, i can delete the text but not the whole file, please help. Dennis

    As it say's above i need to delete some of my oldinvoices/estimates from my files in pages, i can get rid of the text but not the whole file, thanks Dennis

    You locate the file in the Finder(it's in the Documents item of the sidebar by default), drag it to the Trash, and empty the Trash.
    (59926)

  • How do i get the toolbar to just show the icons, not the whole name of the site

    on the toolbar, I just want the icons of my favorites to show, not the whole name so I can add more to the toolbar..

    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #PlacesToolbarItems > .bookmark-item:not([container]) > .toolbarbutton-text {
    display:none !important;
    </nowiki></pre>
    Note that this code leave the names for folders. You can leave out :not([container]) to hide those names as well
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    * Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    * Use a plain text editor like Notepad to create a (new) userChrome.css file in this folder (the names are case sensitive)
    * Paste the code in the userChrome.css file in the editor window and make sure that the userChrome.css file starts with the default @namespace line
    * Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css. Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

  • Im having trouble with my magsafe L adapter, i just bought my macbook pro around october-november 2011. just wondering if their still gonna replace it though i lost my receipt already. can i buy just the wire, i mean the "L" not the whole charger?

    im having trouble with my magsafe L adapter, i just bought my macbook pro around october-november 2011. just wondering if their still gonna replace it though i lost my receipt already. can i buy just the wire, i mean the "L" not the whole charger?

    Punch the computer's serial number here and check your coverage:
    https://selfsolve.apple.com/GetWarranty.do

  • HT2736 How can I gift a single song (i.e. not the whole album) to a friend?

    How can I gift a single song (i.e. not the whole album) to a friend?

    If you're trying to do this from an iOS device, you can't. You'll need to use iTunes on a computer to be able to give a single song. If you are using a computer, tell us what OS and iTunes it's running and where you're encountering difficulty and we'll try to help further.
    Regards.

  • The TOOLS menu & HELP menu are missing (not the whole bar)

    the TOOLS menu & HELP menu are missing (not the whole tool bar, but only these two menus), I can see File, Edit, View, History, Bookmarks but not Tools and Help (on Firefox 3.6 on windows XP)

    I suspect that you installed an extension that hides some menu items thru user settable preferences.
    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Is their a way of transfering certain songs, not the whole library?

    i've created a new playlist on my itunes comp because other people in the house already have their own playlists for their own ipods. how do i tranfer just the songs i want and not the whole library? cheers

    At the very bottom of the link posted above, there is a short sentence that indicates you can transfer 'Selected Playlists'.
    With the iPod attached and seen within iTunes, go to Edit=>Preferences=>'iPod' tab and select the updating method to be playlists.
    This will allow you to choose which playlist(s) you want to auto-sync with your iPod.
    This is one of the easiest ways to have two or more iPods syncing with iTunes and containing different music.

Maybe you are looking for

  • Dynamic creation of object names

    Dear all, I have chose a rather generic title for a rather special problem, since I believe the above is the root. I am trying to create a bunch of JButtons which should have a running number in their names, like: button1, button2, button3, etc. Natu

  • I get an error message every time I try to make a purchase with iTunes

    How can I get it to allow me to use my iTunes credit to buy a game?

  • Help with CS4 Crash Problem

    I have had the creative suite for a while and have not had problems until recently. I have noticed that whenever I try to create a new site in dreamweaver CS4 on my macbook that it crashes. No matter how I go about trying to create the new site, it f

  • Library files not being saved

    I have just recently began getting a msg-"The itunes library file cannot be saved. You do not have enough access privileges for this operation." I ran a diagnostic test and it says "this user is not an administrator." Can anyone tell me how to go abo

  • Java error for Azureus (Vuze)

    Hey all, i've got a problem with my java. Everytime i try open my Azureus, i get an error file created in my Vuze folder eg.hs_err_pid1432 it contains an error as follows; # An unexpected error has been detected by Java Runtime Environment: # EXCEPTI