How to update resource content (XML Versioning)

Hi,
How to update resource content in the resource_view?
I am trying to use XML Versioning. And not able to update the resource content using PL/SQL. Upon executing update, sql prompt says 1 row updated, but when I extract the same resource, it returns previous values. Is this a bug?
I tired the following statements:
--Create Resource
declare
bret boolean;
begin
bret := dbms_xdb.createresource('/public/test.xml','<Test>Version 1</Test>');
end;
--Update Resource
update resource_view
set res = updatexml(res, '/Resource/Contents/Test/text()', 'Version 2') where any_path = '/public/test.xml';
--Extract the resource
select extract(res, 'Resource/Contents') from resource_view where any_path = '/public/test.xml';
EXTRACT(RES,'RESOURCE/CONTENTS')
<Contents xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">
<Test>Version 1</Test>
</Contents>
Any help appriciated.
Thanks

Hi,
Update the whole 'Test' element itself with the new element and value.
example:
update resource_view
set res = updatexml(res, '/Resource/Contents/*', '<Test>Version 2</Test>') where any_path = '/public/test.xml';
Hope that helps.
Savitha.

Similar Messages

  • How can update my old iphone version 4.3.3 (8j2) to ios 5

    how can update my old iphone version 4.3.3 (8j2) to ios 5

    No further iOS updates are available for an iPhone 3G.
    (78113)

  • Problem trying to get at /Resource/Contents xml stuff

    Hi there,
    I have created the following:
    DECLARE
    retb boolean;
    BEGIN
    retb := dbms_xdb.createFolder('/public/mydocs');
    commit;
    END;
    declare
    bret boolean;
    begin
    bret := dbms_xdb.createresource('/public/mydocs/emp_maggie.xml','<name>maggie</name>');
    commit;
    end;
    My problem is this: I would like to get the emp_maggie.xml
    details back out of the resource but I am unable to figure out
    a way to do this. I can see that there is something in the
    /Resource/Contents tag by doing the following:
    SELECT p.res.GETCLOBVAL() FROM path_view p WHERE p.path = '/public/mydocs/emp_maggie.xml';
    which results in:
    <Resource xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd" Hidden="false" Inv
    alid="false" Container="false" CustomRslv="false" VersionHistory="false">
    <CreationDate>2002-06-18T09:44:53.902000000</CreationDate>
    <ModificationDate>2002-06-18T09:44:53.902000000</ModificationDate>
    <DisplayName>emp_maggie.xml</DisplayName>
    <Language>us english</Language>
    <CharacterSet>utf-8</CharacterSet>
    <ContentType>text/xml</ContentType>
    <RefCount>1</RefCount>
    <ACL>
    <acl description="Public:All privileges to PUBLIC" xmlns="http://xmlns.oracl
    e.com/xdb/acl.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sch
    emaLocation="http://xmlns.oracle.com/xdb/acl.xsd http:
    //xmlns.oracle.com/xdb/acl.xsd">
    <ace>
    <principal>PUBLIC</principal>
    <grant>true</grant>
    <privilege>
    <all/>
    </privilege>
    </ace>
    </acl>
    </ACL>
    <Owner>TEST</Owner>
    <Creator>TEST</Creator>
    <LastModifier>TEST</LastModifier>
    <SchemaElement>http://xmlns.oracle.com/xdb/XDBSchema.xsd#binary</SchemaElement
    >
    <Contents>
    <binary>641C4707F0EF4A0700100800A030CD6600000000D41A4707</binary>
    </Contents>
    </Resource>
    I have a tried a variety of commands including:
    select p.res.extract('/Resource/Contents/*').getStringVal() from resource_view p where equals_path(res, '/public/mydocs/emp_maggie.xml') > 0;
    select extract(res, '/Resource/Contents/*').getStringVal() from resource_view p where equals_path(res, '/public/mydocs/emp_maggie.xml') > 0;
    select extract(res, '/Resource/Contents/*') from resource_view p where equals_path(res, '/public/mydocs/emp_maggie.xml') > 0;
    all of which result in "1 row selected" but without showing any details of the xml
    document of interest.
    Does anybody know of a solution?
    Cheers,
    Maggie

    Mark,
    thanks for the help.
    This now seems to work, so long as I put an initial "/" before the public path:
    select xdburitype('/public/mydocs/emp_maggie.xml').getXML() from dual;
    Would still be great to know how the extract() and get_contents() methods are meant
    to work as detailed in table 13.3 of the Oracle9i XML database developers guide - Oracle XML DB Release 2.
    Cheers,
    Maggie

  • Update Resource content

    Hi KM Experts,
    Is it possible and how can I update/create resource content?
    There is the "IMutableContent" Interface but it doesn't provide any methods to update the content. For example I only want to update a txt file resource.
    Thanks
    Laurent.

    Hi Laurent,
    you can create new content and update your resource with the new content with something like this:
    IContent newContent = new Content(...);
    resource.updateContent(newContent);
    Hope that helps!
    Regards,
    Dieter

  • How to update MUSE to latest version?

    I am trying to update my version of MUSE CC. AAM is telling me it's up to date but I know there's a newer version. I have tried uninstalling and reinstalling but it's still not the latest version. How can I install the latest version?

    Install the creative cloud desktop app using the below link:-
    https://creative.adobe.com/products/creative-cloud
    And check if you get the option to install latest Muse version.

  • Patching - How to update the console product version when installing Update Rollup 5

    Hi,
    I just completed a patch to upgrade Service Manager to Update Rollup 5. I updated the data warehouse servers and management servers.
    When looking at installed programs in Windows it shows that Service Manager has the latest version 7.5.3079.315:
    However, when I look in the About Service Manager option in the console it shows a product version of 7.5.3079.0:
    How do I update the console product version so that it shows the 7.5.3079.315 version?

    Hi,
    This behaviour is expected. Unfortunately, Microsoft does not update the About Info screen of the SCSM console. Add remove programs shows version .315, which means the console was also updated.
    Make sure to also update consoles that your users are running on their computers.
    BR,
    Dieter

  • How to update to iOS6 US version: No satellite views except China. No 3D function. No 3D buildings using VPN.???

    Good morning.
    I just updated my iphone 4s and ipad3 to iOs6. It needs some upgrades. I am English, living in China with an English account:
    1 - No Satellite view outside of China. Only can see China in the middle of the ocean. Same problem when using VPN.
    2 - No 3D button. 3D button appears some times when using a VPN.
    3 - No 3D buildings anywhere like in New York (when 3D can be used using VPN). All are flat.
    4 - Flyover of course cannot be activated as no satellite views yet.
    Thank you to tell me:
    1 - Where to download a iOS6 US version.
    2 - How to updated my iphone from iOS6 Chinese download to a US version.
    Thank you in advance.

    Hi,
    If you issue the command "show crypto ikev1 sa" command and all you see is the below (I would suggest taking the output multiple times while testing to see if it always shows this, but I suspect it will show the same)
    1   IKE Peer: 23.102.17.136
        Type    : user            Role    : initiator
        Rekey   : no              State   : MM_WAIT_MSG2
        Encrypt : aes-256         Hash    : SHA
        Auth    : preshared       Lifetime: 0
    Then this likely means that the remote end is not properly configured or you are possibly using the wrong peer IP address in your L2L VPN configurations.
    I would also confirm that you have gotten the correct public IP address for the remote sites VPN device and also confirm that there is no device on your side that would prevent the VPN negotiation from taking place. Perhaps some device in front of the ASA that does firewalling also?
    In the above message the "MM_WAIT_MSG2" basically means that your device has initiated the negotiation by sending the first message of the negotiation and is still waiting for second message (reply) from the remote device.
    I have configured a L2L VPN once for a customer and the remote end was Azure. To be honest I have no real idea what Azure is but to my undertanding its not really the conventional networking device thats sole purpose would be firewalling or VPN. We also had problems configuring the L2L VPN but it was not really clear what caused the problems there.
    - Jouni

  • How to update the iPad iOS version? I have an iPad (first generation) iOS 5.1.1. I can't update the software via WiFi nether via iTunes

    I have an iPad (probably first generation - Model A1337 ). This tablet has iOS version 5.1.1.
    I would like to update for the latest version as possible.
    There is no option by iPad wifi.
    I also tried by iTunes and in option Checking for UpDate, only let me know the current version, but doesn't open the possiblity to update for a newer.
    How can I update the software version ?
    tks
    Reinaldo

    Hi,
    The first generation iPad is limited to iOS 5.1.1. This is due to the original iPad not having enough power or memory to get to iOS 6, 7 or any further in the future.
    All other iPads and iPad Minis can get to the current version - iOS 7.0.4 and at least until the end versions of iOS 7 or iOS 8.
    Hope this helps, and Welcome to the Apple Support Communities!

  • HT4562 How to update for the new version

    How to update for the new version

    Go to Settings - Software Update or connect your phone to your PC/Mac that has iTunes and update via iTunes.

  • How to update iphone ios to version i like?Now me using ios 4.1.I don't want to update to latest iso 6.0.

    How to update to 5.1.1.If i dont want to update to latest ios 6.

    You posted in the iPad forum instead of the iPhone forum. I'll request that Apple relocate your post.
     Cheers, Tom

  • How to update i-Pod Touch version 3.1.3 to iOS 4.0 ?

    I phoned Apple Support asking for help but they said that to update i-Pod Touch version 3.1.3 to iOS 4.0. is not possible. Are they right?
    Thank you.

    What model iPod Touch do you have? If it is a first generation then 3.1.3 is the highest level it can run.
    See http://support.apple.com/kb/HT1353.

  • HT4623 trying to sync my new iphone 5 with my i tunes but am told i need to update my itunes to allow me to do this , how do i go about this as i have logged on to itunes but dont know how to update to get new version , help please

    how do i update my version of i tunes as i cannot sync my new i phone 5

    At the top of this page click the iTunes Tab. You can update iTunes from there.

  • How to Update/install Photoshop CC version 14.2 (TRIAL)

    Hi there,
    I was really glad to see this new feature in Photoshop CC that exports PSD's to adobe reflow, So I decided to try out this trial to see if I like it and if it works good. I have been a very happy customer and adob product fan for years now.
    So downloaded Adobe CC. by using the Creative Cloud app. and I find out I have this version of Adobe:
    Adobe Photoshop Version: 14.0 (14.0 20130423.r.221 2013/04/23:23:00:00) x32
    Operating System: Windows 7 64-bit
    And I read, if you want to be able to generate an export to Reflow, you need to update to 14.2, so basicly I am 2 versions behind.
    1. Updating in the Creative Cloud isnt possible as it states V. Up to date.
    2. Searching for a update in Photoshop CC gives no results.
    3. Some on the forum suggested to use the CC cleaner, deinstall the program and Creative Cloud and reinstall. This gave me the exact same version.
    4. Contacted Customer Service Chat, they are not whilling to help on a trial account, and suggested I should purchase the product before they help you (how stupid is this, telling me to buy a product that doesnt seem to work in trial periode.
    5. I wanted to talk to somone so I decided to call Customer Service. and to make a long story short,  they came up with the same solution. As they dont know the right answer, they told me to go to the forums for a solution or buy the product AND then they will help me.
    6. More people have this issue on this forum, some problems are solved some are not. suggested solutions didnt work for me do.
    On the website, adobe  states clearly: we want everyone to have a chance to try out this new product, if you have a version 14.0 and update it to 14.2 your trial periode will even restart back to 30 day's.
    Ok well i would love to try out all these new features, but now I am running out of options. So  I sincerely hope that someonee can help me and provide me with a better solution then " buying this product"
    Kind regards
    Sources I used:
    http://blogs.adobe.com/crawlspace/2013/09/photoshop-cc-14-1-1-update-now-available.html
    http://blogs.adobe.com/photoshopdotcom/2013/09/introducing-adobe-generator-for-photoshop-c c.html
    https://creative.adobe.com/products/photoshop
    http://blogs.adobe.com/crawlspace/2013/06/updatingupgrading-to-photoshop-cc-faq.html#insta ll
    http://helpx.adobe.com/photoshop/kb/troubleshooting-plug-ins-photoshop-cs6.html
    http://blogs.adobe.com/jkost/2013/06/updatingupgrading-to-photoshop-cc-faq-excellent-resou rce.html

    Not having had any problems with the Creative Cloud application getting the updates myself (but I'm actually subscribed), I can't advise you directly from personal experience, though I have always thought that the Creative Cloud application would update you to the latest. 
    Have you tried closing and re-opening the Creative Cloud application, then checking again?
    I believe ProDesignTools has made the individual updates available online.  You could run the 14.2 update that way (no need to run the ones in between).
    http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    -Noel

  • How to update my Q10 OS version from 10.2.0 to 10.2.1 ? who can help me?

    i bought my q10 from hong kong china ,but now i am living beijing chian,the sim is china unicon, now my os version is 10.2.0.1791 . how can i update to 10,2.1?I hope to get help. thanks

    Hi and welcome to the Community
    Follow this article, by John_Clark.
    Upgrading BB10 OS Using Sachesi for an OTA-like Up...
    Good luck.
    • Click Likes to appreciate those who helps you
    • If your issue solved, mark the best post in your thread as Solution

  • How to update 3G to current version when itunes says already up2date?

    I still have and use my original Iphone 3G 16gig phone..  Its slow as a slug going uphill once you start filling the hard drive but anyways,   I tried to download an app in the app store yesterday and it said i needed to update to 4.3.xxx first...   so i thought cool finally an update for this ancient phone..  Connected to itunes and checked for an update and itunes says phone is up to date with version 4.2.1
        Am I missing something?  How can it tell me i need the current version for the app/phone when the phone and itunes say its already up to date? 

    wingtip wrote:
    Trust me, i do that alllll the time and it only helps a tiny bit...  Its just the full drive... i bet if i restored the phone to a clean slate it would zip again but whats the point..... i put stuff on there for a reason.... 
    Have you closed out everything in the Multitasking menu?  You can do that by double clicking the home button and then holding down on the apps until the red circle and then click on that.  Hope this helps.

Maybe you are looking for