Update an optional node

consider this xml document has already inserted to "books" table as xmltype table :
<Book>
<Author>Shelley Higgins</Author>
<Title>Oracle XML DB Developer's Guide</title>
<PartNo>Optional node</PartNo>
</Book>
to update the "PartNo" node is :
UPDATE books b set value(b)=UpdateXML(value(b),'//PartNo','new value')
WHERE existsnode(value(b),'/Book[PartNo="Optional node"]')=1;
Then how can I update when the optional node didn't exists ?
because the query returned 1 row updated but the data didn't change.
Thank you

You cannot...
updateXML() can only replace existing nodes....
You options are
1. Use DBMS_XMLDOM to add the node via DOM API
2. On 10gR1 only - use unreleased feature insertXML() to add the node...
-Mark

Similar Messages

  • Java was blocked due to the threat I have followed the update & other options to reenable it ie.manual updates reinstalls yet websites like YouTube still wont load up.Works fine in Chrome & IE!

    Java was blocked due to the threat I have followed the update & other options to reenable it ie.manual updates reinstalls yet websites like YouTube still wont load up.Works fine in Chrome & IE!

    Your plugins list in "more system details" shows Next Generation Java Plug-in 1.6.0_31 for Mozilla browsers so Java should not be blocked.
    Could you post a link to a webpage where Java isn't working for you? YouTube uses Flash, not Java. Here is a list of Java test pages you can try, to confirm that Java is working, from http://kb.mozillazine.org/Java#Testing_Java
    * [http://www.java.com/en/download/help/testvm.jsp Test your Java Virtual Machine (JVM)] at java.com.
    * [http://browserspy.dk/java.php Java Information - BrowserSpy.dk]
    * [http://javatester.org/ Java Tester] - The test pages at javatester.org will tell you if your web browser is enabled for Java and, if so, the Java version.
    * [http://www.pinlady.net/PluginDetect/Java/ Java Plugin Detector]
    By the way, I see in your plugins list that you also have the VLC media player Web Plugin 2.0.0 so, it's possible that the VLC plugin is causing a conflict if YouTube or other videos don't work. See [[Video or audio does not play]] (you may need to disable the VLC Media Player plugin in the Add-ons -> Plugins list for some media to play).

  • Update profile options at user level?

    Hi All,
    Need a script for,
    update profile options at user level, for example we should be able to update a profile xyz for a user abc using that script?
    or please provide the document related to that..

    Hi All,
    Thanks for all sugessions,
    i have written an script for updating profile option value from backend.
    SELECT d.level_id,c.user_name, b.profile_option_name, a.user_profile_option_name,d.profile_option_value
    FROM fnd_profile_options_tl a,
    fnd_profile_options b,
    fnd_user c,
    fnd_profile_option_values d
    WHERE d.profile_option_id = b.profile_option_id
    AND d.level_id = 10004
    AND a.profile_option_name = b.profile_option_name
    AND d.level_value = c.user_id
    AND c.user_name = '&USER_NAME'
    update query
    update fnd_profile_option_values
    set profile_option_value = '&Profile_Option_Value'
    where profile_option_id in
    (select profile_option_id from fnd_profile_options where profile_option_name
    =(select profile_option_name from fnd_profile_options_tl
    where user_profile_option_name = ('&User_Profile_Option_Name')))
    and level_id = 10004
    and level_value in (select user_id from fnd_user
    where user_name in ('&User_Name'))
    Thanks
    One

  • XML Optional node

    In the below XML code how to make the   <CUSTOMERDETAILS> node as Optional node.
    If suppose in the input XML file if   <CUSTOMERDETAILS> node is not available,I want to make the node as optional one.
    As of now system is getting dump, becuase node  data <CUSTOMERDETAILS> is not availbale in the XML file.
    uFEFF<?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates" xmlns:ddic="http://www.sap.com/abapxml/types/dictionary" xmlns:def="http://www.sap.com/abapxml/types/defined">
      <tt:root name="IT_TRANSACTION" type="ddic:ZTABTRANSACTION"/>
      <tt:template>
      <IT_TRANSACTION>
           <tt:loop ref=".IT_TRANSACTION" name="a">
              <item>
              <RETAILSTOREID tt:value-ref="RETAILSTOREID"/>
              <BUSINESSDAYDATE tt:value-ref="BUSINESSDAYDATE"/>
              <TRANSTYPECODE tt:value-ref="TRANSTYPECODE"/>
              <WORKSTATIONID tt:value-ref="WORKSTATIONID"/>
              <TRANSNUMBER tt:value-ref="TRANSNUMBER"/>
              <BEGINTIMESTAMP tt:value-ref="BEGINTIMESTAMP"/>
              <ENDTIMESTAMP tt:value-ref="ENDTIMESTAMP"/>
              <OPERATORQUAL tt:value-ref="OPERATORQUAL"/>
              <OPERATORID tt:value-ref="OPERATORID"/>
      <CUSTOMERDETAILS>
                <tt:loop ref="$a.CUSTOMERDETAILS">
                  <item>
                    <CUSTOMERINFOTYPE tt:value-ref="CUSTOMERINFOTYPE"/>
                    <DATAELEMENTID tt:value-ref="DATAELEMENTID"/>
                    <DATAELEMENTVALUE tt:value-ref="DATAELEMENTVALUE"/>
                  </item>
                </tt:loop>
    </CUSTOMERDETAILS>
    <RETAILLINEITEM>
                <tt:loop ref="$a.RETAILLINEITEM" name="b">
                  <item>
                    <RETAILNUMBER tt:value-ref="RETAILNUMBER"/>
                    <RETAILTYPECODE tt:value-ref="RETAILTYPECODE"/>
                    <ITEMIDQUALIFIER tt:value-ref="ITEMIDQUALIFIER"/>
                    <ITEMID tt:value-ref="ITEMID"/>
                    <RETAILQUANTITY tt:value-ref="RETAILQUANTITY"/>
                    <SALESAMOUNT tt:value-ref="SALESAMOUNT"/>
                    <ENTRYMETHODCODE tt:value-ref="ENTRYMETHODCODE"/>
                    <EXTENSIONS>
                      <tt:loop ref="$b.EXTENSIONS">
                        <item>
                          <FIELDGROUP tt:value-ref="FIELDGROUP"/>
                          <FIELDNAME tt:value-ref="FIELDNAME"/>
                          <FIELDVALUE tt:value-ref="FIELDVALUE"/>
                        </item>
                      </tt:loop>
    </EXTENSIONS>
                  </item>
                </tt:loop>
    </RETAILLINEITEM>
    <TAX>
                <tt:loop ref="$a.TAX">
                  <item>
                    <TAXNUMBER tt:value-ref="TAXNUMBER"/>
                    <TAXTYPECODE tt:value-ref="TAXTYPECODE"/>
                    <TAXAMOUNT tt:value-ref="TAXAMOUNT"/>
                  </item>
                </tt:loop>
    </TAX>
    <EXTENSIONS>
                <tt:loop ref="$a.EXTENSIONS">
                  <item>
                    <FIELDGROUP tt:value-ref="FIELDGROUP"/>
                    <FIELDNAME tt:value-ref="FIELDNAME"/>
                    <FIELDVALUE tt:value-ref="FIELDVALUE"/>
                  </item>
                </tt:loop>
    </EXTENSIONS>
             </item>
           </tt:loop>
      </IT_TRANSACTION>
      </tt:template>
    </tt:transform>
    Edited by: Thomas Zloch on Nov 24, 2010 12:38 PM - please use code tags also for XML structures

    You might be able to solve this using conditional transformations, please see SAP online help for simple transformations:
    http://help.sap.com/saphelp_nw04/helpdata/en/0c/402040abf2c442e10000000a1550b0/frameset.htm
    Please let us know the result.
    Thomas

  • Update Baseline option in P6 Web Access ver 8.0

    Hi there,
    I can't find the "Update Baseline" option in P6 Web Access ver 8.0, although, it is still available in the client-server version.
    Any thoughts?

    It is not available in the Web version, you can contact Oracle to put in an enhancement request.

  • HT4623 I am trying to update my iPad to iOS6 but there is no update software option on the general screen

    I am trying to update my iPad to iOS 6 but there is no update software option under general settings..please help me. Also I can not get it to connect to wireless service at home but it will other places.

    Connect your iPad to iTune (computer) and Check for Updates. Backup before you proceed with update.
    http://i1224.photobucket.com/albums/ee374/Diavonex/Album%201/e0f22e92de98ebae10e 3fd537c16619e.jpg

  • Update Progress option

    I used the Update Progress option and my highlighted activities did not get actualized automatically as it happens when you use the same option in P3. Can anyone tell me if this option in P6 requires any other step or if something else needs to be configured? Thank you in advance.

    Thanks for the reply. My data date was January 15, then I dragged it to January 31, so all the activities that fall within that range are highlighted, then I applied "Update Progress" (same procedure as in P3). However, the activities did not get actualizaed automatically as it happens in P3 when you do the same thing. Am I missing any other step?

  • JTree: Updating a single node

    I have a Jtree and need, during the course of the apps execution, update the information in the tree, specifically change the icons of individual nodes. setLeafIcon() allows you to change the icon for the entire model, but I just need to change it for individual nodes. anyone else implement this or have any ideas?
    thanks.
    -karl

    ok, i still can't get it working, though im closer.
    my problem is that i use a wrapper node(AdapterNode) to wrap Node objects. Inside the AdapterNode is an icon field that gets initialized, then changed dynamically during the execution of the app. Through debuggin over the past 13 hours(ugh), i've found my root problem: the JTree re-renders ALL of its nodes everytime an event is fired. When this happens, it recurses down the tree, and reinitializes all of my icons. (The icons get initialized in the AdapterNode constructor. there is not other place to do this because of the recursion)
    I notice that 2 event listeners get registered with my custom TreeModel.
    I was thinking about setting a boolean flag for an initial render of the tree, then mark it false and have it update only specific nodes. any suggestions?
    thanks.
    -karl

  • Remove Mass Update Progress option

    Hi All,
    How can we disable/remove the "Mass Update Progress" option under the Actions in the workplan tab.
    Can someone assist on the issue.
    Regards,
    Rakesh Menon
    Edited by: Rakesh Menon on Jun 22, 2011 12:44 AM

    Hello,
    I am using responsibility based security. There is no function called "Mass Update".
    The Mass Update Program is added from Lookup sets which is a system lookup set, we cannot edit a system lookup set.
    I tried creating a user lookup with the same values and disabled the "Mass update Progress" option, but i'm not sure how to link the new user lookup to the workplan actions so that this new lookup overwrites the existing system lookup.
    Thanks & Regards,
    Rakesh Menon

  • To update the Associate node from se38 program

    Hi Expert,
    I am trying to update the bobf root node and associate node under it.
    This is BOBF EHFND_DATA_AMOUNT custom enhanced z_***** , i can able to update the root node but for associate node created after enhancement its not updating.
    Code i used is
               APPEND INITIAL LINE TO lt_mod ASSIGNING <ls_mod>.
              <ls_mod>-node        = if_ehs_ih_ehfnd_data_am_c=>SC_NODE-/SDR/EHS_IH_AMNPPE_ITEM.
    *          /sdr/if_ehs_ih_ehfnd_data_am_c=>sc_association-root-ehs_ih_amnppe_item.
              <ls_mod>-change_mode = /bobf/if_frw_c=>SC_MODIFY_CREATE.
              <ls_mod>-key         = lr_s_amnppe_item->key.
              <ls_mod>-data        = lr_s_amnppe_item.
              <ls_mod>-association = /IF_EHS_IH_EHFND_DATA_AM_C=>SC_ASSOCIATION-/SDR/EHS_IH_AMNPPE_ITEM-/SDR/EHS_IH_AMNPPE_ITEM.
              <ls_mod>-source_node = if_ehfnd_amn_c=>SC_NODE-ROOT.
              <ls_mod>-source_key  = lv_key.
              <ls_mod>-root_key    = lv_key.
    *      Create the Amount record:
          CALL METHOD lo_driver->mo_svc_mngr->modify
            EXPORTING
              it_modification = lt_mod
            IMPORTING
              eo_change       = lo_change
              eo_message      = lo_message.
                "Check for errors:
          IF lo_message IS BOUND.
            IF lo_message->check( ) EQ abap_true.
              lo_driver->display_messages( lo_message ).
              RETURN.
            ENDIF.
          ENDIF.
          "Apply the transactional changes:
          CALL METHOD lo_driver->mo_txn_mngr->save
            IMPORTING
              eo_message  = lo_message
              ev_rejected = lv_rejected.
          IF lv_rejected EQ abap_true.
            lo_driver->display_messages( lo_message ).
            RETURN.
          ENDIF.
    but the above code is not helping to update the associate node from se38 program.
    Regards
    Sasikumar S
    Can anybody help me on that thanks in advance.

    Hi Sasi,
    According to what you have written above, You want to update a Z node under a root node.
    But in the coding for association you have written a standard node.
    Give the name of the Z interface which is created and in that you will have the 'Z' custom created node.
    Try this.
    ls_mod>-association = "Z Interface"=>SC_ASSOCIATION-"root_node"-znode.
    Hope this helps you.
    Regards,
    Sanket Vaity.

  • Hello Sir i'm from Pakistan my iphone have not show update ios7 option how can i do?

    hello Sir i'm from Pakistan my iphone have not show update ios7 option how can i do?

    You've been answered multiple times now. Please look at your other posts with this question.
    https://discussions.apple.com/people/millerlog4684
    Regards.

  • Update all option is disable in iphone 4s

    I just bought new iphone 4s there is lot of apps who need update but when I click on Update it open the App & Update All option is disable also.
    Anklur Jain

    Check in restrictions to see if App downloading is restricted

  • HT4623 Hi. I'm trying to update my iPod but the update software  option is not available. What should I do?

    Hi. I'm trying to update my iPod but the update software option is not available.
    Does anyone know what I should do?

    Liamatron wrote:
    Hi. I'm trying to update my iPod but the update software option is not available.
    That is only a feature of iOS 5 or later...
    If you have iOS 4... See Here...
    http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it...
    if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch

  • HT4623 3GS doesnt have the update software options so what do I do?

    3GS doesnt have the update software option under general settings..I want to update my version of itunes to be able to download the Times Mobile App..cant seem to do it..

    The feature you are looking for is available with iOS 5 or later. You will need to update your iPhone with iTunes on a Mac or PC.
    Hope that helps

  • Apps won't update. When I click "update" it just opens the app. Also, "update all" option is unavailable (grey) iphone 5

    I have an iphone 5, I have many apps to update. when I open App store and go to update app, it just opens the app. I closed down all my apps and restarted my phone.  please help. thanks.

    I noticed the same problem yesterday on my iPhone 5 (7.0.3)
    Update all option was greyed out and attempting to update individually just opened the app.
    I did a hard reset and bingo, worked first time.

Maybe you are looking for

  • How to have multiple VideoMASTER devices

    I currently have an application that makes color bar measurements.  This VI (seen below) was quickly written just to see how well it does a color bar measurement.  One thing that I realized is that I can't programmatically select a different video an

  • External Speakers not working on V3839TU

    er.Hi. I gotten myself external speakers that comes along with a subwoofer. But then I jack it in. There's no sound coming out from the external speakers. What should I do? Is it possible that my sound driver is not the right one?

  • New to XML+Java: which is the best API?

    Hi, I am new to XML+Java and I am trying to develop an application that will both read and write to an XML file. After reading some tutorials, I decided that jaxp, sax, and org.w3c.dom.* are rather low-level and very unfriendly. After a cursory web s

  • F110 Debit Balance Check auto block account

    Hi: on F110 , I run debit balance check and execute the and put block. Is this really block vendor account or not? I go to FK05 but it not put the block there. pls advise.

  • Deploy IBM EAR on Oracle Application Server 10G

    Hi, I need to deploy an IBM EAR to Oracle Application Server 10G. When i'm trying to deploy I get this message. Deployment failed: The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception. Resolution: Please call Oracl