XMLDOM Package

Hello,
What do I have to install to have the XMLDOM package available?
I have the situation, that I have installed the XMLDOM package in some Test-Instances, and also in the Developer Instance. The bad thing is, that I don't have it available on the customers instances, because they installed it with our Templates (obviously the Test-Instances too....)...
I use Database 9.2.0.6 <= Version <= 10.2.0.3
many thanks
regards
Christian

AFAIK the XMLDOM package is part of XDB.
Here are commands to install XDB.
@?/rdbms/admin/catqm.sql j0st <default tablespace> <temporary tablespace>
@?/rdbms/admin/catxdbj.sql

Similar Messages

  • Creating XML File Using xmldom Package

    How can I create an XML file from scratch using the PL/SQL xmldom package?
    I want to create an XML file using the xmldom package instead of building the individual tags as strings of VARCHAR2 character data. There is quite a bit of documentation regarding manipulating input XML files using DOM -- but not for creating XML files from scratch given known "tagnames" (<lastName>) and retrieved database "values" ("Smith").
    <person>
    <lastName>Smith</lastName>
    </person>
    Is there any documentation that you can recommend?
    Thank you.

    Here is an example.
    The create_file procedure creates the file.
    The other procedures are generic procs that can be used with any XML.
    PROCEDURE create_file_with_root(po_xmldoc OUT xmldom.DOMDocument,
    pi_root_tag IN VARCHAR2,
                                            po_root_element OUT xmldom.domelement,
                                            po_root_node OUT xmldom.domnode,
                                            pi_doctype_url IN VARCHAR2) IS
    xmldoc xmldom.DOMDocument;
    root xmldom.domnode;
    root_node xmldom.domnode;
    root_element xmldom.domelement;
    record_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    xmldom.setDoctype(xmldoc, pi_root_tag, pi_doctype_url,'');
    -- Create the root --
    root := xmldom.makeNode(xmldoc);
    -- Create the root element in the file --
    create_element_and_append(xmldoc, pi_root_tag, root, root_element, root_node);
    po_xmldoc := xmldoc;
    po_root_node := root_node;
    po_root_element := root_element;
    END create_file_with_root;
    PROCEDURE create_element_and_append(pi_xmldoc IN OUT xmldom.DOMDocument,
    pi_element_name IN VARCHAR2,
                                            pi_parent_node IN xmldom.domnode,
                                            po_new_element OUT xmldom.domelement,
                                            po_new_node OUT xmldom.domnode) IS
    element xmldom.domelement;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    BEGIN
    element := xmldom.createElement(pi_xmldoc, pi_element_name);
    child_node := xmldom.makeNode(element);
    -- Append the new node to the parent --
    newelenode := xmldom.appendchild(pi_parent_node, child_node);
    po_new_node := child_node;
    po_new_element := element;
    END create_element_and_append;
    FUNCTION create_text_element(pio_xmldoc IN OUT xmldom.DOMDocument, pi_element_name IN VARCHAR2,
    pi_element_data IN VARCHAR2, pi_parent_node IN xmldom.domnode) RETURN xmldom.domnode IS
    parent_node xmldom.domnode;                                   
    child_node xmldom.domnode;
    child_element xmldom.domelement;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    create_element_and_append(pio_xmldoc, pi_element_name, pi_parent_node, child_element, child_node);
    parent_node := child_node;
    -- Create a text node --
    textele := xmldom.createTextNode(pio_xmldoc, pi_element_data);
    child_node := xmldom.makeNode(textele);
    -- Link the text node to the new node --
    compnode := xmldom.appendChild(parent_node, child_node);
    RETURN newelenode;
    END create_text_element;
    PROCEDURE create_file IS
    xmldoc xmldom.DOMDocument;
    root_node xmldom.domnode;
    xml_doctype xmldom.DOMDocumentType;
    root_element xmldom.domelement;
    record_element xmldom.domelement;
    record_node xmldom.domnode;
    parent_node xmldom.domnode;
    child_node xmldom.domnode;
    newelenode xmldom.DOMNode;
    textele xmldom.DOMText;
    compnode xmldom.DOMNode;
    BEGIN
    xmldoc := xmldom.newDOMDocument;
    xmldom.setVersion(xmldoc, '1.0');
    create_file_with_root(xmldoc, 'root', root_element, root_node, 'test.dtd');
    xmldom.setAttribute(root_element, 'interface_type', 'EXCHANGE_RATES');
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mr', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'Joe', record_node);
    parent_node := create_text_element(xmldoc,'surname', 'Blogs', record_node);
    -- Create the record element in the file --
    create_element_and_append(xmldoc, 'record', root_node, record_element, record_node);
    parent_node := create_text_element(xmldoc, 'title', 'Mrs', record_node);
    parent_node := create_text_element(xmldoc, 'name', 'A', record_node);
    parent_node := create_text_element(xmldoc, 'surname', 'B', record_node);
    -- write the newly created dom document into the buffer assuming it is less than 32K
    xmldom.writeTofile(xmldoc, 'c:\laiki\willow_data\test.xml');
    EXCEPTION
    WHEN xmldom.INDEX_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Index Size error');
    WHEN xmldom.DOMSTRING_SIZE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'String Size error');
    WHEN xmldom.HIERARCHY_REQUEST_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Hierarchy request error');
    WHEN xmldom.WRONG_DOCUMENT_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Wrong doc error');
    WHEN xmldom.INVALID_CHARACTER_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Invalid Char error');
    WHEN xmldom.NO_DATA_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Nod data allowed error');
    WHEN xmldom.NO_MODIFICATION_ALLOWED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'No mod allowed error');
    WHEN xmldom.NOT_FOUND_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not found error');
    WHEN xmldom.NOT_SUPPORTED_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'Not supported error');
    WHEN xmldom.INUSE_ATTRIBUTE_ERR THEN
    RAISE_APPLICATION_ERROR(-20120, 'In use attr error');
    WHEN OTHERS THEN
    dbms_output.put_line('exception occured' || SQLCODE || SUBSTR(SQLERRM, 1, 100));
    END create_file;

  • XMLDOM package/ Plsql XML parser

    HI, I'm trying to build XML document using plsql parser 1.0.2 using xmldom package.
    The XML output given is not consistent and the AppendChild Call removed the Root node (from the XML document). This result in incomplete XML document.
    -------Expected ouput format (though header is not properly displayed---------------
    <Request>
    <Requestor RequestorID="0100" RequestorType="SP"/>
    <ValidateAddrReq IndividualRequestId="23456789">
    <Address2
    City="Manhattan" State="NY" Zip="10007">
    <Addrnum Value="140"
    AddrNumSuffix=""/>
    <StreetName StreetN
    ame="WEST" DirStreetPrefix="E" DirStreetSuffix="W" StreetTypeCode="ST"/>
    </Address2>
    </ValidateAddrReq>
    </Request>
    The same code is working in the Windows NT environment and when I moved to the actual AIX environment it is not working though, I'm not sure if there is any releation. Here the rood node and its child is chopped off.
    And also the formatting is different.
    -----------In AIX op. system, I'm getting ------------
    <ValidateAddrReq IndividualRequestId="123123">
    <Address2 City="BRONX"
    State="NY">
    <Addrnum Value="3040">
    <StreetName
    StreetName="BOSTON" StreetTypeCode="RD">
    <Structure
    StructType="BLDG" StructInfo="1A"/>
    </StreetNam
    e>
    </Addrnum>
    </Address2>
    </ValidateAddrReq>
    application Code:
    null

    I will look at using that, however in this example I dont belive that to be the problem as the string is < 4k.
    Ive now got the error message, it was being handled as an exception before and not reporting the error message.
    The error is
    ORA-20100 Error Occured While Parsing unexpected EOF.
    Any more suggestions
    Regards

  • XMLDOM-package has a bad performance

    I am using the XMLDOM-package for reading XML-documents.
    The performance however is very bad +/- 1 second for 200
    attributes.
    How Can I boost up this performance ?
    Is it possible to recompile the java-classes behind the xmldom-
    package with NCOMP ?
    Regards,
    Rik

    How can I improve the perfromance of InDesign?
    You can't.
    Check out this thread last post, and others on this forum. http://forums.adobe.com/thread/1332454?tstart=0
    Ignore the Adobe apologists as  their agenda seems to be to put a good spin on CC for what every reason.

  • "XMLDOM package cannot be found"

    I get the following message while trying to set up the design repository under Oracle 9i Enterprise 9.2.0.1.0 (Unix)
    OWB version is 9.0.4.8.21 (Running from Windows)
    "lineage and impact analysis won't work if user continues this installation since XMLDOM package cannot be found under this user"
    I did not have this problem installing Oracle 9i Enterprise 9.1.??? (Windows) at home with the same OWB version..
    please help !

    Oracle XML toolkit is required in database to run lineage and impact analysis. It's under Oracle 9i Development Kit node in the components tree when you run Universal Installer.
    Note that this is documented in "OWB Install Guide", section 1.2.2.1 where it states "Install the Oracle9i database with the Oracle XML Toolkit option."
    Nikolai

  • How do I represent "LESS THAN" using Oracle XMLDOM Package

    I am creating a xml file using Oracle XMLDOM package.
    I am creating a Text node with value "&#38;lt;". Following is the code that creates text node
    CRRuleoptext := xmldom.createTextNode(MDRDocVal,var_mdr_rule_oper_flag);
    The var_mdr_rule_oper_flag is coming from a table and its value is "&#38;lt;"
    But once the XML file is created I see
    <RULEOP>&;#38;lt;</RULEOP>
    instead of
    <RULEOP>&#38;lt;</RULE>
    How do I get &#38;lt; instead of &;#38;lt; using Oracle XMLDOM Package?

    Just create a text node with a literal less-than sign "<", this will get serialized either as &;lt; or as &;XX; (where XX is the unicode value for less-than).

  • Problem with XMLDOM package (Oracle 10.2.0.1.0)

    Hi,
    I am using the dbms_xmldom package to generate xml files (specific structure).
    Below is the code but It produces nothing (dbms_output does not return) :
    DECLARE
    doc xmldom.DOMDocument;
    main_node xmldom.DOMNode;
    root_node xmldom.DOMNode;
    root_elmt xmldom.DOMElement;
    transmissionHeaderNode xmldom.DOMNode;
    transmissionHeaderElement xmldom.DOMElement;
    item_node xmldom.DOMNode;
    item_elmt xmldom.DOMElement;
    item_text xmldom.DOMText;
    buffer_problem CLOB;
    BEGIN
    doc := xmldom.newDOMDocument;
    main_node := xmldom.makeNode(doc);
    xmldom.setversion(doc,'1.0');
    root_elmt := xmldom.createElement(doc, 'InvoiceTransmission');
    root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
    transmissionHeaderElement := xmldom.createElement(doc, 'TransmissionHeader');
    transmissionHeaderNode := xmldom.appendChild(root_node, xmldom.makeNode(transmissionHeaderElement));
    item_elmt := xmldom.createElement(doc, 'TransmissionDateTime');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, TO_CHAR(SYSDATE,'DD-MM-YYYY'));
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    item_elmt := xmldom.createElement(doc, 'IssuingOrganiszationID');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc,'0258');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    item_elmt := xmldom.createElement(doc, 'Version');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    xmldom.writetobuffer(doc, buffer_problem);
    dbms_output.put_line(buffer_problem);
    xmldom.freeDocument(doc);
    END;
    That's strange because when remove a code part like :
    item_elmt := xmldom.createElement(doc, 'Version');
    item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    I can get the ouput xml :
    <?xml version="1.0"?>
    <InvoiceTransmission>
    <TransmissionHeader>
    <TransmissionDateTime>26-10-2010</TransmissionDateTime>
    <IssuingOrganiszationID>0258</IssuingOrganiszationID>
    </TransmissionHeader>
    </InvoiceTransmission>
    I don't if it's a problem with xmldom or with dbms_output package...
    Please someone can help me ?

    Works fine for me
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.4.0
    SQL> set serveroutput on;
    SQL>
    SQL> DECLARE
      2     doc xmldom.DOMDocument;
      3     main_node xmldom.DOMNode;
      4     root_node xmldom.DOMNode;
      5     root_elmt xmldom.DOMElement;
      6 
      7     transmissionHeaderNode xmldom.DOMNode;
      8     transmissionHeaderElement xmldom.DOMElement;
      9     item_node xmldom.DOMNode;
    10     item_elmt xmldom.DOMElement;
    11     item_text xmldom.DOMText;
    12 
    13     buffer_problem CLOB;
    14 
    15  BEGIN
    16 
    17     doc := xmldom.newDOMDocument;
    18     main_node := xmldom.makeNode(doc);
    19     xmldom.setversion(doc,'1.0');
    20     root_elmt := xmldom.createElement(doc, 'InvoiceTransmission');
    21     root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
    22 
    23     transmissionHeaderElement := xmldom.createElement(doc, 'TransmissionHeader');
    24     transmissionHeaderNode := xmldom.appendChild(root_node, xmldom.makeNode(transmissionHeaderElement));
    25 
    26     item_elmt := xmldom.createElement(doc, 'TransmissionDateTime');
    27     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    28     item_text := xmldom.createTextNode(doc, TO_CHAR(SYSDATE,'DD-MM-YYYY'));
    29     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    30 
    31     item_elmt := xmldom.createElement(doc, 'IssuingOrganiszationID');
    32     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    33     item_text := xmldom.createTextNode(doc,'0258');
    34     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    35 
    36     item_elmt := xmldom.createElement(doc, 'Version');
    37     item_node := xmldom.appendChild(transmissionHeaderNode, xmldom.makeNode(item_elmt));
    38     item_text := xmldom.createTextNode(doc, 'IATA:ISXMLInvoiceV3.0');
    39     item_node := xmldom.appendChild(item_node, xmldom.makeNode(item_text));
    40 
    41     --buffer_problem := 'a';  -- added to initialize clob
    42     xmldom.writetobuffer(doc, buffer_problem);  -- change to writetoclob
    43     dbms_output.put_line(buffer_problem);
    44     xmldom.freeDocument(doc);
    45 
    46  END;
    47  /
    <?xml version="1.0"?>
    <InvoiceTransmission>
      <TransmissionHeader>
        <TransmissionDateTime>26-10-2010</TransmissionDateTime>
        <IssuingOrganiszationID>0258</IssuingOrganiszationID>
        <Version>IATA:ISXMLInvoiceV3.0</Version>
      </TransmissionHeader>
    </InvoiceTransmission>Suggestions:
    - Use dbms_xmldom instead of just xmldom. Oracle changed the name in the 9i days and xmldom is a synonym to dbms_xmldom.
    - Use .writeToClob intead of .writeToBuffer
    - I would suggest trying to upgrade to .4 as you pick up a lot of improvements and bug fixes. Whether what you are encountering is a bug I cannot say but would seem so.
    - See the FAQ under your sign-in name to learn how to use the tag to format the code like I did above.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Upadting XML File in Oracle using xmldom package.

    Are there any possible ways on this situation.When you have parsed a given document and change the values of the nodes that you wanted to change.Now you want the xml file to be updated.One way is the write to file command which takes in the document object as arguement and writes to the file specified as the second arguement.This process recreates the whole xml file and thereby overwriting the unchanged values and the changed values.Now is there anyway in which i can just write to the file ( represented in the memory as nodes whose values i have changed ) the values that have been changed,i.e the tags for which the values have been changed.Any starting ideas would be helpful.Is it possible to do the second way,are there any reasons on why it cannot be done,any feature restriction or is there a way around it.Expecting ideas as soon as possible.
    With Regards
    gopal

    https://forums.oracle.com/forums/message.jspa?messageID=10796815#10796815
    DUPLICATE thread!
    do NOT multi-post

  • To : Oracle Team.. xmldom.writetoclob is too slow

    HI;
    I had Oracle 8.1.6, Used the xmldom package a lot to manipulate and create xml documents ( all sizes ). then I used xmldom.writetoclob which it was giving a GREAT performance.
    I UPGRADED ti Oracle 8.1.7 and xmldom.writetoclob is TOO SLOW now, I have the same settings ( java_pool_size, share_pool, etc)
    What changed from 8.1.6 to 8.1.7 ??
    Why xmldom.writetoclob is so much slower in 8.1.7 ??
    when tranfering a 300 KB document with 8.1.6 it used to take 30 seconds, no with 8.1.7 IT TAKES 2-1/2 minutes ?????
    WHY ? ? ? ? ?
    Tahnks for any information..

    My guess is that you are creating a clob with cached set to false
    e.g
    dbms_lob.createtemporary(v_myclob,false);
    When set to false any time the clob is written to the characters are written to the disk. causing it to be slow.
    try
    dbms_lob.createtemporary(v_myclob,true);
    I had the same problem. This speeds it up significantly
    Rick Laird

  • Xmldom (Array outofboundsExcpetion)

    Hello ALL,
    A program is written to genrate a XML file. In this progrma we are using the xmldom package.
    The progrma starts with a cursor which select the lists of synonyms in a particular schema .the output of this query will be the xml file. (by using XMLDOM)
    lets say I am running the query in some x schema the data retun by the query is 500 records. now If I run the program I am getting the XML file as output.
    But for APPS schema we are having 35000 reocrds. when I run the progrma I am getting the following error.
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.ArrayIndexOutOfBoundsException 3>=3
    ORA-06512: at "APPS.XMLNODECOVER", line 79
    ORA-06512: at "APPS.XMLDOM", line 277
    Do we have any limit on the data? please let me know how to rectify this error.
    Kind Regards,
    Kumar.

    Hello Kumar,
    You are barking up the wrong treee, so to speak.
    You have come across a bug, there is nothing you can do to avoid the runtime exception.
    Maybe it has to do with the many records in APPS schema, maybe the distribution of those records, maybe something else.
    Noone but Oracle can tell.
    But you ignore my questions/comments.
    What exactly is that XMLDOM package, and why is it installed in APPS schema.
    What's your database version.
    XMLDOM (The one I know off) is deprecated in 10g.
    Futhermore, you never even told us what method you are calling, nor what is being done
    at "APPS.XMLDOM", line 277
    and
    at "APPS.XMLNODECOVER", line 79
    So basically you are just asking, what happened here and why?
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.ArrayIndexOutOfBoundsException 3>=3
    ORA-06512: at "APPS.XMLNODECOVER", line 79
    ORA-06512: at "APPS.XMLDOM", line 277This I have answered already. Some Oracle java method tried to access an array element at
    index pos 3 (I.e., the 4th element) of an array having only three elements (0,1,2).
    Not much you can do about it. Nothing we can do about it.
    Regards
    Peter

  • Exception when using  XMLDOM.appendData

    I am trying to create an xml-document containing base64 encoded data by using the xmldom packages on an 8.1.7 DB.
    Everthing works o.k. until I try to append data to an DOMCharacterData Node.This is the point where my function always ends up catching an ORA-29532 java.lang.ClassCastException exception
    I did a lot of research the last few days but did not find any similar cases.
    Does anyone have a solution or can provide hints where to find informations regarding.
    Thank you
    Edmund
    The following function is not exactly the one I am using but it also ends up in an exception!
    FUNCTION fddoc_CreateUploadDoc(pvi_Docname IN VARCHAR2, pvi_Doctype IN VARCHAR2, pvi_Data IN VARCHAR2)
    RETURN xmldom.DOMDocument
    IS
    doc                xmldom.DOMDocument;
    main_node           xmldom.DOMNode;
    root_node           xmldom.DOMNode;
    cmd_node           xmldom.DOMNode;
    document_node          xmldom.DOMNode;
    data_node          xmldom.DOMNode;
    data_cont          xmldom.DOMCharacterData;
    root_elmt           xmldom.DOMElement;
    cmd_elmt          xmldom.DOMElement;
    data_elmt               xmldom.DOMElement;
    BEGIN
         doc := xmldom.newDOMDocument;
         xmldom.setVersion(doc,'1.0');
         -- Root
         main_node := xmldom.makeNode(doc);
         root_elmt := xmldom.createElement(doc, 'ArchiveCommand');
         xmldom.setAttribute(root_elmt, 'version', '1.0');
         root_node := xmldom.appendChild( main_node, xmldom.makeNode(root_elmt));
         -- Command
         cmd_elmt := xmldom.createElement(doc,'ArchiveInsert');
         xmldom.setAttribute(cmd_elmt,'type','HYPARCHIV');
         xmldom.setAttribute(cmd_elmt,'archiveid',1);
         cmd_node := xmldom.appendChild( root_node, xmldom.makeNode(cmd_elmt));
         -- Document
         document_elmt := xmldom.createElement(doc,'Document');
         xmldom.setAttribute(document_elmt,'archiveid',1);
         xmldom.setAttribute(document_elmt, 'id','');
         xmldom.setAttribute(document_elmt, 'name',pvi_Docname);
         xmldom.setAttribute(document_elmt, 'type',pvi_Doctype);
         document_node := xmldom.appendChild(cmd_node, xmldom.makeNode(document_elmt));
         -- Data
         data_elmt := xmldom.createElement(doc,'Data');
         xmldom.setAttribute(data_elmt, 'type',pvi_Doctype);
         data_node := xmldom.appendChild(document_node, xmldom.makeNode(data_elmt));
         data_cont := xmldom.makeCharacterData(data_node);
         xmldom.appendData( data_cont,pvi_Data);/* <- this causes the Exception*/
         RETURN doc;
    END;

    Try something like requestScope or backingBeanScope.

  • XMLDOM not found

    HI,
    I am using oracle 10g. I want to parse an XMLType and retreive the data. I want to use the PL/SQL DOM API for this. I have written a function but its giving me an error the xmldom needs to be declared.
    CREATE OR REPLACE FUNCTION getDOMNode(EntitlementRule IN CLOB) RETURN xmldom.domnode IS
    -- Declare the local variables
    xmldoc CLOB;
    myParser xmlparser.Parser;
    indomdoc xmldom.domdocument;
    outdomdoct xmldom.domdocumenttype;
    outnode xmldom.domnode;
    BEGIN
    -- Get the XML document using the getXML() function defined in the database
    xmldoc := EntitlementRule;
    -- Get the new xml parser instance
    myParser := xmlparser.newParser;
    -- Parse the XML document
    xmlparser.parseClob(myParser, xmldoc);
    -- Get the XML's DOM document
    indomdoc := xmlparser.getDocument(myParser);
    -- Apply stylesheet to DOM document
    outnode := xmldom.makenode(indomdoc);
    -- Return the transformed output
    return(outnode);
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20103, 'Exception occurred in getPLSAccountsHTML
    Function :'||SQLERRM);
    END getDOMNode;
    Errors for FUNCTION GETDOMNODE:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/53 PLS-00201: identifier 'XMLDOM.DOMNODE' must be declared
    I was not logged in as XDB user. i thought this might be the problem. So logged in as sys and tried to grant permissions on XMLDOM packages but its giving me
    grant execute on XMLDOM to public;
    grant execute on XMLDOM to public
    ERROR at line 1:
    ORA-04042: procedure, function, package, or package body does not exist
    This means XMLDOM itself is not found....
    Please Help!!!!!!!!!!!!!!!

    Hi,
    If XML DB is installed can be verified through dba_registry. so when i do a select comp_name "Component" from dba_registry; i am getting
    Component
    Oracle Workspace Manager
    Oracle Database Catalog Views
    Oracle Database Packages and Types
    JServer JAVA Virtual Machine
    Oracle XDK
    This means that XDK is installed right??
    I was checking the link http://www.adp-gmbh.ch/ora/xml_db/install.html.
    If XDK is installed then cause of my problem may be something else...!!!
    Thanks
    Swetha

  • PLSQL XMLDOM is limited to "VARCHAR2"

    Dear Colleagues,
    I just wanted to make you aware that seems
    to me that the PLSQL XML parser version 1.0.2
    be "VARCHAR2" biased. What I would like to know is why is that, and which implications
    would there be (somewhere elses perhaps) if
    one would provide as well a "CLOB" version of the xmldom PLSQL wrappers.
    The problem is in plxmlparser_v1_0_2/lib/xmldocumentcover.sql
    (kkarun, are you there ? )
    there, you can read that the PLSQL wrapper
    of the underlying java classes are all using
    VARCHAR2 and not CLOB as object type.
    I am trying out now to write my own PLSQL
    wrappers for the entire xmldom package so that CLOBs be allowed as underlying data types instead of VARCHAR2 for the createTextNode wrapper.
    I have tested, infact, and java.lang.String
    which is used "for doing the job" has no limit (beyond the amount of total memory given to the JVM and then the maximal 512MB
    memory that at all can be allocated to the heap ) on how big a String can be.
    Therefore, I feel that the problem be simply due to the PLSQL wrappers of the xmldom which
    are set to VARCHAR2 instead of CLOB or BLOB.
    I would appreciate as well your point of view
    and perhaps infos on why it has been done only in that way.
    Seems to me (looking in the PLSQL code) that
    the first author of the plxmlparser was Steve
    Muench, while the latest developer was "KKARUN".
    It would be great if any of them could answer...
    null

    Dear Mr. Muench,
    I am delighted of the attention you have given to my request for help.
    What I am trying to do is simply to generate XML from PLSQL, whereby the text contained in the nodes be greater than 4000 characters.
    For that reason, the underlying table stores the specific node data as a CLOB.
    Therefore, in short, the answer is "case b":
    I am trying to create a text node with more than 4000 characters in it.
    Looking forward your reply
    regards and thanks
    Dr. Toldo
    p.s. I have created a modified version of the
    plsqlparser which has CLOB instead of VARCHAR2 however it still crashes as soon as
    it executes since tries to use the java.lang.String and instead should use the org.oracle.CLOB data type ...
    p.p.s. The project which makes use of the
    above is called "OraPIM" and I presented last
    week at the Open Day of the PIM project http://esubmission.eudra.org/pim/openday/slides/toldo2.ppt
    at the European Agency for evaluation of Medicinal products(http://www.emea.eudra.org/)
    It has been taken very well by the audience and OraPIM is the first "phase2"
    implementation ever done. Soon in production (but for that I need the PLSQL to be able
    to createTextNode with 4k>32k>... data !

  • Where does XMLDOM come from

    Hello All,
    I have recently come across a problem where I could not locate the XMLDOM package for SYS on one of the Oracle 9i installations. I always thaought my installation was standard installation and XMLDOM appears automatically. Obviously I never went through the different bits and pieces to remove a component from being installed.
    Can anybody tell me which component needs to be selected for me to get XMLDOM on the machine
    TIA,

    this is what "javap -c" generates, which is kind of simlar to what you see from your decompiler there:public static void main(java.lang.String[]);
      Code:
       0:   iconst_1
       1:   istore_1
       2:   iconst_0
       3:   istore_2
       4:   iload_1
       5:   iload_2
       6:   idiv
       7:   istore_3
       8:   getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       11:  ldc     #3; //String Phew!
       13:  invokevirtual   #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
       16:  goto    48
       19:  astore_3
       20:  aload_3
       21:  invokevirtual   #6; //Method java/lang/Exception.printStackTrace:()V
       24:  getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       27:  ldc     #3; //String Phew!
       29:  invokevirtual   #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
       32:  goto    48
       35:  astore  4
       37:  getstatic       #2; //Field java/lang/System.out:Ljava/io/PrintStream;
       40:  ldc     #3; //String Phew!
       42:  invokevirtual   #4; //Method java/io/PrintStream.println:(Ljava/lang/String;)V
       45:  aload   4
       47:  athrowThere is also an Exception table, which explains, perhaps, how the "finally" statement is considered:Exception table:
    from   to  target type
       4     8    19   Class java/lang/Exception
       4     8    35   any
      19    24    35   any
      35    37    35   any

  • XMLDOM AIX access permissions

    I've had a considerable amount of difficulty with a PLSQL package that is called from the XDK. Briefly the problem is that the XMLDOM package that gets invoked to create XML files on a UNIX folder is impersonating a user called "oracle" that appears to be different than the UNIX oracle user that has been defined on the box.
    The folder itself has these permissions:
    drwx---rwx 2 nobody 4294967295 64 Mar 14 13:46
    Here is an example of a file written to the system by the XMLDOM:
    -rw----r-- 1 oracle 4294967295 1401 Mar 13 15:58 DealChange_00LPD_247030505.xml
    Here is an example of one I wrote logged in as oracle:
    -rw-rw---- 1 oracle webrpts 0 Mar 14 12:26 kelly.xml
    Note the group id is different, as are the permissions on the file.
    I was hoping that perhaps you could shed some light on the subject of what user is really running the XMLDOM methods when writing to the UNIX filesystem, and if you had an idea as to how we could make sure the two are in sync. Any advice you could provide would be greatly appreciated!!
    Thanks in advance,
    Brian

    Don't pollute the forum with your asterisks.

Maybe you are looking for

  • Mail saving

    I have saved a lot of e-mails that contain images and text. I do this in Raw Mail Source. However if I have deleted the original in my mail box the 'saved' e-mail wont open. Why is this and what canb I do to rectify this in the futrure?

  • Reversal of asset document in different fiscal year

    Hi Friends, An asset was acquired in period 12, 2008 through t-code ABZO. No depreciation was charged in 2008 because the dep start date was 01.01.2009 in the asset master. Then depreciation was charged and posted for the asset in period 1 and 2 in 2

  • What happened to my bookmarks, and how do I retrieve them. Your instructions are not working for me

    I have Yahoo mail, and recently they changed the format. Ever since then I've had nothing but trouble. At one time I lost my Orange Firefox button which contained the print, and bookmarks ops, among others. One day I lost my button, so I un-then re-i

  • Get list of queries in a role

    Hi, Is it possible to get a list of all the queries which are assigned to a specific role? I have a role and i want to generate a list of the queries in it via ABAP. Regards, Karen

  • Prerequisite checking issue during obiee 11g installation in windows server 2012

    HI.. Currently i'm facing problem while installing obiee 11g(11.1.1.7.0) in windows server 2012 and the database we're using is ms sql server 10.3 version. During the prerequisite checks while installation it shows the error "Checking Operating syste