XDK getXMLDOM() problem

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import oracle.xml.sql.query.OracleXMLQuery;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
I have the following code
OracleXMLQuery qry = null;
     try{
     qry = new OracleXMLQuery(conn,query);          
     }catch(Exception e){
          System.out.println("XML problem = " + e);
// structure the generated XML document
//qry.setMaxRows(2); // set the maximum number of rows to be returned
qry.setRowsetTag("EMPINFO"); // set the root document tag
qry.setRowTag("DBROW"); // sets the row separator tag
// get the XML document in string format
String xmlString;
     try {
          //xmlString = qry.getXMLString();
          Document xmlDoc = qry.getXMLDOM();
     //System.out.println(" OUTPUT IS:\n"+xmlString);
     //NodeList nodelist = xmlDoc.getElementsByTagName("DBROW");
     NodeList nodelist = xmlDoc.getChildNodes();
     System.out.println("The number of child nodes = " + nodelist.getLength());
I know the results will have several records(DBROW) but for some reason I only get nodelist length of 1. Am I missing something? I know that the XML is generated but I don' t know if the xmlDoc is generated correctly.
Any help would be greatly appreciated.
Message was edited by:
user539133

NodeList nodelist = xmlDoc.getChildNodes();
returns the root document tag EMPINFO, which is only 1 in the XML document.

Similar Messages

  • XDK upgrade problems (9.0.4 to 10.1.0.2)

    We are currently on version 9.0.4 of the XDK which came with our application server installation. I would like to upgrade our j2ee applications to use 10.1.0.2. It appears during the installation two XDK's are installed. One for the infrastructure (/oracle/product/as10g/infrahome/lib) and one for the application servers (/oracle/product/as10g/appserv1/lib).
    It would appear that no matter where I install the upgrade (with the exception of /oracle/preduct/as10g/appserv1/lib) it always finds the version in /oracle/product/as10g/appserv1/lib. When I attempted to put the upgrade in the appserv1/lib directory it caused the dcm-daemon not to run. I know this is not the correct place but it did find the upgrade here.
    I have placed the upgraded 10.1.0.2 XDK in the following directory: /oracle/product/as10g/appserv1/j2ee/OC4J_DM_Test/xxx (lib, bin, xdk). I updated the classpath to include the necessary jar files as indicated in the documentation. The response I get when I have a page error is that the "9.0.4 XDK" is loaded. How do I get the application server to load the XDK in the ../j2ee/OC4J_DM_Test/lib instead of the one installed for the application server (in appserv1/lib)?
    Thanks in advance!

    Hello,
    The changes in the config files are very light. With the 10g release 2 version, the version number has disapered from the path:
    Forms 9.0.4 : /forms90/java...
    Forms 10.1.2 : /forms/java
    So all you have to do is only to check the 3 main configuration files (forms.conf, default.env, formsweb.cfg).
    And read the following paper concerning Webutil:
    http://www.oracle.com/technology/products/forms/htdocs/webutil/readme.html
    Francois

  • Problem with C++ parser V2 (XDK 9.0.1.2.0)

    Hi,
    The problem describe in a previous message (id=416237, march 2001) with the C++ XDK 8.1.7.1 still remains with the new XDK!
    I can't use the function print to a FILE* on a Node.
    I try to print to stdout or a file =>
    [Linstruction ` + 0x77F7CE4C ; emploie ladresse mimoire + 0x000000010 ;. La mimoire ne peut pas jtre + written ;.]
    No problem when I print to a buffer.
    To try it, i modified DOMSample.cpp :
    cout << "Dump the DOM" << endl;
    cout.flush();
    oratext xmlBuff[1024];
    //parser.getDocumentElement()->print(xmlBuff,1024,0,0); // it's ok
    parser.getDocumentElement()->print(); // don't work
    Thanks,

    This is a known issue and is being investigated. It only fails on Windows NT and the access violation occurs in the Windows NT stdio functions.

  • XDK 9.2.0.1 Install Problem

    Installed XDK 9.2.0.1 for Solaris on database 8.1.7.
    Used command line: xdkload -u sys/pwd -s -dbver 817
    Questions / problems:
    1. After installation the following classes remain uncompiled.
    oracle/xml/parser/v2/FromFollowing
    oracle/xml/parser/v2/FromChildren
    oracle/xml/parser/v2/FromAncestorOrSelf
    oracle/xml/parser/v2/FromParent
    oracle/xml/parser/v2/FromDescAncestor
    oracle/xml/parser/v2/FromAttributes
    oracle/xml/parser/v2/FromPrecedingSibling
    oracle/xml/parser/v2/FromFollowingSibling
    oracle/xml/parser/v2/FromDescParent
    oracle/xml/parser/v2/FromDescAncestorOrSelf
    oracle/xml/parser/v2/FromPreceding
    oracle/xml/parser/v2/FromDescendantAttributes
    oracle/xml/parser/v2/FromAncestor
    oracle/xml/parser/v2/FromDescFollowingSibling
    oracle/xml/parser/v2/FromDescPrecedingSibling
    oracle/xml/parser/v2/FilterExpr
    oracle/xml/parser/v2/FromDescendants
    oracle/xml/parser/v2/FromDescPreceding
    oracle/xml/parser/v2/FromDescFollowing
    oracle/xml/parser/v2/Axis
    oracle/xml/parser/v2/FromSelf
    oracle/xml/parser/v2/Predicate
    oracle/xml/parser/v2/Step
    2. If I run the xdkload as system, then more classes remain uncompiled.
    Any ideas?

    Installed XDK 9.2.0.1 for Solaris on database 8.1.7.
    Used command line: xdkload -u sys/pwd -s -dbver 817
    Questions / problems:
    1. After installation the following classes remain uncompiled.
    oracle/xml/parser/v2/FromFollowing
    oracle/xml/parser/v2/FromChildren
    oracle/xml/parser/v2/FromAncestorOrSelf
    oracle/xml/parser/v2/FromParent
    oracle/xml/parser/v2/FromDescAncestor
    oracle/xml/parser/v2/FromAttributes
    oracle/xml/parser/v2/FromPrecedingSibling
    oracle/xml/parser/v2/FromFollowingSibling
    oracle/xml/parser/v2/FromDescParent
    oracle/xml/parser/v2/FromDescAncestorOrSelf
    oracle/xml/parser/v2/FromPreceding
    oracle/xml/parser/v2/FromDescendantAttributes
    oracle/xml/parser/v2/FromAncestor
    oracle/xml/parser/v2/FromDescFollowingSibling
    oracle/xml/parser/v2/FromDescPrecedingSibling
    oracle/xml/parser/v2/FilterExpr
    oracle/xml/parser/v2/FromDescendants
    oracle/xml/parser/v2/FromDescPreceding
    oracle/xml/parser/v2/FromDescFollowing
    oracle/xml/parser/v2/Axis
    oracle/xml/parser/v2/FromSelf
    oracle/xml/parser/v2/Predicate
    oracle/xml/parser/v2/Step
    2. If I run the xdkload as system, then more classes remain uncompiled.
    Any ideas?

  • XDK 10.1.0.2.0 NT XMLType and org.w3c.dom.Document problem/bug?

    Hi Chaps,
    I have Oracle 11g1 server side and am using the Oracle XDK 10.1.0.2.0 for Windows client side with Sun Java JDK 6 (1.6.0_06-b02).
    (I couldnt find an XDK for 11g1???)
    I have a table in my database that has an XMLType, its a very simple table -
    CREATE TABLE hcr_xml_test
    RRN VARCHAR(24) PRIMARY KEY,
    ClipID VARCHAR2(27),
    Lodgement XMLType
    XMLTYPE COLUMN Lodgement
    STORE AS OBJECT RELATIONAL
    ELEMENT "/www.hcrregister.com/RequestServices/Messages/ConditionReportCreateRequest_1.xsd#ConditionReportCreateRequest_1"
    Thats all fine, however with the XDK I am trying to construct an XMLType for use with JDBC from a valid org.w3c.dom.Document so that I can insert a row into my table. My code looks like this -
    XMLType xml = new XMLType(realCon, doc);
    stmt = (OraclePreparedStatement) realCon.prepareStatement(sql);
    stmt.setString(1, id.getRRN());
    stmt.setString(2, id.getCenteraClipID());
    stmt.setObject(3, xml);
    stmt.execute();
    doc is a org.w3c.dom.Document
    realCon is a java.sql.Connection
    That code throws a SQLException at the line "stmt.setObject(3, xml);" -
    java.sql.SQLException: Fail to convert to internal representation
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
    at oracle.sql.OPAQUE.<init>(OPAQUE.java:85)
    at oracle.xdb.XMLType.toDatum(XMLType.java:480)
    at oracle.jdbc.driver.OraclePreparedStatement.setORADataInternal(OraclePreparedStatement.java:7437)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:8158)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:8149)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:229)
    at uk.co.landmarkinfo.registers.datawarehouse.tools.oracle.lodgementloader.DocumentProcessor.run(DocumentProcessor.java:232)
    Inspecting the exception I can see that the vendorCode is 17059.
    If I use "XMLType xml = XMLType.createXML(realCon, doc);" then xml is null instead of throwing a SQLException, so something isnt working here...
    However, if I serialize my Document to a String first and give that String to either the XMLType Constructor or XMLType.createXML() then it all works fine -
    /////TEMP
    Transformer transformer = saxTransformerFactory.newTransformer();
    transformer.setOutputProperty("omit-xml-declaration", "no");
    transformer.setOutputProperty("indent", "yes");
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    transformer.transform(new DOMSource(doc), new StreamResult(baos));
    XMLType stringXML = new XMLType(realCon, new String(baos.toByteArray()));
    ////END TEMP
    stmt = (OraclePreparedStatement) realCon.prepareStatement(sql);
    stmt.setString(1, id.getRRN());
    stmt.setString(2, id.getCenteraClipID());
    stmt.setObject(3, stringXML);
    stmt.execute();
    But why do I need to serialize to a String first??? Looking at the javadoc I dont think I should have to do this. So is there a problem in Oracles XDB handling of Document or have I missed something?

    Anyone has any idea? Please help!!!
    xu

  • XDK upgrade 9.0.1.2.0 -- 9.2.0.1.0 problem (XSL-1049)

    Doing a test upgrade of XDK 9.0.1.2.0 --> 9.2.0.1.0, I ran into XSL-1049: (Error) Template ... invoked but not defined.
    I have produced a simple test case that illustrates the problem:
    file test.xsql contains:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="test.xsl"?>
    <testdata>
    <a>A</a>
    <b>B</b>
    </testdata>
    file test.xsl contains:
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0" >
    <xsl:variable name="content_b_flag">no</xsl:variable>
    <xsl:include href="inc.xsl" />
    <xsl:template name="content_a">
    <xsl:value-of select="//a" />
    </xsl:template>
    </xsl:stylesheet>
    file inc.xsl contains:
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0" >
    <xsl:template match="/">
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <xsl:call-template name="content_a" />
    <xsl:choose>
    <xsl:when test="$content_b_flag='yes'">
    <xsl:call-template name="content_b" />
    </xsl:when>
    </xsl:choose>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    Running the test.xsql (command-line or via iAS) with XDK 9.0.1 produces the correct results (only template "content_a" is called), but with XDK 9.2.0 only the error is produced:
    XSL-1049: (Error) Template 'content_b' invoked but not defined.
    We use this tecnique to have a common included stylesheet from all top-level stylesheets, and using xsl variables to tell which templates should actually be called.
    We could use another tecnique, but I do wan't to know if this is an error in XDK 9.2.0 (to complain about undefined templates that are never called).
    Hope Oracle XML-Team will answer this one.
    -- Peter ([email protected]).

    Have you correctly set the classpath?

  • Problem loading a schema document using Java XDK

    I have an XSD file which I am attaching a portion of at the end
    of this message. If I use
    xmlns="http://www.w3.org/1999/XMLSchema" it will not recognize
    the "simpleContent" tag because I assume it did not exist in
    this version.
    If I use "http://www.w3.org/2000/10/XMLSchema" I get an error
    saying that I have an invalid reference file. If I use
    "http://www.w3.org/2001/XMLSchema" then it doesn't recognize any
    "element" tag.
    I'm trying to load the schema document with:
    (XMLSchema)builder.build(URL)
    Thanks for your help.
    <?xml version="1.0"?>
    <schema targetNamespace="http://www.example.com/component"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:c="http://www.example.com/component"
    elementFormDefault="qualified">
    <element name="component">
    <complexType>
    <element name="general_info" type="c:general_infoType"/>
    <element name="protocol" type="c:protocolType"/>
    <element name="security" type="c:securityType"/>
    <attribute name="id" type="ID"/>
    </complexType>
    </element>
    <element name="architecture" type="string"/>
    <element name="city" type="string"/>
    <element name="comp_name" type="string"/>
    <element name="domain" type="string"/>
    <element name="email" type="string"/>
    <element name="framework" type="string"/>
    <element name="function" type="string"/>
    <element name="keyword" type="string"/>
    <element name="language" type="string"/>
    <element name="licensing" type="string"/>
    <element name="p_version" type="string"/>
    <element name="phone_no" type="string"/>
    <element name="platform" type="string"/>
    <element name="protocol" type="string"/>
    <element name="provider_name" type="string"/>
    <element name="primary_cat" type="string"/>
    <element name="secondary_cat" type="string"/>
    <element name="std" type="string"/>
    <element name="standard_name" type="string"/>
    <element name="state" type="string"/>
    <element name="street_addr" type="string"/>
    <element name="url" type="string"/>
    <element name="vendor_name" type="string"/>
    <element name="version" type="string"/>
    <element name="zip_code" type="string"/>
    <complexType name="general_infoType">
    <element ref="c:comp_name"/>
    <element ref="c:version"/>
    <element name="vendor" type="c:vendorType"/>
    <element name="compatibility" type="c:compatibilityType"/>
    <element name="categories" type="c:categoriesType"/>
    <element ref="c:function" maxOccurs="unbounded"/>
    <element ref="c:domain"/>
    <element name="keywords" type="c:keywordsType"/>
    <element ref="c:licensing"/>
    <element name="sys_req" type="c:sys_reqType"/>
    </complexType>
    <... It continues ...>

    Which version of XDK are you using? I'am using XDK 9.0.2B and I
    can't reproduce the problem.

  • Problem with downloading xdk for java - suggestions?

    I am having problems downloading the xdk for java. Could someone please direct me to an alternate site for download?

    In Windows, open the Task Manager and, in the Processes tab, close bridge.exe.
    http://helpx.adobe.com/creative-suite/kb/error-installation-cannot-continue-bridge.html

  • Strange Problems with XDK v10 Beta Version

    Hello together,
    I encounter two strange problems with the new 10.1.0.0.0 Beta release of XDK. I already posted them in the Beta Release Testing Forum, but got no replies, so I decided to start another try here. Maybe anyone can help me...
    I upgraded a fine-working XSQL web application from XDK 9.2.0.4 to the new 10.1.0.0.0 Beta release of XDK. Since then, two bugs came up, which are reproducible by will:
    1.)
    When processing XSQL insert-requests, the error given below is thrown. I already found an entry in the bug database that says that exactly this error should have been fixed since 9.2.0.3 (see http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230695.1), but no it seems to be there again.
    This is the stack trace:
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: oracle/sql/OPAQUE
    at oracle.xml.xsql.actions.XSQLInsertRequestHandler.handleAction(XSQLInsertRequestHandler.java:118)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:158)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:171)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:61)
    at oracle.xml.xsql.XSQLServlet.doPost(XSQLServlet.java:82)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    2.)
    When I deploy and start the application now, I always get the following error only once(!) after deployment when I call the application for the first time:
    XSQL-017: Unexpected Error Occurred
    java.lang.NullPointerException
    at weblogic.jdbc.oci.Statement.executeQuery(Statement.java:865)
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:161)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:158)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:171)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:61)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    When I reload the same page, it works. However, this is not really a good state for productive use.
    Any ideas? After days of research, I'd be very glad for any help.
    Thanks alot,
    Eckhard

    Once again me:
    I guess I should partially revoke for the second topic: The error described above under 2.) seems to be rather a Weblogic versioning problem than a XDK bug, as it only occurs when deploying the application to WebLogic 7.0 (instead of 6.1, which was used before). Maybe I should search the BEA docs for an answer.
    However, the first bug is still a problem to me...

  • Problems instantiating oracle xdk class CXmlCtx

    I'm having problems using the CXmlCtx C++ class in XDK 10g when I define my own ErrorHandler class. The default version appears to be working but does not allow any errors to be dealt with properly.
    I believe there is some kind of memory corruption occurring as I'm getting inconsistent results when I instantiate CXmlCtx. There are times when the CXmlCtx class is instantiated and then I can successfully parse an xml doc BUT most of the time I'm getting a mix between Error 19 returned (which is XMLERR_PROP_NOT_FOUND) and a core dump.
    Does anyone know what error 19 actually means and more importantly how can I avoid it? (and hopefully the core dumps).

    Hi,
    I am facing a similar problem. Please let me know if you were able to resolve this/

  • Problem in installing XDK 9.2.0.1.0

    I tried to install XDK 9.2.0.1.0 on Oracle 9i and I get the following errors after going thro' 3/4 of the intallation.
    errors : class oracle/xml/sql/OracleXMLSQLException
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/OracleXMLSQLException
    granting : execute on class oracle/xml/sql/OracleXMLSQLNoRowsException to public
    errors : class oracle/xml/sql/OracleXMLSQLNoRowsException
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    There are many errors repeated similar to the above errors. Now DBMS_XMLQUERY fails. If someone can help me, I would appreciate that. Thanks in advance.
    Ravi

    I installed a brand new Oracle 9i. I tried to install XDK 9.2.0.1. After 3/4 of installation i get the following errors. Oracle should look into this and fix it. If somebody has a similar proble or am I doing something wrong. Anyway, if someone knows the solution, please let me know.
    Here are the errors.
    resolving: class oracle/xml/sql/OracleXMLSQLException
    errors : class oracle/xml/sql/OracleXMLSQLException
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/OracleXMLSQLException
    granting : execute on class oracle/xml/sql/OracleXMLSQLNoRowsException to public
    errors : class oracle/xml/sql/OracleXMLSQLNoRowsException
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    synonym : oracle/xml/sql/OracleXMLSQLNoRowsException
    granting : execute on class oracle/xml/sql/XSULocale to public
    resolving: class oracle/xml/sql/XSULocale
    synonym : oracle/xml/sql/XSULocale
    granting : execute on class oracle/xml/sql/XSUMesg to public
    skipping : class oracle/xml/sql/XSUMesg
    synonym : oracle/xml/sql/XSUMesg
    granting : execute on class oracle/xml/sql/XSUXSchemaHandler to public
    errors : class oracle/xml/sql/XSUXSchemaHandler
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/XSUXSchemaHandler
    granting : execute on class oracle/xml/sql/core/OracleXMLConvert to public
    errors : class oracle/xml/sql/core/OracleXMLConvert
    ORA-29521: referenced name oracle/xdb/XMLType could not be found
    synonym : oracle/xml/sql/core/OracleXMLConvert
    granting : execute on class oracle/xml/sql/core/OracleXMLTime to public
    skipping : class oracle/xml/sql/core/OracleXMLTime
    synonym : oracle/xml/sql/core/OracleXMLTime
    granting : execute on class oracle/xml/sql/core/OracleXMLTimer to public
    skipping : class oracle/xml/sql/core/OracleXMLTimer
    synonym : oracle/xml/sql/core/OracleXMLTimer
    granting : execute on class oracle/xml/sql/core/OracleXMLUtil to public
    resolving: class oracle/xml/sql/core/OracleXMLUtil
    errors : class oracle/xml/sql/core/OracleXMLUtil
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    synonym : oracle/xml/sql/core/OracleXMLUtil
    granting : execute on class oracle/xml/sql/dataset/OracleXMLDataSet to public
    errors : class oracle/xml/sql/dataset/OracleXMLDataSet
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/dataset/OracleXMLDataSet
    granting : execute on class oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc to public
    errors : class oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    synonym : oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc
    granting : execute on class oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc to public
    errors : class oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    synonym : oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc
    granting : execute on class oracle/xml/sql/dataset/OracleXMLDataSetJdbc to public
    errors : class oracle/xml/sql/dataset/OracleXMLDataSetJdbc
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dataset/OracleXMLDataSet could not be resolv
    d
    synonym : oracle/xml/sql/dataset/OracleXMLDataSetJdbc
    granting : execute on class oracle/xml/sql/dml/OracleXMLSave to public
    errors : class oracle/xml/sql/dml/OracleXMLSave
    ORA-29521: referenced name oracle/xdb/XMLType could not be found
    synonym : oracle/xml/sql/dml/OracleXMLSave
    granting : execute on class oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt to public
    resolving: class oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt
    errors : class oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLStaticSave could not be resolve
    synonym : oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt
    granting : execute on class oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx to public
    errors : class oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLStaticSave could not be resolve
    synonym : oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx
    granting : execute on class oracle/xml/sql/dml/OracleXMLStaticSave to public
    errors : class oracle/xml/sql/dml/OracleXMLStaticSave
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    synonym : oracle/xml/sql/dml/OracleXMLStaticSave
    granting : execute on class oracle/xml/sql/docgen/OracleXMLDocGen to public
    skipping : class oracle/xml/sql/docgen/OracleXMLDocGen
    synonym : oracle/xml/sql/docgen/OracleXMLDocGen
    granting : execute on class oracle/xml/sql/docgen/OracleXMLDocGenDOM$FragmentReader to public
    errors : class oracle/xml/sql/docgen/OracleXMLDocGenDOM$FragmentReader
    ORA-29534: referenced object VADMIN.oracle/xml/sql/docgen/OracleXMLDocGenDOM could not be resol
    ed
    synonym : oracle/xml/sql/docgen/OracleXMLDocGenDOM$FragmentReader
    granting : execute on class oracle/xml/sql/docgen/OracleXMLDocGenDOM to public
    errors : class oracle/xml/sql/docgen/OracleXMLDocGenDOM
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    synonym : oracle/xml/sql/docgen/OracleXMLDocGenDOM
    granting : execute on class oracle/xml/sql/docgen/OracleXMLDocGenLob to public
    resolving: class oracle/xml/sql/docgen/OracleXMLDocGenLob
    errors : class oracle/xml/sql/docgen/OracleXMLDocGenLob
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/docgen/OracleXMLDocGenLob
    granting : execute on class oracle/xml/sql/docgen/OracleXMLDocGenSAX to public
    resolving: class oracle/xml/sql/docgen/OracleXMLDocGenSAX
    errors : class oracle/xml/sql/docgen/OracleXMLDocGenSAX
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/docgen/OracleXMLDocGenSAX
    granting : execute on class oracle/xml/sql/docgen/OracleXMLDocGenString to public
    errors : class oracle/xml/sql/docgen/OracleXMLDocGenString
    ORA-29534: referenced object VADMIN.oracle/xml/sql/OracleXMLSQLException could not be resolved
    synonym : oracle/xml/sql/docgen/OracleXMLDocGenString
    granting : execute on class oracle/xml/sql/name/OracleADTName to public
    errors : class oracle/xml/sql/name/OracleADTName
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/name/OracleADTName
    granting : execute on class oracle/xml/sql/name/OracleCollectionName to public
    errors : class oracle/xml/sql/name/OracleCollectionName
    ORA-29534: referenced object VADMIN.oracle/xml/sql/name/OracleColumnName could not be resolved
    synonym : oracle/xml/sql/name/OracleCollectionName
    granting : execute on class oracle/xml/sql/name/OracleColumnName to public
    errors : class oracle/xml/sql/name/OracleColumnName
    ORA-29534: referenced object VADMIN.oracle/xml/sql/core/OracleXMLConvert could not be resolved
    synonym : oracle/xml/sql/name/OracleColumnName
    granting : execute on class oracle/xml/sql/name/OracleCursorName to public
    errors : class oracle/xml/sql/name/OracleCursorName
    ORA-29534: referenced object VADMIN.oracle/xml/sql/name/OracleColumnName could not be resolved
    synonym : oracle/xml/sql/name/OracleCursorName
    granting : execute on class oracle/xml/sql/name/OracleScalarName to public
    errors : class oracle/xml/sql/name/OracleScalarName
    ORA-29534: referenced object VADMIN.oracle/xml/sql/name/OracleColumnName could not be resolved
    synonym : oracle/xml/sql/name/OracleScalarName
    granting : execute on class oracle/xml/sql/query/OracleXMLQuery to public
    resolving: class oracle/xml/sql/query/OracleXMLQuery
    errors : class oracle/xml/sql/query/OracleXMLQuery
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    synonym : oracle/xml/sql/query/OracleXMLQuery
    granting : execute on class oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt to public
    resolving: class oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt
    errors : class oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt
    ORA-29534: referenced object VADMIN.oracle/xml/sql/query/OracleXMLStaticQuery could not be reso
    ved
    synonym : oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt
    granting : execute on class oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx to public
    errors : class oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx
    ORA-29534: referenced object VADMIN.oracle/xml/sql/query/OracleXMLStaticQuery could not be reso
    ved
    synonym : oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx
    granting : execute on class oracle/xml/sql/query/OracleXMLStaticQuery to public
    errors : class oracle/xml/sql/query/OracleXMLStaticQuery
    ORA-29534: referenced object VADMIN.oracle/xml/sql/query/OracleXMLQuery could not be resolved
    synonym : oracle/xml/sql/query/OracleXMLStaticQuery
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_ar.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_ar.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_ca.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_ca.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_cs.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_cs.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_da.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_da.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_de.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_de.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_el.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_el.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_es.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_es.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_es_ES.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_es_ES.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_fi.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_fi.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_fr.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_fr.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_hu.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_hu.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_it.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_it.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_iw.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_iw.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_ja.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_ja.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_ko.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_ko.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_nl.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_nl.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_no.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_no.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_pl.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_pl.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_pt.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_pt.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_pt_BR.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_pt_BR.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_ro.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_ro.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_ru.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_ru.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_sk.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_sk.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_sv.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_sv.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_th.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_th.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_tr.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_tr.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_zh_CN.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_zh_CN.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMessages_zh_TW.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMessages_zh_TW.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMesssages_de.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMesssages_de.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMesssages_fr.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMesssages_fr.properties
    granting : execute on resource oracle/xml/sql/mesg/XSUMesssages_ja.properties to public
    skipping : resource oracle/xml/sql/mesg/XSUMesssages_ja.properties
    granting : execute on class OracleXML to public
    resolving: class OracleXML
    errors : class OracleXML
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    synonym : OracleXML
    granting : execute on class OracleXMLStore to public
    resolving: class OracleXMLStore
    errors : class OracleXMLStore
    ORA-29534: referenced object VADMIN.oracle/xml/sql/dml/OracleXMLSave could not be resolved
    synonym : OracleXMLStore
    granting : execute on resource XSU12_BUILD to public
    skipping : resource XSU12_BUILD
    granting : execute on resource XSU12_RDBMS_MAIN_SOLARIS_020129 to public
    skipping : resource XSU12_RDBMS_MAIN_SOLARIS_020129
    granting : execute on resource XSU12_VERSION_9_2_0_1 to public
    skipping : resource XSU12_VERSION_9_2_0_1
    The following operations failed
    class oracle/xml/sql/OracleXMLSQLException: resolution
    class oracle/xml/sql/OracleXMLSQLNoRowsException: resolution
    class oracle/xml/sql/XSUXSchemaHandler: resolution
    class oracle/xml/sql/core/OracleXMLConvert: resolution
    class oracle/xml/sql/core/OracleXMLUtil: resolution
    class oracle/xml/sql/dataset/OracleXMLDataSet: resolution
    class oracle/xml/sql/dataset/OracleXMLDataSetExtJdbc: resolution
    class oracle/xml/sql/dataset/OracleXMLDataSetGenJdbc: resolution
    class oracle/xml/sql/dataset/OracleXMLDataSetJdbc: resolution
    class oracle/xml/sql/dml/OracleXMLSave: resolution
    class oracle/xml/sql/dml/OracleXMLStaticSave$MutableInt: resolution
    class oracle/xml/sql/dml/OracleXMLStaticSave$SaveCtx: resolution
    class oracle/xml/sql/dml/OracleXMLStaticSave: resolution
    class oracle/xml/sql/docgen/OracleXMLDocGenDOM$FragmentReader: resolution
    class oracle/xml/sql/docgen/OracleXMLDocGenDOM: resolution
    class oracle/xml/sql/docgen/OracleXMLDocGenLob: resolution
    class oracle/xml/sql/docgen/OracleXMLDocGenSAX: resolution
    class oracle/xml/sql/docgen/OracleXMLDocGenString: resolution
    class oracle/xml/sql/name/OracleADTName: resolution
    class oracle/xml/sql/name/OracleCollectionName: resolution
    class oracle/xml/sql/name/OracleColumnName: resolution
    class oracle/xml/sql/name/OracleCursorName: resolution
    class oracle/xml/sql/name/OracleScalarName: resolution
    class oracle/xml/sql/query/OracleXMLQuery: resolution
    class oracle/xml/sql/query/OracleXMLStaticQuery$MutableInt: resolution
    class oracle/xml/sql/query/OracleXMLStaticQuery$QueryCtx: resolution
    class oracle/xml/sql/query/OracleXMLStaticQuery: resolution
    class OracleXML: resolution
    class OracleXMLStore: resolution
    exiting : Failures occurred during processing
    Thanks in advance.

  • XDK 9.0.2.0.C XSQL parameter visibility problem

    Dear Steven,
    I consider this as a serious bug:
    When one set XSQL page or XSQL session page parameter it
    become visible in page/request/session or otherwise only after
    the following round trip to the client.
    In other words, it is not present in the incoming XML to xslt to
    process.
    Thank you,
    David

    David,
    I just re-tested with 9.0.2C and things are working as they
    should. For example, the following XSQL page:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="test.xsl"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="demo">
      <xsql:set-page-param name="page-param" value="1"/>
      <xsql:set-session-param name="sess-param" value="2"/>
      <xsql:set-stylesheet-param name="sheet-param" value="3"/>
      <xsql:include-param name="page-param"/>
      <xsql:include-param name="sess-param"/>
    </page>referencing the following stylesheet:
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:param name="sheet-param"/>
      <xsl:template match="/">
        <html><body>
        <b><xsl:value-of select="$sheet-param"/></b>
        <b><xsl:value-of select="/page/sess-param"/></b>
        <b><xsl:value-of select="/page/page-param"/></b>
        </body></html>
      </xsl:template>
    </xsl:stylesheet>shows an HTML page with the expected "321" the first request.
    If you are talking about cookies, then you are correct that the
    cookies you set this request are not visible until the next
    request (which is the standard way cookies work), however, you
    can use the new XSQL 9.0.2C feature to "see" the cookie value
    immediately by adding the immediate="yes"] attribute to
    your <xsql:set-cookie> action.
    If I've misunderstood your problem, please post a testcase that
    illustrates the issue. Thanks.

  • XDK for C - SAX Parser Memory Problem

    Hi,
    I'm using the SAX Parser with custom Callbacks with XDK for C - version : Oracle XML Parser 9.2.0.6.0.
    i'm parsing a single large XML file using the custom callbacks.
    The issue i'm facing that the SAX Parser does not release any memory till complete parsing is over for the whole document(until xmlterm is called). This causes the parser to fail with LPX-00002 : OUT OF MEMORY error before the document parsing is complete.
    I tried using custom memory callbacks but what i noticed is that the parser does not invoke the free Memory callback untill xmlterm is invoked.
    If anybody has found an alternative to allow memory to be freed while SAX parsing is going on pls help me too.
    Regards,
    Vineet Mago

    Can you send the test case?

  • Oracle XDK Java 9.2.0.2.0 installation problem

    Hi,
    I downloaded xdk_java_9_2_0_2_0 and I did change the default connection with my username and password in XSQLConfig.xml file. When I tried to execute XSQL.bat file under bin folder I am getting the error in dos window as follows
    Bad command or file name
    Oracle XDK Java 9.2.0.2.0 Production
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 1, char 1
    Start of root element expected.
    Please suggest me what I need to do...

    This means your XSQL page is not well-formed XML document. Please check the syntax in your .xsql file.

  • XDK's DOM3 Validation problems (new)

    Hello,
    First I'm french so excuse if i'm not quite comprehensible.
    I try to use the DOM3 Validation methods as validateDocument, canRemoveChild, canSetAttribute, but I always obtain the same short result DocumentEditVal.VAL_UNKNOWN or ElementEditVal.VAL_UNKNOWN.
    For exemple I try with this xml document
    <?xml version="1.0" encoding="UTF-8"?>
    <personnes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personnes.xsd">
         <personne>
              <nom>nom</nom>
              <prenom>prenom</prenom>
         </personne>
    </personnes>
    the following xml schéma
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:element name="personnes">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="personne"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="personne">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element ref="nom"/>
                        <xs:element ref="prenom"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <xs:element name="nom" type="xs:string"/>
         <xs:element name="prenom" type="xs:string"/>
    </xs:schema>
    and this java code :
    DOMParser parser = new DOMParser();
                   parser.setErrorStream( System.out );
                   parser.setValidationMode( DOMParser.SCHEMA_VALIDATION );
                   URL xmlUrl = URLFactory.getURL("personnes.xml");
                   parser.parse( xmlUrl);
                   XMLDocument document = parser.getDocument();
                   document.print( System.out );
                   XMLSchema schema = parser.getXMLSchema();
                   schema.printSchema();
                   if( document.validateDocument() == DocumentEditVAL.VAL_UNKNOWN )
                        System.out.println(">>>>>>>>>>>>>>Unknown<<<<<<<<<<<<<<<");
    and obtain
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <personnes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="personnes.xsd">
         <personne>
              <nom>nom</nom>
              <prenom>prenom</prenom>
         </personne>
    </personnes>
    === Start XMLSchemaNode ===
    Target NameSpace =
    SchemaLocation =null
    <element
    name = prenom
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    type = http://www.w3.org/2001/XMLSchema:string
    >
    </element>
    <element
    name = personnes
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    >
    <complexType
    abstract = false
    content = elementOnly
    derivedBy = restriction
    ref = http://www.w3.org/2001/XMLSchema:anyType
    >
    <group
    order = sequence
    minOccurs = 1
    maxOccurs = 1
    >
    <element
    name = personne
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    ref = :personne
    >
    </element>
    </group>
    </complexType>
    </element>
    <element
    name = nom
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    type = http://www.w3.org/2001/XMLSchema:string
    >
    </element>
    <element
    name = personne
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    >
    <complexType
    abstract = false
    content = elementOnly
    derivedBy = restriction
    ref = http://www.w3.org/2001/XMLSchema:anyType
    >
    <group
    order = sequence
    minOccurs = 1
    maxOccurs = 1
    >
    <element
    name = nom
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    ref = :nom
    >
    </element>
    <element
    name = prenom
    abstract = false
    form = qualified
    minOccurs = 1
    maxOccurs = 1
    nullable = false
    ref = :prenom
    >
    </element>
    </group>
    </complexType>
    </element>
    === End XMLSchemaNode ===
    Unknown<<<<<<<<<<<<<<<________________________________________________________________________
    May someone can tell me what that's not work ?

    Thanks for this link !
    My test application work much better but I still have some problem.
    Still with the same XML document and schema I wrote this :
    XMLDOMImplementation impl = new XMLDOMImplementation();
                   LSParser parser = impl.createLSParser(
                             DOMImplementationLS.MODE_SYNCHRONOUS,
                             "http://www.w3.org/2001/XMLSchema");
                   URL xmlURL = URLFactory.getURL("personnes.xml");
                   XMLDocument document =
                        (XMLDocument)parser.parseURI( "file://"+xmlURL.getPath() );
                   XSDBuilder builder = new XSDBuilder();
                   URL schemaURL = URLFactory.getURL("personnes.xsd");
                   XMLSchema schema = (XMLSchema)builder.build( schemaURL );
                   document.setSchema( schema );
                   DocumentEditVAL documentEditVAL = (DocumentEditVAL)document;
                   documentEditVAL.setContinuousValidityChecking( true );
                   NodeFactory nodeFactory = new NodeFactory();
                   XMLElement personneElement = nodeFactory.createElement("personne");
                   XMLElement badElement = nodeFactory.createElement("badChild");
                   personneElement.appendChild(badElement);
                   XMLElement rootElement = (XMLElement)document.getDocumentElement();
                   ElementEditVAL elementEditVAL = (ElementEditVAL)rootElement;
                   //Should return false...
                   short valid = elementEditVAL.canAppendChild(personneElement);
                   if(valid==NodeEditVAL.VAL_TRUE)
              System.out.println("Element addition VALID_TRUE");
                   if(valid==NodeEditVAL.VAL_FALSE)
              System.out.println("Element addition is VALID_FALSE");
              if(valid==NodeEditVAL.VAL_UNKNOWN)
              System.out.println("Element addition is VALID_UNKNOWN");
              //Append wrong personneElement
              rootElement.appendChild( personneElement );
              //Must return false !
              valid = documentEditVAL.validateDocument();
              if(valid==NodeEditVAL.VAL_TRUE)
              System.out.println("VALID_TRUE");
                   if(valid==NodeEditVAL.VAL_FALSE)
              System.out.println("VALID_FALSE");
              if(valid==NodeEditVAL.VAL_UNKNOWN)
              System.out.println("VALID_UNKNOWN");
    I built an element "personne" with an illegal child "badChild" but the canAppendChild methode return VAL_TRUE. Does the validation test stop at first level ?
    Moreover, when i append this illegal element "personne", then call the validateDocument() method, that's still return true !
    please help !

Maybe you are looking for

  • Default value in the drop down by index

    Hi Experts, I have a drop down by index to which i binded one internal table,but m not able to get the default value i want the first value to be selected in the drop down by default,Pls give me suggestion for solving this problem

  • IAS console doesn't work due DCM daemon failure

    Hi, I've got a problem with IAS console recently. When I try to open Application or Administration tabs for my OC4J Instance I get an error message: <ias-component id="dcm-daemon"> <process-type id="dcm-daemon"> <process-set id="dcm"> <process id="65

  • Process not getting long filename support

    I am trying to run a makefile through the runtime.exec. I am using 1.4.0 on WinNT The error I am getting is consistent to errors caused by lack of long filename support. I have lfnload.com on the machine, so I can install long filename support. If an

  • Number of elements in the FP affecting the performance of my application ?

    I developed a simple application which consists of aquiring a signal through a channel of a PXI 5102 module and commanding some relays of a SCXI 1161 module. This application has the following features : -The user can, at any time, change the configu

  • How to use Recycle bin in SQL

    Hi All, I am using oracle 10g sql plus. It is not displaying the details of dropped tables in recyclebin. And also when i give flashback it is showing that object not in recyclebin.. see the below example... SQL> CREATE TABLE DUM(NAME VARCHAR2(2)); T