Xdk PL/SQL

Does anyone know oof any tutorials or info on using the XDK for PL/SQL package. I need to send data from an oracle program to another program as xml data

I believe you'll find my book of great value to you. Chapter 5 in "Building Oracle XML Applications" is dedicated to exploring all kinds of XML Processing using PL/SQL.
Steve Muench
Development Lead, Oracle XSQL Pages Framework
Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
Author, Building Oracle XML Applications
null

Similar Messages

  • Installing xdk PL/SQL 10g in 9.2.0.X database

    I don't find documentation for installing xdk PL/SQL 10g in 9.2.0.X database. Do you have some ???

    Try changing the order in which the bind-parameters are used, putting all dates last, or first, I can't remember which one worked for us, something like this:
    ...("update ss_campaign set campaign_name = ?, updated_by = ?, organization_code = ? where campaign_id = ?, start_date = ?, end_date = ?, updated_on = ?");
    and then changing the index for the setXXX accordingly. What we saw was that one of the varchar columns got corrupted under some circumstances if we didn't do this. Again, I can't recall if we moved the dates to the beginning or to the end, but one of them did the trick. We could reliably reproduce this in our application but not with a small standalone java app.

  • XDK - PL/SQL PARSER LIMITATION

    The package creates XML document (splitted document of size bigger than 3MB) using pl/sql xml sql utility and failing while trying to inserts the same into the table with the Aurora error or java.lang.outofmemeory. Please kindly post ,if anybody knows a solution.
    Parameters set:
    Java_pool_size = 400MB java_soft_sessionspace_limit = 250MB shared_pool_size = 300MB
    java_max_sessionspace_size = 2GB sort_area_size = 512000 bytes
    ORACLE DBA
    Fujitsu Computer products of America
    C.Dhanaraj
    408-894-3858

    Hi Steven:
    Yep...I just checked our install and there are no java classes in user_objects. We had the init*.ora file shared_pool_size set too low (as indicated under $ORACLE_HOME/javavm/doc/readme.txt).
    So I'll get our DBA to try it again.
    Thanks,
    Derek
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    This likely means that the database JavaVM is not properly installed in your Oracle8i database. You need to run the initjvm.sql script as detailed in the JServer documentation before any 'loadjava'
    commands will work.<HR></BLOCKQUOTE>
    null

  • Passing Parameter to XSL document (in XDK forPL/SQL)

    Here i' trying to pass parameters to my XSL document.But the value is not getting populated in the final document, can anyone help me on this.,.?
    // This is how i 'm passing parameter value to the XSL
    xslprocessor.setParam (styles,'p_batch_name','batch1');
    // Applyting stylesheet(xsl) with XMLdoc and storing it in a DOM node
    docn := xmldom.makeNode(xslprocessor.processXSL(engine,styles,doc));
    My XSL is like this
    <INSERT xsl:version="1.0" xmlns:xsl ="http://www.w3.org/1999/XSL/Transform">
    <xsl:param name="p_batch_name"/>
    <ROWSET table="abc">
    <xsl:for-each select="rowset/row">
    <ROW>
    <batch_name>"{$p_batch_name}"</batch_name>
    </ROW>
    <xsl:for-each>
    </ROWSET>
    <INSERT>
    But in the final document, the value (batch1) is not getting
    populated. it is coming as null .
    Can anyone help me ...
    null

    This does not work because of the following two things:
    [list=1]
    [*]The value of a parameter is interpreted as an XPath expression. Passing a value of batch1 will be interpreted as the XPath expression batch1 that will try to match any <batch1> child elements of the root of the source document. You need to include the value in quotes to have it be interpreted as a literal string:xslprocessor.setParam (styles,'p_batch_name','"batch1"');[*] The setParam method can only set the value of "top-level" stylesheet parameters. In your stylesheet, you've illegally used <xsl:param> inside a template. You need to switch from the "simple form" of a stylesheet to the "normal form" of the stylesheet to use a top-level parameter. So instead of:<INSERT>
    </INSERT>
    [code]
    you need instead:
    [code]
    <xsl:stylesheet>
    <xsl:template match="/">
    <INSERT>
    </INSERT>
    </xsl:insert>
    </xsl:stylesheet>[list]
    null

  • Inst. XDK on Oracle 8.05, just to transform sql-query in xml

    hi,
    id like to install xdk to use xsu to transform a sql query in xml.
    (i didnt find a way to download xsu without xdk)
    i4ve oracle 8.0.5 but i only find 9i-xdk-(pl/sql) - is this correct?
    what do i have to notice when i install
    this package with my orace-ver?
    thanks :o)

    XDK 9.x is not only for Oracle9i Database. You can download the
    9.0.2B XDK for Java and use XSU [or xsu12.jar(xsu11.jar)].

  • Question on Support for XML in Oracle 9i and XDK 9.0.1

    Hi All,
    I just went through the Oracle 9i's features for XML. I have been working with Oracle's XDK too. I noticed that there are some new packages in Oracle 9i like SYS_XMLGEN and DBMS_XMLGEN that produce a XML file when presented a query to it. This feature is there in the XDK (XML SQL Utility) too. So, my question is as follows:
    1. Are there any differences in the XML File produced by XDK and these database packages?
    2. What are the scenerios when I should go for these packages and when should I go for the XSQL Utility.
    Cos I found out that both are doing effectively the same things. Is there any difference between them? Please explain the second question.
    Thanks in advance,
    Rajat

    The sys_xmlagg and sys_xmlgen are native implementations of functionality tied into the database code line. They replicate some of the functionality that was previously provided in a 'plugin' form by the XDK. DBMS_XMLGEN is a PLSQL Package that also provides access to native implimentations of some of this functionalitu. You should find that as a result of being native implimentation they are much more performant.
    SYS_XMLGEN and SYS_XMLAGG allow XML to be generated directly from a SQL Query. DBMS_XMLGEN is designed for use in procedural processing and provides a finer grain of control over the generated output.
    There are still some features, such as DTD and Schema generation that are not (yet) available with the native implementation, and for this reason, and backwards compatability the XDK functionality is still available
    As a rules of thumb, if you can use the native implimentations do so, as performance should be much better.
    Mark D. Drake
    Senior Product Manager,
    XML Infrastructure,
    Server Technology

  • XDK10g supports XML parsing for PL/SQL?

    Hi,
    I have a couple of questions here:
    1) Does XDK10g support XML parsing for PL/SQL? (More specifically, I need to use xmlDom and xmlParser)
    2) Does Oracle 10g come installed with XDK 10g? If not, does it even need to install XDK 10g to use xmlDom and xmlParser?
    Thank you all and have a nice day.
    Kelvin
    Edited by: user9518458 on Oct 30, 2008 1:31 AM

    Well, if you are talking 10.2, then
    "The (Java-based) Oracle XDK PL/SQL packages XMLDOM, XMLPARSER, and XSL_PROCESSOR have been deprecated in favor of the (C-based) Oracle XML DB packages DBMS_XMLDOM, DBMS_XMLPARSER, and DBMX_XSLPROCESSOR. Synonyms have been provided to smooth the migration of legacy applications" (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/whatsnew.htm#CHDCAICE)
    Whether that is a default install option or one that requires selecting I can't say, but it is available without needing to additionally use the XDK. So odds are you can do whatever you need in PL/SQL using those DBMS_ packages (or XMLTYPE based variables if the need arises).

  • Construcion of XML based project using XDK 9i and 8i database

    Hi
    i'm still a new graduate and i'm interested in working on XML technologies using Oracle tools.
    I've made some applications using XML but i used ASP.
    So how i can construct an application using
    Oracle 8i database 8.0.7 and XDK 9i "XDK pl/sql"
    I need the steps to do so.
    Thanx for helping me
    Yours
    Tariq Al-Masri

    XDK pl/sql is suggested to be used with Oralce 8.1.6 and later versions as for 8.0.7 you will have problems with java loading.
    You may use XDK for Java.

  • XML parsing - Thanks Andrew Clarke,info you wanted to answer

    Andrew ,
    First of all thanks for responding.It was indeed very helpful of you.I have put your questions here just and have answered it
    " This is a tricky thing to do. Parsing and processing a document in the database is relatively straightforward. Allowing the user to make changes to it is slightly stickier.
    Before we can be of any help you need to give us some more info:
    Which version of the database are you using? (9i has lots more functionality)
    How are you intending to display the information to the user?
    Is your user going to be editing the XML tags or just the content?
    Are you using XML SCHEMA or DTD?
    Do you know there's an XML forum? (Check the jump to any forum drop down)
    1)I am using database :- info
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    I hope this information is enough.Another thing i wanted to know is how to check for oracle jvm intallation.Because it is needed for oracle xdk installation.
    2) I intend to parse the xml file stored as a blob object in the backend and display the information in the front end ( Oracle forms6i) interface.
    3) The user sees only the content and can edit only the content ,issuing save command writes back this data into the xml file and saves it back to the database as the blob object.
    Yes i know XML discussion forum,but please can you guide me a little in my direction ,i thought it would be more useful to write in this forum (deals with pl/sql).Atleast a lead is enough.
    Can you please suggest some help for the questions that i have:-
    1)I don't know whether i have oracle JVM installed.The oracle xdk kit install notes say so.So how to check it and get it.Help notes say that a xdk kit for 9i version will also work with 8i version( backward compatibility ).Can you offer some advice on this whether this is possible( The xdkload utility says so.)
    2)Is it possible to,after having build a tree thro' parsing process and to go through it accessing the nodes and the values .Also is it possible to write to this tree at the particular point and have the tree saved back to xml document.This will save me a lot of job.Please feel free to help me or atleast suggest some lead points if you know if this can be done.A hyper link ,if you know,which details these steps are also enough.
    Regarding the XML schema or DTD ,please give me some more time.
    One last question(if i am not bugging you) when the xdkload utility loads the xdk pl/sql package with -dbver to 8i ,will it support all the command in it to be executed on the 8i backend.
    (http://technet.oracle.com/support/tech/xml/xdk_plsql/ softwares section)
    Andrew ,i will feel really grateful if you can help me with these issues.Anyway Thanks for taking so much efforts in giving me some tips.
    Regards
    gopal

    I hope this information is enough.Another thing i wanted to know is how to check for oracle jvm intallation.Because it is needed for oracle xdk installation.The banner that comes up when you log on shows you that you are running:
    JServer Release 8.1.7.0.0 - Production so that means Java is enabled. A good start.
    Help notes say that a xdk kit for 9i version will also work with 8i version( backward compatibility ).We are running with XDK 9i in 8173 databases without any major issues. n fact I recommend it, as there are a couple of nasty bugs in the 8i XDK that render it virtually unusable. However there is a whole bunch of functionality in the 9i XDK that relies on the XML datatype that was introduced in the 9i database.
    2) I intend to parse the xml file stored as a blob object in the backend and display the information in the front end ( Oracle forms6i) interface.
    3) The user sees only the content and can edit only the content ,issuing save command writes back this data into the xml file and saves it back to the database as the blob object.Why not store the data in tables? It is much, much easier to build Forms applications using tables than to build them using XML documents. Disassembling XML documents into tables is relatively straightforward and so is re-constituting them if you ever need to show someone the XML. In Oracle 9i r2 this is what Oracle does by default with the XML datatype.
    2)Is it possible to,after having build a tree thro' parsing process and to go through it accessing the nodes and the values .You build the tree using xmlparser.parseClob() followed by xmlparser.getDocument().
    You walk the DOM using the methods in the XMLDom package to navigate to any given node. Then you use xmldom.getNodeValue(} to retrieve the data in that node. This only works for nodes of type xmldom.text_node, so you'll need to test for that. It also fails if the node has a null value. Finally bear it mind that according to DOM principles the content of a node is a child[i] of that node.
    Given this fragment:
    <employee>
        <empno>1234</empno>
    </employee>I want to get the employee number. So:[list]
    [*]I generate a list of empno nodes using node_list := xmldom.getElementsByTagName(x_doc, 'empno');[*]I navigate to the node I want using el := xmldom.item(node_list, 1)};[*]I then navigate to the text using text_node := xmldom.getFirstChild(el);[*]I navigate to the node I want using emp_no := xmldom.getNodeValue(text_node};[list]
    There may be whizzier ways of doing it but this way is clear and it works.
    Although the documentation that comes with the XDK isn't that bad you will find some additional info in the onlineshttp://technet.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96621/adx20ppl.htm#1656. have a look at the domsample.sql script. It's actually quite helpful.
    Also is it possible to write to this tree at the particular point and have the tree saved back to xml document.I haven't done this myself, but I would have thought you would write stuff using the method outlined above but using xmldom.setNodeValue. There are various WriteTo... in the xmldom package.
    Now for the bad news. None of this works with BLOBs. You have to use CLOBs, VARCHAR2s or external OS files. Sorry.
    Good luck, APC

  • Java Error Message When Using an instance of OracleXMLSave

    Hi,
    I am trying to use the XDK XML-SQL utility to insert data from an xml file into a table.
    I am using eclipse and imported the following jar files into the java build path from jdeveloper
    xml.jar
    xmlmesg.jar
    xsu12.jar
    When I try to run my test program I get the following error message:
    java.lang.NoClassDefFoundError: oracle/xdb/XMLType
    at this line in the program:
    OracleXMLSave sav = new OracleXMLSave(conn, "EDG_EPC.EMP_PRACTICE");
    What could I be doing wrong? Do I need to import more libraries. If so where are they located in jdev? Additionally, does the table need to be of XMLType??? I thought the XDK would work for inserting into regular tables.
    Please help!!!!!
    Thanks

    java.lang.NoClassDefFoundError: oracle/xdb/XMLType
    Add <Oracle10g>/RDBMS/jlib/xdb.jar to Classpath.

  • Database Vs

    Sorry my english !!
    I´m a Brazilian developer.
    I need to use de XMLDOM DBMS in a package that I star to write. The DB version is 8i. Is it possible ?
    Thanks to all.
    Leo

    Using 8i, you need to load the XDK PL/SQL package to the Oracle JServer. The packages are xmlparser, xmldom and xslprocessor.

  • XDK for PL/SQL vs XDK for Java

    Hi ,
    I am trying to find what version of XDK and whether it is for java or PL/SQL. I am confused after what I saw in our environment. Please clarify..
    When I run the getReleaseVersion() and do a
    select xmlversion from dual,
    I get
    Oracle XDK Java 9.0.1.1.0A Production
    Does this mean we have XDK for Java? not for PL/SQL?
    I also see PL/SQL packages for XMLDOM,XMLGEN.XMLPARSER,XSLPROCESSOR,DBMS_XMLQUERY,DBMS_XMLSAVE.
    Does this mean I have/not XDK for PL/SQL??
    Please clarify.

    XDK for PL/SQL is built based on XDK for Java. So that's why you got the result. It should also reflect the version you use.

  • XDK for PL/SQL sample errors

    Hi,
    I'm trying to run the domsample file and am getting the following errors. Can anyone tell me why? This is an Oracle 8i db Release 8.1.7.0.0
    SQL> execute domsample('C:\XML\xdk\demo\plsql\parser', 'family.xml', 'errors.txt');
    BEGIN domsample('C:\XML\xdk\demo\plsql\parser', 'family.xml', 'errors.txt'); END;
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception:
    java.lang.SecurityException: relative pathnames are not
    allowed(C:\XML\xdk\demo\plsql\parser)
    ORA-06512: at "SYS.XMLPARSERCOVER", line 0
    ORA-06512: at "SYS.XMLPARSER", line 154
    ORA-06512: at "NSWEBDEVE.DOMSAMPLE", line 77
    ORA-06512: at line 1
    Thanks,
    Natalie

    Sounds like the same problem described in a number of posts
    recently.
    Re: Startup/Shutdown 9iAS on windows
    http://forums.oracle.com/forums/message.jsp?id=550104
    The problem is caused by unresolved classes in the XSU package
    from the latest Beta, I hope someone from Oracle can take a look
    at this.
    Good luck!
    Ola

  • XSLT document() function in PL/SQL XDK

    I'm using the PL/SQL XDK (9.2.0.2.0) to do XSLT transformations but having
    no success using the XSLT document() function.
    I just get the error
    ORA-20100: Error occurred while processing: XSL-1021: (Error) Error parsing
    external document: 'wrongmachine.mycompany.com'.
    Can the document function access an external xml file using http from pl/sql?
    eg. http://amachine.mycompany.com/xmldocs/myxml.xml
    I've tried setting the ref parameter of the newStylesheet function, assuming
    this sets up the base uri for the stylesheet
    xslss := xslProcessor.newStylesheet
    (xmldoc => xsl_doc,
    ref => 'http://amachine.mycompany.com/xmldocs');
    I've also used the setBaseDir on both the DOMDocument and the stylesheet
    xmlparser.setBaseDir(p => xsl_parser,
    dir => 'http://amachine.mycompany.com/xmldocs');
    I've tested the XSL stylesheet in Saxon and it works fine.
    Other XSL transformations also work fine using the Oracle XDK but none that use
    document()
    'wrongmachine.mycompany.com' is not even the machine the code is executing on!?
    Is this set up in an installation script?
    Any ideas/examples on how document() can be used in the pl/sql XDK?
    Thanks
    John Holder

    BTW: following this link
    xsl:include within XSL stylesheet stored in XMLType column
    i've encountered that this theme has been asked but none from Oracle staff has answered on it yet ;(((((((

  • Is the IMPORTNODE procedure implemented in the PL/SQL 9.2.0.4.0 XDK?  Does it work?

    I need to "merge" or "combine" two XML documents using the PL/SQL APIs. Are the importNode or adoptNode procedures
    exposed in the PL/SQL 9.2.0.4.0 XDK? Before upgrading my XDK from 9.0.1.2.0 to 9.2.0.4.0, I want to know if Bug#1923262
    has been fixed.
    Thanks!

    I notice that if I accept license, select a kit to download, come back to this page, go forward to the download page, the accept radio button is selected and it errs with "sorry, you must accept the license agreement to download" or something if you try to download. If I click on the radio button to not accept the license and the accept it again, it works. Sounds like a radio button initialization problem to me, combined with some strange SSO issue.
    So I speculate this is another aspect of the ISP caching or whatever is going on, and perhaps needs the same a=b solution to reload, plus an explicit logout/login.
    I also don't see a windows version.

Maybe you are looking for