Using xdk:processXSLT

I was going through Performance Tuning webinar at http://www.oracle.com/technology/products/ias/bpel/pdf/bpel-performance-webinar.pdf
One of the tip is to use xdk instead of ora for transformation. I have downloaded xdk but i am not quite sure how to use it with bpel. What are the variables/parameters we need to set before we can use it with Developer version as well as production version.
I believe xdk is bundled with oracle AS so does that mean we dont have to configure anything to use it on oracle AS?

Ravi,
The namespace you require for xdk is:
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
The namespaces can be found in Part V Reference Information Section D XPath Extension Functions in the Oracle BPEL Process Manager Developer's Guide
10g (10.1.3.1.0)
Regard Dave

Similar Messages

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

  • How to use ora:processXSLT to create HTML with BR tags included?

    I am using a .xsl to create HTML for use as part of a notification process. The issue is that if in the .xsl I include the
    tag, when the transform engine runs to make the HTML it creates <br> tags with out the maching </br> tags. (in doing some reading this seems to be a feature of most XSLT engines) But the result is invalid XML, so when I attempt to assign the output to a variable the process faults and I get the following error:
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:processXSLT("XML_PURCHASE_ORDER_to_HTML.xsl", bpws:getVariableData("inputVariable", "payload", "/ns1:XML_PURCHASE_ORDER"))", the reason is The XML data is invalid.
    The XML data is invalid; the reason is "Error on line 100 of document : The element type "br" must be terminated by the matching end-tag "
    ". Nested exception: The element type "br" must be terminated by the matching end-tag "
    Message was edited by:
    mlutze
    Message was edited by:
    mlutze
    Message was edited by:
    mlutze

    You can probably set the output format in the stylesheet, like:
    <xsl:output method="txt" indent="no" omit-xml-declaration="yes" />
    if you really don't want to use xhtml. The result might have to be wraped in a cdata block in the bpel flow?
    cheers
    /Stig

  • Using XDK to Parse Schema

    I'm having problems parsing an XSD file with xmlparserv2, and I suspect it's something simple I'm missing ...
    Java Code:
    DOMParser dp = new DOMParser();
    dp.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    dp.setPreserveWhitespace (true);
    dp.setErrorStream(System.err);
    dp.parse(stream);
    XMLDocument doc = dp.getDocument();
    // works
    Node n = doc.selectSingleNode("//*[@name='Transaction-850']", doc);
    // ERR: oracle.xml.xpath.XPathException: Namespace prefix 'xsd' used but not declared
    n = doc.selectSingleNode("//xsd:complexType", doc); //works
    XSD File:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns="http://www.edifecs.com/xdata/200" targetNamespace="http://www.edifecs.com/xdata/200" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" elementFormDefault="qualified">
    <xsd:element name="Transaction-850" type="Transaction-850"/>
    <xsd:complexType name="Transaction-850">
    <xsd:sequence>
    <xsd:element name="Internal-Properties" type="Internal-Properties" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    I'm trying to integrate an XData XSD file into a mapping tool we have. The concept is to evaluate the XSD definition and generate a map.
    I

    It looks like the XDK is not using the document to resolve namespaces in this case. When I use the following NSResolver, the XPath expressions return nodes:
    class NSResolverImpl implements NSResolver{
    public String resolveNamespacePrefix(String prefix) {
    String ns = null;
    if(prefix.equals("xsd")) {
    ns = "http://www.w3.org/2001/XMLSchema";
    return ns;
    It'd be nice to use the document itself to resolve namespaces defined therein as per Oracle examples. Is there something about the XData file that is lacking or is this an unsupported use case?

  • Linkage error when using XDK 9i on Solaris

    I have XDK 9i installed on my host and I'm trying to use xml parser class.
    ================
    SunOS btXXXXXX 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise-10000
    I use Forte6 Sun workshop
    I add $ORACLE_HOME$/xdk/include directory path
    I add user lib :core9 xml9 xmlg9 xsd9 unls9 nls9
    I select standard libraries : socket nsl
    the source code is quite basic:
    // main.cc
    #include "oraxml.hpp"
    int main()
    XMLParser parser;
    parser.xmlterm();
    return 0;
    BUT when linking I get this kind of errors:
    ild: (undefined symbol) SltsPrUnlock -- referenced in the text segment of
    /u01/app/oracle/product/9201/lib/libnls9.a(lmsagb.o)
    undefined symbols are this :
    - sltsini
    - sltsmxd
    - lxujmd
    - sltsmnr
    - slmaacb
    - SltsPrUnLock
    and all are referenced in libnls9.a
    Can anybody help us.
    Thanks,
    CM

    I have XDK 9i installed on my host and I'm trying to use xml parser class.
    ================
    SunOS btXXXXXX 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-Enterprise-10000
    I use Forte6 Sun workshop
    I add $ORACLE_HOME$/xdk/include directory path
    I add user lib :core9 xml9 xmlg9 xsd9 unls9 nls9
    I select standard libraries : socket nsl
    the source code is quite basic:
    // main.cc
    #include "oraxml.hpp"
    int main()
    XMLParser parser;
    parser.xmlterm();
    return 0;
    BUT when linking I get this kind of errors:
    ild: (undefined symbol) SltsPrUnlock -- referenced in the text segment of
    /u01/app/oracle/product/9201/lib/libnls9.a(lmsagb.o)
    undefined symbols are this :
    - sltsini
    - sltsmxd
    - lxujmd
    - sltsmnr
    - slmaacb
    - SltsPrUnLock
    and all are referenced in libnls9.a
    Can anybody help us.
    Thanks,
    CM

  • Is it possible to use  XDK java + plsql 9i  for an 8i DB ?

    Hello,
    I would like to know whether there are some problems to use
    the XDK for java + pl/sql 9.2.0.1 with an oracle DB 8.1.7.3 ?
    If there are some problems, please let me know what kind of problems I will meet.
    Regards
    FA

    There is no problem. I use it on 8.1.6

  • How to use xdk for java

    Hi,
    I have downloaded the xdk for java and i have unzipped them into my c:\xdk-java folder.
    I have oracle 8.1.7 database and i want to use this xdk for java to generate xml files.
    How to start with this and how to use this tool to generate xml files from my database.
    Anyone can give me the steps for using this and generating xml files.
    Any help will be appreciated..

    Hi,
    You can start from reading the XSU document and try the demos come with the package. The document is at:
    http://otn.oracle.com/docs/tech/xml/xdk_java/doc_library/Production9i/doc/java/xsu/xsu_userguide.html

  • How to parse XSD using XDK?

    Hi all,
    I'd appreciate to know how to parse a XML schema file. I realize that Oracle provides API as defined in:
    http://www.oracle.com/technology/tech/xml/xdk/doc/production/java/doc/java/javadoc/oracle/xml/parser/schema/XSDBuilder.html
    Are there any place I can get sample code or tutorial?
    Thanks!
    jason

    Hi Jason!
    I already used Oracle XML parser for parsing XML schema files, but I wouldn't recommend it!
    The classloader loads Oracle XDK classes first, so you can't use other XDK version then Application Server own XDK version.
    (This is a not yet solved classloader issue in application server.)
    I reallized, that Oracle sometimes change APIs in XDK, so sometimes it is no longer compatible with the old version API.
    If you develope a code that works in your Jdeveloper, perhaps it won't work on the application server and you won't have the option to use the appropriate XDK version.
    I recomend to use Xerces or other XML parser to parse XML schema files!
    http://xerces.apache.org/
    This way you can use any version of the XML parser in your application.

  • Using XDK with Motif

    I have a importer class that uses the XDK. I also have another class that needs to use the importer class and X11/Motif. However X11/Motif defines "String" and "BITS32" which directly conflicts XDK's "String" and "BITS32".
    Is there a way in C++ to use the importer class within the file that uses Motif? I am currently using an intermediary convenience functions file that hides the XDK from the Motif file but this seems clumsy.

    Yes, "String" can be found in oraxml.hpp in 8i, 9i, and 10g.
    "BITS32" can be found in oratypes.h in 8i and 9i. I believe is has been removed in 10g.
    "String" is "marked" for removal. (there's a comment saying it was added by mistake in the 9i release but it still exists in the 10g release.)

  • Using XDKs XML Schema Parser

    I want to parse an XML schema(XSD file) and extract the types from it, ComplexType etc. Does anyone know to even begin this. Ive managed to parse and any XML file sucessfully returning all element types,names and values using the DOM parser but cant seem to find suitable methods in the oracle.xml.parser.schema library. I have started along these lines
    XSDBuilder bob =new XSDBuilder();
    XMLSchema sch = (XMLSchema)bob.build(url);
    where URL is string referencing the xsd file. But after that all I can get is the targetnamespace using
    String display = sch.getSchemaTargetNS();
    Any help greatly appreciated.

    Srinivas,
    Thanks for the reply. But that is not my requirement.Suppose I have a schema representing the following xml
    <Student>
    <Name>ABC</Name>
    <Class>XYZ</Class>
    <Course>PQR</Course>
    </Student>
    When I parse the XML Schema representing the above XML, it should give me a Java object that represents this XML structure. (Similar to Document object that is obtained when we an XML is parsed)
    Hope this is more clear.

  • How to obtain the schema contents using XDK

    I have a requirement to access the entire schema - all elements, all simple types, complex types, annotations, etc. with the schema processor of the XDK in Java. I am wondering how to do this. All I get are the top level elements. I am not too sure how to browse each such entity. I cannot get things like hasChildren() and getChildren() (like in DOM tree nodes) in XSDNode or its implementations (XSDElement, XSDComplexType, etc). Could anyone help please?

    XMLSchema schema;
    Hashtable hashtable=schema.getXMLSchemaNodeTable();
    http://otn.oracle.com/tech/xml/xdk/doc/beta/doc/java/javadoc/oracle/xml/parser/schema/XMLSchemaNode.html

  • XML validation using XDK DOM/SAX Parser

    Hello,
    I am trying to validate xml against xsd using SAX/DOM parser, both the files are stored as CLOB column in the database. I have the requirement to report all the validation errors and based on some helpful advice/code from the earlier posts in this forum, I have used the following code to validate and report the errors.
    The code works fine but for large files it never goes beyond a certain number of errors i.e. getNumMessages() (XMLParseException) never returns value greater than 100 and thus limits the output of the validation errors. Any pointers to suggest change in code or an alternative will be extremely helpful.
    Datebase Version : Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED as package <package name>;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.sql.SQLException;
    import oracle.sql.CLOB;
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    public class XMLSchemaVal
    public static String validate(CLOB xmlDoc, CLOB xsdDoc)
    throws Exception
    //Build Schema Object
    XSDBuilder builder = new XSDBuilder();
    Reader xsdInUnicodeFormat = xsdDoc.getCharacterStream();
    XMLSchema schemadoc = (XMLSchema)builder.build(xsdInUnicodeFormat, null);
    //Build XML Object
    Reader xmlInUnicodeFormat = xmlDoc.getCharacterStream();
    // Genereate the SAX
    SAXParser saxparser_doc = new SAXParser();
    // Set Schema Object for Validation
    saxparser_doc.setXMLSchema(schemadoc);
    saxparser_doc.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    saxparser_doc.setPreserveWhitespace (true);
    String returnValue;
    try {
    saxparser_doc.parse (xmlInUnicodeFormat);
    returnValue = "The input XML parsed without errors.\n";
    catch (XMLParseException se) {
    returnValue = "Parser Exception: ";
    for (int i=0 ; i < se.getNumMessages(); i++)
    returnValue += "<LN: " + se.getLineNumber(i) + ">: " + se.getMessage(i);
    //returnValue = "Parser Exception: " + se.getNumMessages();
    catch (Exception e) {
    returnValue = "NonParserException: " + e.getMessage();
    return returnValue;
    Function to call the above utility from PL/SQL
    CREATE OR REPLACE FUNCTION F_XMLSCHEMAVALIDATION (P_XML IN clob ,P_XSD IN clob) RETURN VARCHAR2 IS
    LANGUAGE JAVA NAME XMLSchemaVal.validate(oracle.sql.CLOB,oracle.sql.CLOB) return java.lang.String';
    Thanks.

    I have the same question. I have an external DTD. I wish to parse an xml file using XMLParser.xmlparse. If I first call XMLParser.xmlparseDTD and then call xmlparse with the XML_FLAG_VALIDATE will the xml automatically be validated against the previously parsed DTD? There is no DOCTYPE declaration in the xml file.
    The demo code on OTN for Java is great but has no relation to the code you would use in C++ (no set functions in C++).

  • XML Validation using XDK SAX/DOM Parser

    Hello,
    I am trying to validate xml against xsd using SAX/DOM parser, both the files are stored as CLOB column in the database. I have the requirement to report all the validation errors and based on some helpful advice/code from the earlier posts in this forum, I have used the following code to validate and report the errors.
    The code works fine but for large files it never goes beyond a certain number of errors i.e. getNumMessages() (XMLParseException) never returns value greater than 100 and thus limits the output of the validation errors. Any pointers to suggest change in code or an alternative will be extremely helpful.
    Datebase Version : Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED <> as package <package name>;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.sql.SQLException;
    import oracle.sql.CLOB;
    import oracle.xml.parser.schema.*;
    import oracle.xml.parser.v2.*;
    import org.w3c.dom.*;
    public class XMLSchemaVal
    public static String validate(CLOB xmlDoc, CLOB xsdDoc)
    throws Exception
    //Build Schema Object
    XSDBuilder builder = new XSDBuilder();
    Reader xsdInUnicodeFormat = xsdDoc.getCharacterStream();
    XMLSchema schemadoc = (XMLSchema)builder.build(xsdInUnicodeFormat, null);
    //Build XML Object
    Reader xmlInUnicodeFormat = xmlDoc.getCharacterStream();
    // Genereate the SAX
    SAXParser saxparser_doc = new SAXParser();
    // Set Schema Object for Validation
    saxparser_doc.setXMLSchema(schemadoc);
    saxparser_doc.setValidationMode(XMLParser.SCHEMA_VALIDATION);
    saxparser_doc.setPreserveWhitespace (true);
    String returnValue;
    try {
    saxparser_doc.parse (xmlInUnicodeFormat);
    returnValue = "The input XML parsed without errors.\n";
    catch (XMLParseException se) {
    returnValue = "Parser Exception: ";
    for (int i=0 ; i < se.getNumMessages(); i++)
    returnValue += "<LN: " + se.getLineNumber(i) + ">: " + se.getMessage(i);
    //returnValue = "Parser Exception: " + se.getNumMessages();
    catch (Exception e) {
    returnValue = "NonParserException: " + e.getMessage();
    return returnValue;
    Function to call the above utility from PL/SQL
    CREATE OR REPLACE FUNCTION F_XMLSCHEMAVALIDATION (P_XML IN clob ,P_XSD IN clob) RETURN VARCHAR2 IS
    LANGUAGE JAVA NAME XMLSchemaVal.validate(oracle.sql.CLOB,oracle.sql.CLOB) return java.lang.String';
    Thanks.

    Got the answer !!!
    NetBeans it self support generation of dtd file based on XML file.
    Open XML file and right click on the code block. Select option to generate dtd file.
    This is the drtd file it has generated..
    <?xml version='1.0' encoding='UTF-8'?>
    <!--- Put your DTDDoc comment here. -->
    <!ELEMENT book (person)*>
    <!--- Put your DTDDoc comment here. -->
    <!ELEMENT person (age|last|first)*>
    <!--- Put your DTDDoc comment here. -->
    <!ELEMENT first (#PCDATA)>
    <!--- Put your DTDDoc comment here. -->
    <!ELEMENT last (#PCDATA)>
    <!--- Put your DTDDoc comment here. -->
    <!ELEMENT age (#PCDATA)>

  • Funny Error When Using XDK for Java2???

    Hi,
    Has anyone ancounter this error before? Can someone please tell me what does it means? Thanks!
    A nonfatal internal JIT (3.10.100(x)) error 'Structured Exception(c0000005)' has occurred in : 'oracle/xml/parser/v2/FilterExpr.getValue (Loracle/xml/parser/v2/XSLTContext;)
    Loracle/xml/parser/v2/XSLExprValue;': Interpreting method.

    hi steven,
    thanks! but i am using jdk 1.3. are you using the same compiler as me?
    cheers...

  • XPATH using XDK Samples provided by oracle.

    Hi,
    I have compiled the demo/cpp/new program samples of Oracle 10.2.0.3 and executing XvmXPathSample which makes use of 'processWithBinXPath' however I am getting correct results only for NODES ... and not text.
    Example .
    In pantry.xml -
    "/pantry/shelf/supplies/*" - works fine and provides me with a list of all the nodes
    however
    "/pantry/shelf/supplies/paper_good[1]/text()" - does not provide me a string output ... it still detects a node output on the XPATHNodeObject.
    Could someone help me out on this ?

    hi Guys please help, I am still stuck I have to learn Rule Author in order to work on Business Rules, I am not able to locate car-objs.jar file no where in SOA suite or Oracle 10 g. I am not able to follow the sample provided by Oracle "http://download.oracle.com/docs/cd/B25221_04/web.1013/b15986/guistart.htm".
    If I wont get help form forum then where to get help from??
    Please tell me where to find car-objs.jar file or email me [email protected]
    thanks
    Yatan

Maybe you are looking for