(updating xml value)adding an element in an xml type column

Hi all,
i hava a table that contains an xml-Type column (non schema based)
i have inserted some data in it
table:(id,xmlcolumn)
ex:
insert into t1 values(1,'<Chapters>
<Chapter>ch1<Chapter>
<Chapter>ch2<Chapter>
</Chapters>')
i need to add a new Chapter: <Chapter>ch3</Chapter>
for the result of xml instance in the table to be:
<Chapters>
<Chapter>ch1<Chapter>
<Chapter>ch2<Chapter>
<Chapter>ch3<Chapter>
</Chapters>
plz if any one colud help

SQL> DECLARE
  2      l_xml      XMLTYPE := XMLTYPE('<Chapters>
  3  <Chapter>ch1</Chapter>
  4  <Chapter>ch2</Chapter>
  5  </Chapters>');
  6      l_xsl      XMLTYPE;
  7      l_new_node VARCHAR2(100) := '<Chapter>ch3</Chapter>';
  8  BEGIN
  9      dbms_output.put_line('Before adding node:');
10      dbms_output.put_line('----------------------------------------------------------------');
11      dbms_output.put_line(l_xml.getStringVal());
12      dbms_output.put_line('----------------------------------------------------------------');
13      l_xsl := XMLTYPE('<?xml version="1.0"?>' ||
14                       '<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"' ||
15                       ' version="1.0"' || ' result-ns=""' || ' indent="no">' ||
16                       '<xsl:output method="xml" media-type="text/xml" indent="no"/>' ||
17                       '<xsl:template match="/">' ||
18                           '<' ||l_xml.getRootElement() || '>' ||
19                               ' <xsl:for-each select="/' || l_xml.getRootElement() ||'/Chapter">' ||
20                                   '<xsl:copy-of select="." />' ||
21                               '</xsl:for-each>' ||
22                               l_new_node ||
23                           '</' || l_xml.getRootElement() || '>' ||
24                       '</xsl:template>' ||
25                       '</xsl:stylesheet>');
26      l_xml := l_xml.Transform(l_xsl);
27      dbms_output.put_line('After adding node:');
28      dbms_output.put_line('----------------------------------------------------------------');
29      dbms_output.put_line(l_xml.getStringVal());
30      dbms_output.put_line('----------------------------------------------------------------');
31  END;
32  /
Before adding node:
<Chapters>
<Chapter>ch1</Chapter>
<Chapter>ch2</Chapter>
</Chapters>
After adding node:
<Chapters>
  <Chapter>ch1</Chapter>
  <Chapter>ch2</Chapter>
  <Chapter>ch3</Chapter>
</Chapters>
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • XML Parsing Error: no element found Line Number 1, Column 1:

    Hi All,
    I have deployed EAR on my standalone server using JDEV 11.1.1.6.0. I am able to get the WSRP portlet producer page on
    http://<server>:7001/contextRoot. But when i try to click on any of the WSDL URL it gives me "XML Parsing Error: no element found Line Number 1, Column 1:"
    and from IE it gives me: XML document must have a top level element. Error processing resource
    there can be a issue with the WSRPContainer.jar file. So i have remove it from my deployment profile, EAR and lib/classpath files.
    Can you please suggest a workaround.
    Regards,
    ND
    Edited by: ND on Dec 4, 2012 9:57 PM

    Hi All,
    this error normally comes when the WLS domain is not not properly created. if you get some exception for ./provesecurity.sh file while creating the domain, then the XML error comes.
    I did not went into the depth but figured out a workaround: restart the VM/hosted box and then create the domain, remember to use diff port name while creating it from the domain creation script.
    Regards,
    ND

  • How to set a new value for an element inside an XML file....

    Hi guys...!
    I'm using Java to process an XML file and I want to able to make changes to the document. For instance, let say:
    <firstName> John </firstName>
    and I want to change the content or value of the element "firstName" to "Marc"
    <firstName>Marc</firstName>
    How can I get this done?
    This is the code that I have in my java file...But it doesn't work. Nothing happens. The firstName remains "John".
    Do I need to get the owner document to do this?
    firstPersonElement.getElementsByTagName("firstName").item(0).getFirstChild().setNodeValue("Marc");
    Any suggestions will be appreciated...
    Thanks...
    --- Spirit_Away...

    IMHO, it should work the way you describe. Do you
    actually save the DOM tree to file afterwards?Good point. No, actually.
    How do you save the document in that case ???
    Any suggestions...
    Thanks...
    --- Spirit_Away

  • Selcect/ update attribute value using xpath navigator/ linq to xml

    Hi Folks,
    below is my xml string and the highlighted bold attribute value needs to update. Since this element contains prefix im not able to select teh particular element. if i remove the prefixx im able to select but i need to keep prefix.
        <IOP:MtvnSvcReq xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:IOP="mtvnCWExternInteropReq" xmlns:IOP1="mtvnExtInteropReqData" xmlns:PR1="mtvnPRInteropReqData">
                              <IOP:Svc>
                                                 <IOP1:PR1>
                                                       <PR1:PRExternSSOReqData>
    <PR1:UserId>abcd</PR1:UserId>
                                                       </PR1:PRExternSSOReqData>
                                                 </IOP1:PR1>
                                </IOP:Svc>
                        </IOP:MtvnSvcReq>
    Thanks 

    Hi Pulikk,
    Do you mean you want  to change the attribute value(abcd)? If so,
    Please try the following code, i tested on my side, it changed successfully.
    //Here is the variable with which you assign a new value
    string newValue = string.Empty;
    XDocument objDoc = XDocument.Load(@"yourdata.xml");
    XNamespace IOP = "mtvnCWExternInteropReq";
    XNamespace IOP1 = "mtvnExtInteropReqData";
    XNamespace PR1 = "mtvnPRInteropReqData";
    foreach (var node in objDoc.Descendants(PR1 + "UserId"))
    node.Value = newValue;
    objDoc.Save(@"yourdata.xml");
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to update the value in wbs element in the iw32

    Hi All,
    Can anyone help me in providing the USER EXIT OR BADI at the time of saving the IW31 / IW32  work order creation or Change. I need to populate the PSPEL ( WBS ELEMENT in Additional data tab with the value coming from Field Exit.
    Here is my analysis on the same.
    I have written Field Exit for Settlement Receiver field in Maintain Settlement SCREEN à 1 and Exporting the value.
    IMPORT the same value into Variable and need to pass the value to PSPEL field ( WBS ELEMENT ) in Additional Data Tab  using any USER EXIT or BADI at the time of save Work Order .
    I tried to use the USER EXIT u201CEXIT_SAPLCOIH_009u201D  and passed Manually at the time of Debugging into CAUFVD-PSPEL and executed. But the Value is not appearing in the Screen after execution.
    Any help is greatly appreciated.

    hi check this exit...
    IWO10012

  • Since upgrading to FF5, i get the following xml error on local development server (IIS 7 Windows 7): XML Parsing Error: no element found, Line Number 1, Column 1. The pages display fine when uploaded to hosting server. How do i resolve it

    All aspx pages running locally via IIS or Visual studio inbuilt server can not be displayed in FF5. This problem has only occured since upgrading to FF5. The same sites/code worked fine with the previous version of FF.
    When uploaded onto a hosting server the pages display fine. Pages all display ok on local IIS on IE, chrome, opera etc.
    I do go through a proxy server, but so do the other browsers.
    All this means i can't develop locally on FF. Help please!

    Maybe your application doesn't support "Send NTLMv2 response only. Refuse LM & NTLM".
    https://support.software.dell.com/zh-cn/foglight/kb/133971

  • How do I update the value of a hidden field?

    Jsp has hidden field. The value of the hidden field is set.
    <%= RequestCtx.getSessionInfoAsHiddenParam() %>
    <INPUT type ="HIDDEN" name=billtoContactPartyId" Value="<%=billtoContactPartyId %>">
    Based on some logic I've added to the jsp. I want to update the value of the hidden field. This does not work. How do I update the value?
    windowForm.elements['billtoContactPartyId'].value = windowForm.elements['defaultcontactPartyId'].value;

    Hi,
    If you create a function to return wwctx_api.get_user you could
    call this inside an update trigger, you could put in an
    exception to return USER if there is an error, this would then
    work for users connected directly and users using Portal.
    Regards Michael
    e.g.
    CREATE OR REPLACE FUNCTION F_PORTAL_USER RETURN VARCHAR2 IS
         vRet VARCHAR2(50) := wwctx_api.get_user;
    BEGIN
         RETURN(vRet);
    EXCEPTION
         WHEN OTHERS THEN
              RETURN (USER);
    END F_PORTAL_USER;

  • Satellite Pro L300 PSLB1E - How to install the Value added package?

    Hi there
    I have tried updating the value added package on my machine I followed the instructions and removed my previous version and even cleaning the pc with ccleaner and running tune up utilites 2009 but every time i go to install the new value added package i get the same message remove previous version first in the add and remove programmes list.
    I have removed this checked and double checked in add and remove and it is no where to be found but still no success installing the new software.
    Can anyone help me resolve this matter?
    Thanks

    Hay
    Have you restarted your notebook after removing VAP from the system?
    I have updated VAP on several notebooks and have never noticed something like this.
    After removing VAP from the system new version was always installed properly.
    I can imagine something is still in registry.
    You can check it and try to remove manually.
    Search all entries for Toshiba Value and remove it.
    If this will not work all you can do is to install OS again using recovery image. After clean installation remove VAP again, restart your notebook and install latest version.

  • XML into one string element

    Hello,
            In Graphical mapping, Could anyone pls tell me in detail about how to achieve One whole xml into one string element. This XML file i want to send to DATABASE.

    Thi blog might be of some help
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

  • Preventing update to COPA tables for a particular Sales order type

    Hi ,
    We need to have incoming sales order transfer to COPA activated only for one particular sales order type activated.
    Earlier we implemented note 571697  for user exit to allow COPA update only for particular sales order type.
    This prevented the transfer of SO to actuals table, but off late the performance for VA01 and VA02 has decreased substantially.
    Upon checking, we found this is happening because of other CE4XXXX tables (excluding CE1XXXX) which are getting updated during creation/ change of SO. as the data in these tables is huge .
    If possible, please advise, right userexit to prevent update to these tables.
    Thanks.
    Neeraj

    Thanks for your inputs..I have few more queries on same.
    Initially we had incoming sales order activated in KEKF allong with implemented SAP note 571697, which helped us to update CE1XXXX only for a particular sales order type. This was initial requirement to have system updating COPA values only for one particular sales order type.Also, KEQ3 was also activated which resulted in updates to CE4XXXX. This was not a problem initially since we had few sales orders now that plant has grown old with more sales order (resulting in huge size of CE4XXXX) VA01 is impacted..
    Currently ,since we have KEQ3 activated so, Segment is created the moment we create sales order.. and table CE4XXXX is updated..
    As most of you have suggested to switch off sales order in KEQ3, i need to analyze the impact of this..
    From what i understand CE1XXXX will continue with updation for that order type... and CE4XXXX won't be updated in future..Please correct me if i am wrong..
    Also, please advise what all can be possible impacts on COPA reporting if I switch off from now onwards (client has been using this since long) , and what all should be the precautions that i should take while doing this.
    Thanks

  • How to update/change the value of elements in an xml file?

    Hi Everyone,
    Could any one of u tell me how to update the value of elements in an XML file, using java? The reason is i want to use an XML file as a data source (i.e. more or less like a database), without using any RDBMS, for simple applications such as to read a record and update the record. By the way, my XML file will have only one record, such as the current weather information, with fields such as temperature, humdity etc. for 1 city only.
    Thanks in advance.

    Here is a solution how to check a particular value or element name in an xml and update the changes e to an xml.
    Sample.xml
    <URLConstructor>
    <application name="cp_outage">
    <resource>hello</resource>
    <value>val</value>
    </application>
    <application name="cp_outage">
    <resource>hello</resource>
    <value>val</value>
    </application>
    </URLConstructor>
    XMLWriter.java
    package com;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.DOMBuilder;
    import org.jdom.output.XMLOutputter;
    // used for printing
    import org.apache.xml.serialize.XMLSerializer;
    import org.jdom.output.XMLOutputter;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Iterator;
    import java.util.List;
    class XMLWriter{
    public void update(File fileName)
    try {
              DOMBuilder domBuilder=new DOMBuilder();
              Document doc=domBuilder.build(fileName);
              Element element=doc.getRootElement();
              getChildren(element);
              writeToXML(doc,fileName);
              getChildren(element);
    } catch (Exception e) {
    e.printStackTrace();
         * @param doc
         private void writeToXML(Document document,File filePath)
                   XMLOutputter xmloutputter = new XMLOutputter();
                        try
                             FileOutputStream fileOutputStream = new FileOutputStream(filePath);
                             xmloutputter.output(document, fileOutputStream);
                             fileOutputStream.close();
                        catch (FileNotFoundException e)
                             e.printStackTrace();
                        catch (IOException e)
                             e.printStackTrace();
         public void getChildren(Element element)
                        if(!element.hasChildren())
                             return;
                        List childrenList = element.getChildren();
                        Iterator itr=childrenList.iterator();
                        while(itr.hasNext())
                             Element childElement=(Element) itr.next();
                             if(childElement.hasChildren())
                                       getChildren(childElement);
    //                                   System.out.println("Name "+childElement.getName());
    //                                   System.out.println("Value "+childElement.getText());
                                       if(childElement.getText().equals("hello") || (childElement.getName().equals("resource")))
                                            updateInfo(childElement,"New_Resource","AddedText");
         * @param childElement
         * @param string
         * @param string2
         private void updateInfo(Element element, String elementName, String value)
              element.setName(elementName);
              element.setText(value);          
    static public void main(String[] args)
    XMLWriter xmlWriter=new XMLWriter();
    xmlWriter.update(new File("c:/sample.xml"));
    After execution the file will be changed to
    <URLConstructor>
    <application name="cp_outage">
    <New_Resource>AddedText</New_Resource>
    <value>val</value>
    </application>
    <application name="cp_outage">
    <New_Resource>AddedText</New_Resource>
    <value>val</value>
    </application>
    </URLConstructor>
    Regards,
    Maheswar

  • How to update the value in xml file using transformer after setNodeValue

    Hi,
    This is my code
    I want to set update the values in xml file using transformer..
    Any one can help me
    This is my Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <place>
    <name>chennai</name>
    </place>
    Jsp Page
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory,
    javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <% String str="";
    String str1="";
    try
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
    out.println("Before change");
    NodeList n11 = doc.getElementsByTagName("name");
    Node n22= n11.item(0).getFirstChild();
    str1 = n22.getNodeValue();
    out.println(str1);
    out.println("After change");
    String name = "Banglore";
    NodeList nlst = doc.getElementsByTagName("name");
    Node node= nlst.item(0).getFirstChild();
    node.setNodeValue(name);
    NodeList n1 = doc.getElementsByTagName("name");
    Node n2= n1.item(0).getFirstChild();
    str = n2.getNodeValue();
    out.println(str);
    catch(Exception e)
    out.println(e) ;
    %>
    <h1><%=str%></h1>
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    </body>
    </html>

    hi check this exit...
    IWO10012

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • Adding an extra element to a XML message

    Hello,
    We are generating XML-files using DBMS_XMLQUERY on a Oracle Database 10g Enterprise Edition Release 10.2.0.3.0.
    This works fine. But now one of our customers needs an extra element (header) in the XML file. How do I get this job done?
    The XML-file needs to look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <aankomstBevestiging>
    <header>
    <retailPartnerCode>retailPartnerCode</retailPartnerCode>
    <bestandsNaam>bestandsNaam</bestandsNaam>
    <berichtNaam>berichtNaam</berichtNaam>
    <berichtDatumTijd>2001-12-31T12:00:00</berichtDatumTijd>
    </header>
    <aankomst>
    <artikelNummer>artikelNummer</artikelNummer>
    <kleurNummer>kleurNummer</kleurNummer>
    <maat>maat</maat>
    <status>status</status>
    <aantalOntvangen>1</aantalOntvangen>
    <werkelijkeAankomstDatum>2001-01-01</werkelijkeAankomstDatum>
    <ggb>1</ggb>
    <goederenSoort>goederenSoort</goederenSoort>
    </aankomst>
    </aankomstBevestiging>
    Currently the output looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <aankomstBevestiging>
    <aankomst>
    <artikelNummer>artikelNummer</artikelNummer>
    <kleurNummer>kleurNummer</kleurNummer>
    <maat>maat</maat>
    <status>status</status>
    <aantalOntvangen>1</aantalOntvangen>
    <werkelijkeAankomstDatum>2001-01-01</werkelijkeAankomstDatum>
    <ggb>1</ggb>
    <goederenSoort>goederenSoort</goederenSoort>
    </aankomst>
    </aankomstBevestiging>
    The code generating this XML:
    procedure create_xml_file(
    is
    l_xml clob;
    l_ctx DBMS_XMLQUERY.ctxhandle;
    PROCEDURE clob_to_xml (p_file IN VARCHAR2,
    p_clob IN CLOB,
    p_dir in varchar2,
    p_setrowsettag in varchar2 default 'Dataset',
    p_setrowtag in varchar2 default 'Table'
    IS
    l_output UTL_FILE.file_type;
    l_amt NUMBER DEFAULT 5000;
    l_offset NUMBER DEFAULT 1;
    l_length NUMBER DEFAULT NVL (DBMS_LOB.getlength (p_clob), 0);
    BEGIN
    l_output := UTL_FILE.fopen (p_dir, p_file, 'w', 32760);
    WHILE (l_offset < l_length)
    LOOP
    UTL_FILE.put (l_output, DBMS_LOB.SUBSTR (p_clob, l_amt, l_offset));
    UTL_FILE.fflush (l_output);
    l_offset := l_offset + l_amt;
    END LOOP;
    UTL_FILE.new_line (l_output);
    UTL_FILE.fclose (l_output);
    END clob_to_xml;
    BEGIN
    l_ctx := DBMS_XMLQUERY.newcontext('select mvw.rpr_artikel_nr "artikelNummer",
    mvw.rpr_kleur_nr "kleurNummer",
    mvw.rpr_maat_code "Maat",
    mat.locus_status_code "Status",
    mat.ontvangen_aantal "aantalOntvangen",
    mat.werkelijke_aankomst_datum "werkelijkeAankomstDatum",
    mat.ontvangst_order_nr "ggb",
    mat.ontvangst_order_nr "goederenSoort"
    from wdp_magazijn_aankomsten mat
    , wdp_rpr_artikel_maat_vw mvw
    where mvw.maa_id = mat.maa_id;);
    DBMS_XMLQUERY.setrowsettag (l_ctx, 'aankomstBevestiging' );
    DBMS_XMLQUERY.setrowtag (l_ctx, 'aankomst');
    DBMS_XMLQUERY.setdateformat (l_ctx, 'dd-MM-yyyy HH:mm:ss');
    DBMS_XMLQUERY.setencodingtag (l_ctx, 'UTF-8');
    l_xml := DBMS_XMLQUERY.getxml(l_ctx);
    DBMS_XMLQUERY.closecontext (l_ctx);
    clob_to_xml (p_file_name,l_xml, l_dir );
    end if;
    end;
    /

    Posted this messages also in PL/SQL XML programming
    Adding an extra element to a XML message

  • Loop through xml and update the value

    I have the following xml table. I need to update the Field which name="data"
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Root name="xyz">
    <Row id="1">
    <Field name="data">456</Field>
    <Field name="time">2005-02-08 10:43:51</Field>
    </Row>
    <Row id="2">
    <Field name="data">123</Field>
    <Field name="time">2005-02-08 10:43:16</Field>
    </Row>
    </Root>
    After update, the table should look like this
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <Root name="xyz">
    <Row id="1">
    <Field name="data">abc</Field>
    <Field name="time">2005-02-08 10:43:51</Field>
    </Row>
    <Row id="2">
    <Field name="data">edf</Field>
    <Field name="time">2005-02-08 10:43:16</Field>
    </Row>
    </Root>
    How do I update the value through java program? I do not want to load the data to database to update the value. The constrain is that i must have the value updated in java application before I loaded it to the database.
    Please any advise?
    Thank you!

    Use a DOM parser to parse the xml document...you will get a Document object, which you can use XPath or traverse the DOM tree and perform the updating.

Maybe you are looking for