Need to update the xml clob-pls pls help!

my xml is stored as blob, i can view,do string manipulation and churn out data etc...but now i have a request where i need to find some particualr node and modify its value.
here is what i m doing now which works.
select compressor2.blob_decompress2(xml_data) into l_blob
from tablename where id=2008890;
clob_data := utl2.blob2clob(l_blob);
parser := xmlparser.newParser;
xmlparser.parseClob(parser, clob_data);
doc := xmlparser.getDocument(parser);
nl := xmldom.getElementsByTagName(doc, '*');
len := xmldom.getLength(nl);
dbms_output.put_line('Length : ' || len);
tag_name := 'Node Verson : ' || xmldom.getVersion(doc)|| '<br>';
for counter in 0..len-1
loop
tag_name := '';
node := xmldom.item(nl, counter);
parent_node := xmldom.getParentNode(node);
child_node := xmldom.getfirstchild(node);
tag_name := 'Parent Name : ' || xmldom.getNodeName(parent_node) || '<br>';
tag_name := tag_name || 'Node Name : ' || xmldom.getNodeName(node) || '<br>';
IF xmldom.getNodeType(child_node) = xmldom.TEXT_NODE THEN
tag_name := tag_name || 'Node Value : ' || xmldom.getNodeValue(child_node)|| '<br>';
ELSE
tag_name := tag_name || 'Node Value : Node has child.No Node value.' || '<br>';
END IF;
tag_name := tag_name || 'Node Type : '||xmldom.getNodeType(child_node) || '<br>';
ele_name := xmldom.getDocumentElement(doc);
child_nl := xmldom.getElementsByTagName(ele_name,'*');
IF xmldom.isNull(doc) THEN
htp.p('Document is null');
ELSE
htp.p(tag_name);
END IF;
end loop;
b_blob := utl.clob2blob(tag_name);
select compressor2.blob_compress2(b_blob) into b_blob2 from dual;
insert into xupdate values (2008890,b_blob2);
i still need to know how to update the xml clob... i want to know how to find the particular node and then modify the clob with the new value. rest i can update the table.
pls pls help..on this.

my oracle version.
10.2.0.1.0
i want to update here..
<?xml version="1.0" encoding="utf-8"?>
<TestData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
     <Status>CompletedNormally</TestCompletionStatus>
     <ComputerName>DUILT10</ComputerName>
     <StartTime>2008-03-19T15:12:23</StartTime>
---Some more noded----
<Parameters>
          <RangeMeasured>
               <Name>PDissBol-5[C]</Name>
               <Min>1.22</Min>
               <Max>1.36</Max>
               <Units>W</Units>
          </RangeMeasured>
          <TextMeasured>
               <Name>ComputerName</Name>
               <Value>DUILT10</Value>
          </TextMeasured>
          <RangeMeasured>
               <Name>TrackError25[C]To-5[C]</Name>
               <Min>0.031</Min>
               <Max>0.041</Max>
               <Units>dB</Units>
          </RangeMeasured>
          <RangeMeasured>
               <Name>Power-5[C]</Name>
               <Min>1.988</Min>
               <Max>1.061</Max>
               <Units>dBm</Units>
          </RangeMeasured>
---some more noded---
</Parameters>
</TestData>
the file is huge.
what i need to chang==>
I 1st need to find this PDissBol-5[C] within the <Parameters> Node and then change its <Min> and <Max>
and then update the table.
pls pls suggest.

Similar Messages

  • IPhoto updating library after every iPhone pic transfer is the Problem!  PLS Help

    Hello.
    Everytime I plug in my iPhone, iphoto opens us and promtly asks me if I wish to download all the new picutres, as it should.
    Once I complete the transfer, I exit the iPhoto program, and without fail, iPhoto begins to update my ENTIRE photo library of over 45K pictures, dating back to the early 2000's.
    I am NOT using any cds, I just got this great new iMac in March of 2011, so i know its got the newest and truest hard and software installed.  I just cannot figure out why it needs to update the old data too.
    Anyone else feeling my pain and has since fixed it?
    please advise...
    Thank you in advance.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I cant send MMS using my iphone 5s . it keep on prompt me a msg "MMS Messaging needs to be enabled to send this message", but inside "setting/message" there's no button for me to ON the SMS/MMS. pls help. Thks

    I cant send MMS using my iphone 5s . it keep on prompt me a msg "MMS Messaging needs to be enabled to send this message", but inside "setting/message" there's no button for me to ON the SMS/MMS. pls help. Thks

    @Dmitriy Buldakov, have you found the solution to the issue yet? I have the same problem, no option to turn on MMS in my iPhone settings. I checked the settings on my friend's iPhone, which has the same iOS version as me (8.1.1), and the option is there. It's really annoying...

  • HT4623 I have an iPod touch 2nd gen running ios 4.2.1 and i can't update it cuz theres no 'software update' in my settings. pls help. is there any other way i can update my iPod?

    I have an iPod touch 2nd gen running ios 4.2.1 and i can't update it cuz theres no 'software update' in my settings. pls help. is there any other way i can update my iPod?

    No more updates for the 2nd Gen.
    zyrako wrote:
    I have an iPod touch 2nd gen running ios 4.2.1 ...
    That is as far as your iPod will go.

  • I updated the latest version of iOS software on my Macbook Pro and now when I try to open up iPhoto it says that I need to update the latest version. But when I go to update, it says the latest version is unavailable to the U.S. I can't access photos

    I updated the latest version of iOS software on my Macbook Pro and now when I try to open up iPhoto it says that I need to update the latest version. But when I go to update on iTunes, it says the latest version is unavailable to the U.S. I wouldn't mind leaving it be but I can't access any of my photos. What do I do?

    stuckoncc wrote:
    I updated the latest version of iOS software on my Macbook Pro
    iOS is on iPhones and iPads.
    Are you using an iPhone or iPad?

  • My ipod touch says I need to update the software in order to access iTunes for apps, but iTunes says I have the most current version.  What do i do?

    I have an iPod touch.  When I try to download an app, it says I need to update the device's software to access the iTunes store.  But, when i connect to iTunes, it says I have the most current version.  I'm stuck.  My mother got this iPod as free-with-purchase when she bought her desktop.  She used it, then gave it to me.  Could this be the problem? because she connected it to her iTunes and now it won't work on mine?  When I first plugged it into my iTunes, it said the iPod was registered to another account and did I want to sync it with my account, to which I said yes.  So far, this iPod has been useless to me because I can't download any apps to it.  Help, please.

    Which ipod is it?
    Identifying iPod models
    What ios is on the ipod?
    What itunes version do you have?
    What computer OS do you have?

  • HT5312 Alright, I have two apple ID's and I deleted the other on a whim a while back. Now whenever I need to update the iphoto or iMovie, it says to sign in into my deleted account, but I don't remember my old account's password either.

    I currently had two apple ID's and I deleted the other on a whim a while back. Now whenever I need to update the iphoto or iMovie, it says to sign in into my deleted account, but I don't remember my old account's password nor the security questions. Any Help Please?

    Check the AppleCare number for your country here:
    http://support.apple.com/kb/HE57
    Call them up, and let them know you would like to be transferred to the Account Security Team.

  • I have an Airport Express that I am trying to use connected by ethernet to my iMac G4 running Mac OS 10.4.11.  I need to update the Airport software in order to use security option WPA2 Personal.  I currently have Airport software v. 5.6.1.

    I have an Airport Express that I am trying to use connected by ethernet to my iMac G4 running Mac OS 10.4.11.  I need to update the Airport Express softwart in order to use security option WPA2 Personal to connect to the internet through my Airport Extreme.  I currently have Airport Express software version 5.6.1.  How can I update this software? (I can connect directly to my Airport Extreme by ethernet and download the update that way).  Is a later version of A E software available for download anywhere?   Any suggestions would be greatly appreciated.
    Thanks.

    Download and install AirPort Utility 5.4.2 for Mac OS X 10.4.11 "Tiger" here:
    AirPort Utility 5.4.2
    Once installed, launch AirPort Utility. It will tell you if a firmware upgrade is available for your Express.

  • Am not able to run the java program - pls help

    1. I installed java in the below path
         c:\program files\java\jdk1.5.0
         c:\program files\java\jre1.5.0
    I set the path in
         User variable i. variable name: path
              ii. variable value: c:\program files\java\jdk1.5.0\bin
    when I compile it in command prompt-applying javac ? it performed successfully-shows
    options like ?g create all debug info, -g : new Generate no debug info etc.,
    But am not able to run the file. It shows error msg.
    2. I specified the same name for file name & class name.
    3. Java <class name>
         Exception in thread ?main?java.lang.NoclassDeffoundError: <class name>
    4. Java ?cp <class name>
         Unrecognized option: -cp.<classname>
         Could not create the Java Virtual Machine
    5. Java ?classpath . <classname>
         Exception in thread ?main?.java.lang.unsupported classversionError: <classname>
         <unsupported major.minor version 49.0
              at java.lang.classloader.defineclass0<native method>
              at java.lang.classloader.defineclass<unknown source>
                   --and many listed below?
    6. Java ?classpath c:\program files\java\jdk1.5.0\bin <class name>
         Exception in thread ?main?java.lang.NoclassDeffoundError: <class name>
    7. I re-installed the java, but still the problem continuing.
    pls help... its very urgent

    Is the java class you compiled/calling in the default package? If it is not, you will have to call it by the fully qualified name.
    e.g.
    package com.mycompany.myproject;
    public class MyClass {
        public static void main(String[] args) { }
    }This would be called as "Java com.mycompany.myproject.MyClass" and must contain a main method with signature as above.
    You would have to call this from folder where the compiled classes are located. If using package, you would call from directory at level of top most package so com folder in this example as Java will look at each package name in qualified name and try to traverse directories with those same names to get to .class file matching class name specified. To avoid this, your newly compiled .class files must also be in your classpath.
    Hopefully that helps.
    --Kevin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • HT1338 I have os 10.5.8 software on my mac and I need to update the software on my mac so I can update my iphone 4s, every time I try to update my mac with the 6.0 it says it doesn't need any updates, but my mac still has 10.5.8.... any help??  Please...

    I have os 10.5.8 software on my mac and I need to update the software on my mac so I can update my iphone 4s, every time I try to update my mac with the 6.0 it says it doesn't need any updates, but my mac still has 10.5.8.... any help??  Please...

    You must first buy Snow Leopard from Apple: 800-MY-APPLE (in the US)
    Make sure your system meets Snow Leopard's requirements:
    Mac OS X 10.6 "Snow Leopard" System Requirements
    To install Snow Leopard for the first time, you must have a Mac with:
    An Intel processor
    An internal or external DVD drive, or DVD or CD Sharing
    At least 1 GB of RAM (additional RAM is recommended)
    A built-in display or a display connected to an Apple-supplied video card supported by your computer
    At least 5 GB of disk space available, or 7 GB of disk space if you install the developer tools

  • I accidentally added the app store apple id wrong, then I was able to put the right one but now that I need to update the application tells me to insert the id of the psw wrong, how do I change it?

    I accidentally added the app store apple id wrong, then I was able to put the right one but now that I need to update the application tells me to insert the id of the psw wrong, how do I change it?

    You must update the apps with the Apple ID that they are purchased with.
    The only way to get round this is to re-purchase the app with the new Apple ID.

  • Need to update the actual start date & time of a operation in workorder

    Hi Experts,
                   I need to update the Actual Start date and Actual start time of a Operation of  a WorkOrder through a Function Module.
    I was looking into the BAPI_ALM_ORDER_MAINTAIN FM, but i couldn't find any field relating to the actual start date and start time of a operation.
    Kindly Suggest me which Function module i can use to complete my task.
    Thanks in Advance
    bye

    Hi,
    It is system's standard behavior and no other MRP type will help you in moving the start date outside the planning time fence. With MRP type P3 new requirements are covered at the end of the fixing period, the end date is set and planed order is scheduled backword. Hence the start date will lie within the planning time fence.
    Rgds,

  • When i got my new iphone 4, its in recovery mode. while restroing with itunes, im getting error at restoring firmware stage? what could be the reason? pls help me for solution.

    when i got my new iphone 4, its in recovery mode. while restroing with itunes, im getting error at restoring firmware stage? what could be the reason? pls help me for solution.

    You got a new iPhone 4, and out of the box the phone is in recovery mode? If that's the case, return it.
    If you don't want to do that. what error code are you getting?

  • In OWB I need to update the target table with same field for match/update

    In OWb I am trying to update the target table with the match and the update on the same field can this be done. I am getting a error match merge error saying you cannot update and match on the same field. But in SQl my select is
    Update table
    set irf = 0
    where irf = 1
    and process_id = 'TEST'
    Hwo do i do this in OWB.

    table name is temp
    fields in the table
    field1 number
    field2 varchar2(10)
    field3 date
    values in the table are example
    0,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    In the above example I need to update the first row field1 to 1.
    Update temp
    set field1 = 1
    where field1 = 0
    and field2 = 'TEST'
    when I run this I just need one row to be updated and it should look like this below
    1,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    But when I run my mapping I am getting the rows like below the second row with 9 also is getting updated to 1.
    1,'TEST',05/29/2009
    1,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009

  • I just bought a new iPad 2. It says I need to update the software but it keeps failing., I just bought a new iPad 2. It says I need to update the software but it keeps failing.

    I just bought a new iPad 2. It says I need to update the software but it keeps failing., I just bought a new iPad 2. It says I need to update the software but it keeps failing.

    Have you already activated the iPad? That is what the screen is telling you to do - connect to the computer with the supplied cable and run iTunes while connected - and iTunes should guide you through the set up process. If you have already set up the iPad and you are still getting thos screen message - restore your iPad. You must be running iTunes 10.5 on your computer as well.
    Restore iPad
    If you can't restore this way, you will need recovery mode.
    Unable to Restore

Maybe you are looking for