How to update weblogic.xml

i create user programmatically.(not using administration tool). user gets added.
But i cannot login as a new user. problem is because of no entry in weblogic.xml
for that user.
when i manually add entry i can login.
My question is are there any way by which i can update this entry
programmatically.
thanks in advance
Mahesh

<security-role-assignment>
<role-name>employee</role-name>
<principal-name>employeeGroup</principal-name>
</security-role-assignment>
and then programmatically add them to the group "employeeGroup"
Cameron
"Mahesh" <[email protected]> wrote:
>
Thanks for your reply Griffin
my weblogic.xml looks like this
<security-role-assignment>
<role-name>employee</role-name>
<principal-name>scott</principal-name>
<principal-name>john</principal-name>
<principal-name>peter</principal-name>
</security-role-assignment>
But when i add new employee(programmatically) lets us say 'mark' i want
weblogic.xml
to be updated for 'mark' also. Actually i can see new employee in admin
portal.
But weblogic.xml will not be updated.
How to this programmatically. Any suggestions.
Thanks
Mahesh
Phil Griffin" <BEA> wrote:
Mahesh,
I assume you're talking about adding a <principal-name> in weblogic.xml?
Consider using a group name as principal, or using <role-name> instead.
That will give you more flexibility.
-Phil
>>
"Mahesh" <[email protected]> wrote in message
news:4047f4a8$[email protected]..
i create user programmatically.(not using administration tool). usergets
added.
But i cannot login as a new user. problem is because of no entry inweblogic.xml
for that user.
when i manually add entry i can login.
My question is are there any way by which i can updatethis
entry
programmatically.
thanks in advance
Mahesh

Similar Messages

  • How to update weblogic.properties in order to support English & Chinese

    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

    If you are using JSP as your mechanism for content display, you should use
    the contentType parameter to specify the character and coding of the JSP
    page any character encoding of the resulting stream. So far, we have not
    done a good job of documenting how to produce localized content in JSP. I
    have filed an issue for the documentation folks to work on it. For now,
    take a look at section 2.7.4 of the JSP specification version 1.1.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:8ffr11$59d$[email protected]..
    <URGENT PROBLEM>
    hi,
    how to update weblogic.properties in order to support English & Chinese
    version in a sing weblogic server?
    Thanks in advance
    <URGENT PROBLEM>

  • How to edit weblogic.xml in Jdeveloper web project

    Hi, All,
    I created a web application in Jdeveloper11.1.1.1 and deployed to weblogic server 10.3, I found there is weblogic.xml under WEB-INF folder in war file.
    I try to add something in weblogic.xml, but the problem is I cannot find weblogic.xml in Jdeveloper.
    How to edit weblogic.xml in Jdeveloper? Thanks in advanced.
    Best Regards,
    Bill

    The weblogic.xml file is generated at deploy time if it doesn't exist in your application. To create it specifically in your application at design time for editing, select the appropriate project then the New option, from the New Gallery select General -> Deployment Descriptors -> Weblogic Deployment Descriptor, and in the resulting dialog select the weblogic.xml file. It will be added to the project -> Web Content -> WEB-INF directory.
    Cheers,
    CM.

  • How to updating plugin.xml when it changed in 12C?

    After Importing the Plug-in Archive and Deploying it on Management Service with 12C, I need to make a change with plugin.xml in Plug-in Archive. Here it's the change,
    --- Old one:
    <PluginAttributes Type="MP" ReleaseStatus="Test"/>
    --- Change to:
    <PluginAttributes Type="MP" DisplayName="MySQL Database" Category="Databases"/>
    So I un-deployed Plug-in from Management Serbice, and used command "emcli import_update" to update the brand new OPAR file successfully, and the deployed again. But it seems the new plugin.xml didn't work at all, neither from UI nor the plugin.xml located under Management Server folder. I am sure it should work cause after I changed the Target Type and etc. in all related files to made a new plug-in, it works well.
    So how to updating plugin.xml when it changed in 12C? (It seems there is no option with MRS.)
    Thanks in advance!
    Best wishes,
    Satine

    Hey Caroy,
    Thank you for your help.
    It seems there is no entrance within page "Setup->Extensibility->Self Update" to delete a plugin. Would you please tell me more specific position?
    I will upgrade the version of plugin and try again to see if it works.
    Thanks,
    Satine

  • How to update session.xml file

    any body have an idea about how to update the session.xml file using Toplink workbench Editor.
    I have an Jar file which contains the session.xml file , so i am trying to update the session.xml file with me database details.

    any body have an idea about how to update the
    session.xml file using Toplink workbench Editor.
    For 10.1.3, see "Sessions Configurations and the sessions.xml File" in the TopLink Developer's Guide: http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/sesun002.htm#CACIGEBC
    For 10.1.2, see "OracleAS TopLink Sessions Editor" in the TopLink Mapping Workbench Guide: http://download.oracle.com/docs/cd/B14099_16/web.1012/b15900/tscedit.htm

  • How to Update an XML schema..

    Hi All,
    I am new to XML concept. I have a requirement to create a xml schema which will be updated on a weekly basis and a table which associated to the created xml schema.. when ever the Schema is updated the table should not get affected.. Is there a way to solve my problem.. Kindly help me.
    I am using the following client:
    SQL*Plus: Release 10.2.0.1.0 - Production on Mon Jan 31 11:44:59 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    ////////////////////////////////// XML Schema ///////////////////////
    begin
    dbms_xmlschema.registerSchema(
    'http://www.oradev.com/chipsxml1.xsd',
    '<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.oradev.com/chipsxml1.xsd"
    xmlns:samp="http://www.oradev.com/chipsxml1.xsd"
    version="1.0">
    <element name="HICC">
    <complexType>
    <sequence>
         <element name="UTI">
              <complexType>
              <sequence>
              <element name = "U01" type = "string"/>
              <element name = "U02" type = "string"/>
              <element name = "U03" type = "string"/>
              <element name = "U03a" type = "string"/>
              <element name = "U03b" type = "string"/>
              <element name = "U03c" type = "string"/>          
              <element name = "U04" type = "string"/>                    
              <element name = "U05" type = "string"/>                    
              </sequence>
              </complexType>
         </element>
         <element name="SSI">
              <complexType>
              <sequence>
              <element name = "S01" type = "string"/>
              <element name = "S02" type = "string"/>
              <element name = "S02A" type = "string"/>
              <element name = "S02B" type = "string"/>
              <element name = "S02C" type = "string"/>          
              </sequence>
              </complexType>
         </element>
    </sequence>
    </complexType>
    </element>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end;
    ////////////////////////// Table which has multiple Column //////////////////////////
    CREATE TABLE chipsxmltable2 (
    id number, HICCXMLDATA XmlType)
    XMLTYPE HICCXMLDATA STORE AS OBJECT RELATIONAL
    XMLSCHEMA "http://www.oradev.com/chipsxml1.xsd"
    ELEMENT "HICC";
    ///////////////////////////////// Insert Query in chipsxmltable //////////////////////////
    INSERT INTO chipsxmltable2 VALUES(1,
    xmltype.createxml('<?xml version="1.0"?>
    <samp:HICC xmlns:samp="http://www.oradev.com/chipsxml1.xsd" >
    <UTI>
    <U01>No</U01>
    <U02>Y</U02>
    <U03>Y</U03>
    <U03a>Y</U03a>
    <U03b>Y</U03b>
    <U03c>Y</U03c>     
    <U04>Y</U04>
    <U05>Y</U05>          
    </UTI>
    <SSI>
    <S01>No</S01>
    <S02>Y</S02>
    <S02A>Y</S02A>
    <S02B>Y</S02B>
    <S02C>Y</S02C>
    </SSI>
    </samp:HICC>'));
    //////// This is my Revised XML Schema ///////////////////////
    begin
    dbms_xmlschema.registerSchema(
    'http://www.oradev.com/Rchipsxml1.xsd',
    '<schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.oradev.com/Rchipsxml1.xsd"
    xmlns:samp="http://www.oradev.com/Rchipsxml1.xsd"
    version="1.0">
    <element name="HICC">
    <complexType>
    <sequence>
         <element name="UTI">
              <complexType>
              <sequence>
              <element name = "U01" type = "string"/>
              <element name = "U02" type = "string"/>
              <element name = "U03" type = "string"/>
              <element name = "U03a" type = "string"/>
              <element name = "U03b" type = "string"/>
              <element name = "U03c" type = "string"/>          
              <element name = "U04" type = "string"/>                    
              <element name = "U05" type = "string"/>                    
              </sequence>
              </complexType>
         </element>
    </sequence>
    </complexType>
    </element>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end;
    My question is:
    How to update schema without affecting my table and the data which has already in the table?
    Apologies if the description is not clear. Kindly let me know if further details are needed. Many thanks for your help.
    Very best regards,
    Godwin Jebakumar C.V.
    Thanks in advance,
    Godwin Jebakumar

    Duplicate thread : {thread:id=2171878}
    Please mark this one as "answered".

  • How to update record xml data?

    Hi,
    How can update existing record using an existing xml packet?
    Thanks.

    Hi,
    The above Exception seems to be because of mapping error.
    Check your mapping for all the mandatory 1-1 mapping, also the 1-unbounded parent node mapping.
    Once when you import the XSD and activate your External Definition if it does without any error then there is no problem with your External Definition.
    If this error occurs only when you test your mapping then this is mapping error and not because of XSD.
    Please check the parent node mapping like 1-unbounded.
    Reward Points if useful
    Regards
    Ashmi.

  • How to Update and XML file

    Hi,
    I'm reading an XML file using SAX api, now based on some calculations, i want to add a new Element inside the same XML file.
    <?xml version="1.0" encoding="UTF-8"?>
    <types>
    <type super = "City">
    <t>Faro</t>
    <t>Porto</t>
    <t>Helsinki</t>
    </type> 
    </types>Now in the above XML snippet, i want to add an new sub element <t> Islamabad </t>, inside types.
    Following is the point in the code where i'm stuck:
    for (int typeID = 0; typeID < typeList.size(); typeID++) {
                        Element type = (Element) typeList.get(typeID);
                        String superTypeStr = type.getAttributeValue("super").toString();
                        if (superTypeStr.equalsIgnoreCase(comboValue)) {
                             Element t = new Element("t");
                             t.addContent(typeValue);
                             //NOW HOW TO ADD THIS <t>, inside a matched type element (in this case "city"), and write it into the xml file
                             break;
    typeList is a List object, which i get using : typeList = types.getChildren("type");Hope i have explained the problem clearly, writing an XML fime from scratch is easy. but in my case i want to update an existing xml file with a new element entry.
    The XML file should need to be updated like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <types>
    <type super = "City">
    <t>Faro</t>
    <t>Porto</t>
    <t>Helsinki</t>
    <t>Islamabad</t>
    </type> 
    </types>--
    Regards Suleman

    hey mate, i remember when i had a similar issue before. I ended up using parsing the document using DOM instead of SAX. The reason being that i wanted to update the XML file and if i parsed the document using DOM i had a handle on the document object so i could subsequently update it. But the drawback is that the entire xml structure is parsed into memory, as opposed to SAX which im sure you know is event driven and memory friendly. I would use SAX for the simple process of parsing the xml file to either examine, or print out the content or both.Perhaps consider DOM?

  • How to update an XML file?

    hi,
    I am having an xml file like this.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map [ <!ELEMENT map (entry*) >
    <!ELEMENT entry EMPTY >
    <!ATTLIST entry key ID #REQUIRED
    value CDATA "mydefault"> ]>
    <map>
    <entry key="key1" value="xxx"/>
    <entry key="key2" value="yyy"/>
    </map>
    I have written a DOMparsing program to parse this XML file. And the program is this,
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.transform.TransformerException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.DOMException;
    import org.w3c.dom.Attr;
    import org.w3c.dom.NodeList;
    public class DomExample
    public static void main(String args[])
    // Obtain an XML document; this method is implemented in
    Document doc = parseXmlFile("sample1.xml", true);
    //Getting elements by Tag name
    NodeList nodeList= doc.getElementsByTagName("entry");
    // Obtain an element
    Element element = (Element)(nodeList.item(0));
    element.removeAttribute("value");
    element.setAttribute("value", "Manivannan");
    try
    TransformerFactory tFactory =TransformerFactory.newInstance();
    StreamSource stylesource = new StreamSource();
    Transformer transformer = tFactory.newTransformer(stylesource);
    DOMSource source = new DOMSource(doc);
    //File f1 = new File("Sample3.xml");
    StreamResult result = new StreamResult(System.out);
    transformer.transform(source, result);
         catch(TransformerException te)
         te.printStackTrace();
    public static Document parseXmlFile(String filename, boolean validating) {
    try {
    // Create a builder factory
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    factory.setValidating(validating);
    DocumentBuilder builder = factory.newDocumentBuilder();
    // Create the builder and parse the file
    Document doc = builder.parse(new File(filename));
    return doc;
    } catch (SAXException e) {
    // A parsing error occurred; the xml input is not valid
    } catch (ParserConfigurationException e) {
    } catch (IOException e) {
    return null;
    Now what i am trying to do is replace value xxx in my xml with "Manivannan" and yyy with "gopalan"..But what i am getting during running this program is i am getting MalformedURL exception..Also will this program be able to update my xml with new values.If not possible pls let me know the method to update my xml file.
    Thanks for your reply in advance.

    Replace
    StreamSource stylesource=new StreamSource();
    Transformer transformer=tfactory.newTransformer(stylesource);with
    Transformer transformer=tfactory.newTransformer();

  • How to Update existing XML File Using Java Swing

    Hi,
    I am reading XML file and getting keywords into JList. When i add some keywords into JList through textfield and remove keywords JList, then after click on save button it should update xml file. How can i do it ?
    Please provide me some code tips for updating xml file
    This is the code that i am using for reading XML File:
    import javax.swing.*;
    import java.awt.event.*;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    import java.io.IOException;
    import java.util.*;
    import java.text.Collator;
    import java.util.regex.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import com.cloudgarden.layout.AnchorConstraint;
    import com.cloudgarden.layout.AnchorLayout;
    public class getKeywords extends JFrame implements ActionListener
    static JPanel p;
    static JLabel lbl;
    static JButton btnSave,btnAdd,btnRemove;
    static String path;
    static Vector v;
    static JList lstCur;
    static JTextField txtKey;
    Document dom;
    static image imgval;
    NodeList nodelstImage;
    static AnchorLayout anchorLay;
    private DefaultListModel lstCurModel;
    public getKeywords()
         super("Current Keywords");
        v=new Vector();
        p=new JPanel();
        txtKey=new JTextField(10);
        btnAdd=new JButton("Add");
        btnRemove=new JButton("Remove");
        btnSave=new JButton("Save");
        lbl=new JLabel("Current Keywords");
        lstCurModel=new DefaultListModel();
            lstCur=new JList();
            JScrollPane scr=new JScrollPane(lstCur);
        runExample();
         lstCur.setModel(lstCurModel);
         p.add(lbl);
         p.add(scr);
         p.add(txtKey);
         p.add(btnAdd);
         p.add(btnRemove);
         p.add(btnSave);
         add(p);
         btnAdd.addActionListener(this);
         btnRemove.addActionListener(this);
         btnSave.addActionListener(this);
         setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    public static void main(String arg[])
         getKeywords g=new getKeywords();
         g.resize(250,400);
         g.setVisible(true);     
    public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==btnAdd)
              lstCurModel.addElement(txtKey.getText());
         if(ae.getSource()==btnRemove)
              lstCurModel.remove(lstCur.getSelectedIndex());
         if(ae.getSource()==btnSave)
              //Code to Write
         public void runExample()
              //Parse the XML file and get the DOM object
              ParseXMLFile();
              //Get the Detail of the Image Document
              parseImageDocument();
              //Get the Detail of the LML Document
              //parseLMLDocument();
              //System.out.println(lmlval.Title);
         public void ParseXMLFile()
              //Get the Factory
              DocumentBuilderFactory builderFac = DocumentBuilderFactory.newInstance();
              try
                   //Using factory get an instance of the Document Builder
                   DocumentBuilder builder = builderFac.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   dom = builder.parse("LML.xml");
              catch(ParserConfigurationException pce)
                   pce.printStackTrace();
              catch(SAXException sax)
                   sax.printStackTrace();
              catch(IOException ioex)
                   ioex.printStackTrace();
         public void parseImageDocument()
              //Get the root element
              Element docImgEle = dom.getDocumentElement();
              //Get a nodelist for <Image> Element
              nodelstImage =  docImgEle.getElementsByTagName("Image");
              if(nodelstImage != null && nodelstImage.getLength() > 0)
                   for(int i = 0; i < nodelstImage.getLength(); i++)
                        //Get the LML elements
                        Element el = (Element)nodelstImage.item(i);
                        //Get the LML object
                        getImage myImgval = new getImage();
                        imgval = myImgval.getimage(el);
                        v.addElement(new String(imgval.Thumb));
                        String[] x = Pattern.compile(",").split(imgval.Keys);
                        for (int s=0; s<x.length; s++)
                        lstCurModel.addElement(x[s].trim());
                        //System.out.println(x[s].trim());
    }     Thanks
    Nitin

    You should update your DOM document to represent the changes that you want made.
    Then, using the Transformation API you simply transform your document onto a stream representing your file. Something like this:
    Transformer transformer = TransformerFactory.newInstance().newTransformer();
    transformer.setOutputProperty(OutputKeys.INDENT, "yes");
    // TODO - set indentation amount!
    Source source = new DOMSource(dom);
    Result result = new StreamResult(file);
    transformer.transform(source, result);Hope this helps.

  • How to Update form XML

    Is it possible to update a Form  (SAPbouiCOM.Form)using xml
    I would to add controls such as datagrid to the opened form using xml
    The will form is Add-on form, not an SBO Form
    Any hint
    Sincerely yours
    Riade Asleh
    Edited by: Rui Pereira on Dec 23, 2008 3:24 PM

    Thanks for the article, however I could not find what I need
    Using Xml ,I need to update/modify User Form that is already loaded and visible
    I want to be able to access the xml of an active form and add more controls to it such as a grid
    I have have grid stored as xml, so I wan to add it to the active form based on user inputs. In the active , after the user's inputs are entered and click on button , i want to load the grid to the xml of the form
    Sincerely yours
    Riade Asleh
    Edited by: Rui Pereira on Dec 23, 2008 3:10 PM

  • How to update xml from portal

    Can i update weblogic.xml from portal(programmatically). i am using WL
    platform 8.1 sp2.
    Now i am manually adding each principal name.
    For ex:
    <principal-name>mark</principal-name>
    Can i achieve this programmatically from portal.
    Any solution
    TIA
    Mahesh

    this is what i have done but i dont know how to do the rest. i will apprecite any help from u.
    Edited by: man700s on Feb 16, 2010 6:58 AM
    REPORT  Z_XML_FILE_UPDATE.
    TYPES: BEGIN OF ts_staff,
             REF_IND(10)  TYPE c,
             Staff_No(5)  TYPE c,
             Name(50)     TYPE c,
             Room(3)      Type n,
             Phone(7)     Type n,
             Mail(30)     Type c,
           END OF ts_staff.
    DATA: t_staff TYPE TABLE OF ts_staff WITH HEADER LINE.
    DATA: w_staff Type ts_staff.
    DATA T_STRING TYPE TABLE OF STRING.
    DATA W_STRING TYPE STRING.
    call SCREEN 100.
    PERFORM upload_xml_file.
    PERFORM update_xml_tab.
    *PERFORM download_xml_file.
    MODULE USER_COMMAND_0100 INPUT.
    W_STRING = '<allstaff>'.
      APPEND w_string to t_string.
      loop at t_staff into w_staff.
      w_string ='<staff>'.
      APPEND w_string to t_string.
      if T_staff-Ref_Ind = 'X'.
      CONCATENATE '<Ref_Ind>' w_staff-Ref_Ind '</Ref_Ind>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-staff_no = 'X'.
      CONCATENATE '<staff_no>' w_staff-staff_no '</staff_no>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-name = 'X'.
      CONCATENATE '<name>' w_staff-name '</name>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
    if T_staff-room = 'X'.
      CONCATENATE '<room>' w_staff-room '</room>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-phone = 'X'.
      CONCATENATE '<phone>' w_staff-phone '</phone>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      if T_staff-mail = 'X'.
      CONCATENATE '<mail>' w_staff-mail '</mail>' into w_string.
      APPEND w_string to t_string.
      ENDIF.
      w_string = '</staff>'.
      append w_string to t_string.
    ENDLOOP.
      W_STRING = '</allstaff>'.
      APPEND w_string to t_string.
    ENDMODULE.               
    Edited by: man700s on Feb 16, 2010 7:01 AM

  • 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.

  • Author Name Not Updated After XML Fix

    I've searched high and low for a solution before posting this thread.
    I'm on my 9th episode of my podcast. I've been on itunes since the first episode and my feed is through feedburner. I've always wondered why the Author name in the Itunes store is "Unknown" and wanted to get it fixed. A couple weeks ago I figured out how to update the XML information in feedburner and updated the Author name and pinged feedburner. Since then, Author name is STILL listed as Unknown.
    Can anyone tell me what else I have to do for this to be updated?? It's just baffling to me that itunes is updating fine with my new episodes when I ping but is not picking up the Author info.
    Please help!
    By the way, the podcast is called the Decibel Geek podcast.
    Thanks in advance!

    Please when you have a query always post the feed URL to save detective work: for the record yours is at
    http://dbgeekshow.libsyn.com/rss
    The relevant tag in the feed does not contain a name;
    <itunes:author><![CDATA[]]></itunes:author>
    Feedburner is not involved in this - iTunes is using the Libsyn feed and it's there that you need to make the amendment.

  • How to update multiple elements in xml?

    Hi!
    I've a input xml containing Sales Order information.
    The xml-file has a Header and multiple detail records
    e.g.
    <NS3:header>
    + <NS3:detail>
    + <NS3:detail>
    + <NS3:detail>
    + <NS3:detail>
    + <NS3:detail>
    + <NS3:detail>
    + <NS3:detail>
    </NS3:header>
    In each detail node, I want to control if requestedDate is a working day and change date if it's not correct
    e.g.
    <NS3:detail>
    -<NS3:product>
    -<NS3:item>
    <NS3:itemProduct>222288
    </NS3:itemProduct>
    </NS3:item>
    </NS3:product>
    <NS3:quantityOrdered>2
    </NS3:quantityOrdered>
    -<NS3:processing>
    <NS3:actionType>A
    </NS3:actionType>
    </NS3:processing>
    <NS3:dateRequested>2012-03-03T13:17:48.439+01:00
    </NS3:dateRequested>
    </NS3:detail>
    In this example is <NS3:dateRequested>2012-03-03T13:17:48.439+01:00</NS3:dateRequested> a Saturday and this element should be updated with the new date for Monday <NS3:dateRequested>2012-03-05T13:17:48.439+01:00</NS3:dateRequested>
    The new date is fetched from a Web Service I invoke for each detail record.
    I can read each node and get the element for each dateRequested in a while loop by using XPATH as following:
    <scope name="Scope_1">
    <sequence name="Sequence_2">
    <assign name="Assign_3">
    <copy>
    <from expression="ora:countNodes('inputVariable','payload','/ns1:processSalesOrderElement/ns1:header/ns1:detail')"/>
    <to variable="Count"/>
    </copy>
    <copy>
    <from expression="1"/>
    <to variable="varindex"/>
    </copy>
    </assign>
    <while name="While_1"
    condition="bpws:getVariableData('varindex')&lt;bpws:getVariableData('Count')">
    <sequence name="Sequence_1">
    <assign name="Assign_6">
    <copy>
    <from expression="ora:getElement('inputVariable','payload','/ns1:processSalesOrderElement/ns1:header/ns1:detail',bpws:getVariableData('varindex'))"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:processSalesOrderElement/ns1:header/ns1:detail"/>
    </copy>
    </assign>
    <assign name="Assign_4">
    <copy>
    <from expression="ora:getElement('inputVariable','payload','/ns1:processSalesOrderElement/ns1:header/ns1:detail/ns1:dateRequested',bpws:getVariableData('varindex'))"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:processSalesOrderElement/ns1:header/ns1:detail/ns1:dateRequested"/>
    </copy>
    </assign>
    <assign name="Assign_1">
    <copy>
    <from expression="bpws:getVariableData('varindex') + 1"/>
    <to variable="varindex"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns1:processSalesOrderElement/ns1:header/ns1:businessUnit"/>
    <to variable="Invoke_1_startSecureCustomerRequestDate_InputVariable"
    part="parameters"
    query="/ns5:startSecureCustomerRequestDateElement/ns5:businessUnit"/>
    </copy>
    <copy>
    <from variable="outputVariable" part="payload"
    query="/ns1:processSalesOrderElement/ns1:header/ns1:detail/ns1:dateRequested"/>
    <to variable="Invoke_1_startSecureCustomerRequestDate_InputVariable"
    part="parameters"
    query="/ns5:startSecureCustomerRequestDateElement/ns5:jdDateRequestedJulian_DRQJ"/>
    </copy>
    </assign>
    <invoke name="Invoke_1"
    partnerLink="BT_SecureCustomerRequestDateManager"
    portType="ns4:Oracle_E1_SBF_SEI_PkgBldFile_BT_SecureCustomerRequestDateManager"
    operation="startSecureCustomerRequestDate"
    inputVariable="Invoke_1_startSecureCustomerRequestDate_InputVariable"
    outputVariable="Invoke_1_startSecureCustomerRequestDate_OutputVariable"/>
    <scope name="Scope_2">
    <sequence name="Sequence_3">
    <assign name="Assign_5">
    <copy>
    <from variable="Invoke_1_startSecureCustomerRequestDate_OutputVariable"
    part="result"
    query="/ns5:startSecureCustomerRequestDateResponseElement/ns5:jdDateRequestedJulian_DRQJ"/>
    <to variable="outputVariable" part="payload"
    query="/ns1:processSalesOrderElement/ns1:header/ns1:dateRequested"/>
    </copy>
    </assign>
    </sequence>
    </scope>
    </sequence>
    </while>
    My problem is how to update the date for each detail record back to my InputVariable.
    There is no XPATH function like updateElement or changeElement?!?
    I will use the information from InputVariable with the manipulated dateRequested later on to Invoke WS to create Sales Order in a target system.
    Thanks,
    Niklas

    Hi Niklas,
    have you considered also moving from assign activities to transformations?
    e.g. (in a loop)
    1. using an XSLT to prepare data for the 'BT_SecureCustomerRequestDateManager'
    -- input document ... from 'inputVariable'
    -- input parameter ... from 'varindex'
    -- output ................ to 'Invoke_1_startSecureCustomerRequestDate_InputVariable'
    2. invoking 'BT_SecureCustomerRequestDateManager'
    3. using an XSLT to modify 'inputVariable'
    -- input document ... from 'inputVariable'
    -- input parameter ... from 'varindex'
    -- input parameter ... output from 'BT_SecureCustomerRequestDateManager'
    -- output ................ to 'inputVariable'
    Then you will not need to create custom Java program (code). It is easy to do the logic/modification inside of an XSLT.
    Also BPEL process code will be easier to read.
    Regards,
    Martin.

Maybe you are looking for