Schema-aware XML Diff utility

Is there a XML Diff utility/API that is schema aware? i.e. can determine that <foo bar="true"/> is the same as <foo/> if the schema says that the default value for the optional bar attribute is "true".
As far as I can see, oracle.xml.XMLDiff has no such feature.
Vijay

Most XML diff APIs are not schema aware. XML document differences implies differences in XML elements and attributes, not a validation of the XML documents with a schema.
http://www.devx.com/Java/Article/30943

Similar Messages

  • Sample XML generation utility

    Hi Folks,
    I am looking for an API (not tool like XMLSpy) that generates a sample XML document based on a XML Schema. Basically I am trying to get the impact of XML Schema changes between 2 versions of an XML Schema by creating a sample document from those Schemas and doing a Diff on the these document. None of these step is manual so essential I can't generate class for Schema by JAXB or XMLBeans and then use them.
    I found SUN' s XML instance generator by Kohsuke Kawaguchi :-
    http://www.sun.com/software/xml/developers/instancegenerator/
    to be interesting but sadly this supports only a subset of XMLSchema part I.
    Is anyone out here aware of a good solution to generate Sample XMLs from XML Schema. XMLSpy does this very neatly . Sadly it is not open source. Even .Net has a good API to do this:-
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/xmlgen.asp
    Thanks in advance,
    Vineeth.

    Most of the Schema to XML Document conversion interfaces are not not open source:
    XML Spy :http://www.altova.com/features_schema35.html
    Stylus Studio:http://www.stylusstudio.com/
    .NET: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/xmlgen.asp
    XMLBeans is an open source API which may be used to compile a schema to generate java classes, and create an XML document from the java classes.
    Refer to the Creating New XML Instances from Schema section:
    http://xmlbeans.apache.org/docs/guide/conGettingStartedwithXMLBeans.html

  • 1.2 JVM crashes using XML SQL Utility 1.1.10 (NT 8.1.5)

    I am trying to use the XML SQL Utility for Java (Oracle 8.1.5) to obtain a DTD or XML schema for tables in our database.
    I have installed the XSU111.ZIP archive,
    set the CLASSPATH and stuff, loaded the JAR
    files (xmlparserv2.jar, oraclexmlsql.jar)
    processed the xmlgenpkg.sql script (following the installation instructions)
    When I execute the samples in Java, the JVM (JDK 1.2.2) crashes in javai.dll.
    The same error occurs when I run java OracleXML getXML ....
    The installation file (env.bat) lists the JDBC driver ZIP as CLASSES12.ZIP, which is of course, not available for 8.1.5, which is what the download instructions indicated is appropriate for XSU 1.1.1.
    Any ideas? Do I need to upgrade to 8.1.6?
    Can I patch the JDBC with classes12.ZIP.
    By the way, when I execute the commands in PL/SQL using xmlgen package, everything is fine.
    Regards and Much thanks

    Set JDK_HOME to the directory where you install your JDK (Java Development Kit).
    So instance, I've install JDK1.1.8 on my
    C drive so
    set JDK_HOME=c:\jdk1.1.8;c:\jdk1.1.8\bin

  • XML SQL utility

    Hi,
    When I try to execute this query using XML SQL utility
    I am getting the following error. I had declared 'XMLGEN &
    GETXML' as CLOB and tried but got the same error. Advice me. I
    am struggling to find the solution using XSQL Servlet..but
    couldn't get..I spend one week on that..no results...this is the
    second trial. Is there any online help or service to do that.
    xmlString := xmlgen.getXML('select * from scott.emp');
    ERROR at line 9:
    ORA-06550: line 9, column 16:
    PLS-00201: identifier 'XMLGEN.GETXML' must be declared
    ORA-06550: line 9, column 3:
    PL/SQL: Statement ignored
    I have Oracle XML parser for Java 2, and XML SQL utility and
    oracle 8i database....
    This is the query.........(Your example)
    declare
    xmlString CLOB;
    amount integer:= 4000;
    position integer := 1;
    charString varchar2(4000);
    i binary_integer := 0;
    inclDTD number := 0;
    begin
    xmlString := xmlgen.getXML('select * from scott.emp');
    dbms_lob.open(xmlString,DBMS_LOB.LOB_READONLY);
    loop
    dbms_lob.read(xmlString,amount,position,charString);
    dbms_output.put_line(charString);
    position := position + amount;
    end loop;
    exception
    when no_data_found then
    dbms_lob.close(xmlString);
    dbms_lob.freetemporary(xmlString);
    end;
    null

    Have you loaded the xmlgenpkg.sql in the schema in which you
    are trying to execute your PL/SQL block?
    Chan (guest) wrote:
    : Hi,
    : When I try to execute this query using XML SQL utility
    : I am getting the following error. I had declared 'XMLGEN &
    : GETXML' as CLOB and tried but got the same error. Advice me. I
    : am struggling to find the solution using XSQL Servlet..but
    : couldn't get..I spend one week on that..no results...this is
    the
    : second trial. Is there any online help or service to do that.
    : xmlString := xmlgen.getXML('select * from scott.emp');
    : ERROR at line 9:
    : ORA-06550: line 9, column 16:
    : PLS-00201: identifier 'XMLGEN.GETXML' must be declared
    : ORA-06550: line 9, column 3:
    : PL/SQL: Statement ignored
    : I have Oracle XML parser for Java 2, and XML SQL utility and
    : oracle 8i database....
    : This is the query.........(Your example)
    : declare
    : xmlString CLOB;
    : amount integer:= 4000;
    : position integer := 1;
    : charString varchar2(4000);
    : i binary_integer := 0;
    : inclDTD number := 0;
    : begin
    : xmlString := xmlgen.getXML('select * from scott.emp');
    : dbms_lob.open(xmlString,DBMS_LOB.LOB_READONLY);
    : loop
    : dbms_lob.read(xmlString,amount,position,charString);
    : dbms_output.put_line(charString);
    : position := position + amount;
    : end loop;
    : exception
    : when no_data_found then
    : dbms_lob.close(xmlString);
    : dbms_lob.freetemporary(xmlString);
    : end;
    Oracle Technology Network
    http://technet.oracle.com
    null

  • XML SQL Utility:Why it doesn't work?

    I am trying to use the XML SQL Utility
    by modifying the given example samp1.java
    for the JDBC-ODBC driver but errors emerged.
    Is there any thing wrong? Thanks.
    (The classpath setting is ok, I think)
    ***** Here is the error message:
    D:\OracleXSU\sample>java Sample
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sql/Datum
    at oracle.xml.sql.query.OracleXMLQuery.<init>(OracleXMLQuery.java:127)
    at Sample.main(Sample.java:42)
    D:\OracleXSU\sample>
    ***** Here is the source code:
    /** Simple example on using Oracle XMLSQL API; this class queries the database with "select * from emp" in scott/tiger schema; then from the results of query it generates an XML document */
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    // import oracle.jdbc.*;
    // import oracle.jdbc.driver.*;
    public class Sample
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "sbook";
    String user = "scott/tiger";
    try {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    // DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //init a JDBC connection
    // Connection conn =
    // DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@");
    Connection conn = DriverManager.getConnection("jdbc:odbc:SQLUtil");
    // create statement and execute it to get the ResultSet
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select * from "+tabName );
    if(rset!=null)
    // init the OracleXMLQuery; note we could have passed the sql query string
    // instead of the ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    // get the XML document is the string format
    String xmlString = qry.getXMLString();
    // print out the result
    System.out.println(" OUPUT IS:\n"+xmlString);
    null

    Firstly I think it is because the XML SQL Utility does not work with JDBC-ODBC driver.
    So I try it again with Oracle driver.
    But it still doesn't work? Why?
    ***** Here is the source code:
    /** Simple example on using Oracle XMLSQL API; this class queries the database with "select * from emp" in scott/tiger schema; then from the results of query it generates an XML document */
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    public class Sample2
    //========================================
    // main() - public static void
    public static void main(String args[]) throws SQLException
    String tabName = "emp";
    String user = "scott/tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    //init a JDBC connection
    // Connection conn =
    // DriverManager.getConnection("jdbc:oracle:oci8:"+user+"@");
    //init a JDBC connection
    Connection conn = DriverManager.getConnection ("...Connection information...");
    // create statement and execute it to get the ResultSet
    Statement stmt = conn.createStatement();
    // ResultSet rset = stmt.executeQuery("select * from "+tabName );
    ResultSet rset = stmt.executeQuery("select * from COFFEES" );
    // Test if connection is sucessful -- it works!
    int i=0;
    while(rset.next())
    i++;
    System.out.println("Total rows="+i);
    // init the OracleXMLQuery; note we could have passed the sql query string
    // instead of the ResultSet
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    // get the XML document is the string format
    String xmlString = qry.getXMLString();
    // print out the result
    System.out.println(" OUPUT IS:\n"+xmlString);
    null

  • XML SQL Utility, 8i, NT4, test code

    I have been unable to get the sample code to run successfully
    after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
    Windows NT4 Service Pack 4.
    To make sure I was doing nothing wrong, I reinstalled Oracle 8i
    and loaded all the java into scott/tiger. Also the PLXMLPARSER
    codes does appear to run correctly. At least the samples seem to
    work.
    I tried to use the oraclexmlsqlload.bat script, but the script
    stopped after after loading oraclexmlsql.jar. So I ran each of
    the loadjava scripts on the command line. They exited without
    errors. Even the xmlgen package installed without errors. But
    when I ran oraclexmlsqltest.sql, I got a message that said the
    procedure completed successfully, but there was not output.
    I put a dbms_output.put_line(SQLCODE) with each of the two
    exceptions and got the following error. The procedure actually
    failed on "when others" with error -29531. According to the
    Error Manual this is
    ORA-29531 no method string in class string
    Cause: An attempt was made to execute a non-existent method in a
    Java class.
    Action: Adjust the call or create the specified method.
    At this point I am not sure what to do.
    null

    Hi Frank,
    Frank, make sure that the two "select xmlgen....." are
    returning a valid XML document. If these aren't working let me
    know, otherwise add a:
    set serveroutput on
    after the commit.
    Also, before you do this, restore oraclexmlsqltest.sql to its
    original state ... the exception section was masking exceptions
    which we are aware we generate. If you look closely you will see
    that we do a very rough job outputing the lob containing the XML
    document (we print out past the length of the LOB, which raises
    an exception).
    Let me know what happens.
    Frank Hubeny (guest) wrote:
    : I have been unable to get the sample code to run successfully
    : after installing the XML SQL Utility on Oracle 8.1.5.0.0 on
    : Windows NT4 Service Pack 4.
    : To make sure I was doing nothing wrong, I reinstalled Oracle 8i
    : and loaded all the java into scott/tiger. Also the PLXMLPARSER
    : codes does appear to run correctly. At least the samples seem
    to
    : work.
    : I tried to use the oraclexmlsqlload.bat script, but the script
    : stopped after after loading oraclexmlsql.jar. So I ran each of
    : the loadjava scripts on the command line. They exited without
    : errors. Even the xmlgen package installed without errors. But
    : when I ran oraclexmlsqltest.sql, I got a message that said the
    : procedure completed successfully, but there was not output.
    : I put a dbms_output.put_line(SQLCODE) with each of the two
    : exceptions and got the following error. The procedure actually
    : failed on "when others" with error -29531. According to the
    : Error Manual this is
    : ORA-29531 no method string in class string
    : Cause: An attempt was made to execute a non-existent method in
    a
    : Java class.
    : Action: Adjust the call or create the specified method.
    : At this point I am not sure what to do.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • XML SQL Utility - OracleXMLStore?

    I am stepping thru the release notes for the "Oracle XML SQL
    Utility for Java". I have incorporated the env.csh into my
    .cshrc file as shown below. I am currently trying to "Load the
    Oracle XML SQL Utility for Java into an Oracle DB". I am having
    problems running the oraclexmlsqlload.csh. It seems to run
    @xmlgenpkg.sql without errors; however, the
    @oraclexmlsqltest.sql produces the following error:
    ERROR at line 1
    class OracleXMLStore does not exist
    at SCOTT.XMLGEN line 32
    at line 38
    class OracleXMLStore does not exist
    Here is my .cshrc file
    # @(#)cshrc 1.11 89/11/29 SMI
    umask 022
    set path=( /bin /usr/bin /usr/ucb /etc /usr/openwin/bin
    /usr/local/bin /usr/sbin /usr/ccs/bin .)
    if ( $?prompt ) then
    set history=32
    endif
    #setenv ORACLE_HOME /usr/oracle-home
    setenv ORACLE_BASE /usr/oracle
    setenv ORACLE_HOME /usr/oracle/8.1.5
    set path = ( $path $ORACLE_HOME/bin )
    #setenv PATH $PATH:$ORACLE_HOME/bin:/usr/openwin/bin:/usr/sbin
    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
    setenv ORACLE_SID p
    setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
    setenv PD $ORACLE_HOME/OracleXSU
    setenv CLASSPATHJ $ORACLE_HOME/jdbc/lib/classes111.zip
    setenv XMLSQL_DIR $PD/lib/oraclexmlsql.jar:$PD
    setenv ORACLE_PARSER $PD/lib/xmlparser.jar
    setenv JDK_HOME /usr/java1.1
    set CLASSPATH = ($ORACLE_PARSER $CLASSPATHJ $JDK_HOME
    $XMLSQL_DIR)
    setenv TNS_ADMIN $ORACLE_HOME/network/admin
    setenv ORACLE_TERM sun5
    echo 'Running .cshrc...'
    alias ls ls -F
    null

    Oracle XML Team,
    After running the initjvm script and re-executing
    oraclexmlsqlload, no errors occurred. Also, the sample java
    files which come with the kit worked correctly. Thanks for all
    the help that you have provided. The support was fantastic!
    Oracle XML Team wrote:
    : Hello Ron,
    : It sounds more and more like your db is not java enabled. To
    : java enable it connect to it using server manager as internal
    and
    : then run the initjvm script (goto javavm/install directory and
    : you should see the initjvm script). The other option which
    would
    : make life easier is for you to contact your dba. Let me know
    how
    : things go.
    : Ron Newby (guest) wrote:
    : : Ahhhh, executing the script with csh started several
    loading...
    : : and creating... commands; however, an error did occur:
    : : Creating xmlparser _2.0.0.1.0_beta
    : : Error creating xmlparser _2.0.0.1.0_beta
    : : ORA-29547 Java system class not available
    : : oracle/aurora/rdbms/Compiler
    : : After this error, several "ORA-29534 referenced object...
    could
    : : not be resolved" errors occured.
    : : Oracle XML Team wrote:
    : : : Your db might be already java initialized (if not, please
    : : look
    : : : at your documentation on how to do this). One problem that
    I
    : : did
    : : : notice is that you are trying to execute a csh script in
    sh.
    : : : Please try
    : : : $ csh oraclexmlsqlload.csh
    : : : or
    : : : $ tcsh oraclexmlsqlload.csh
    : : : Let me know the outcome.
    : : : Ron Newby (guest) wrote:
    : : : : After a closer look at the output from running
    : : : oraclexmlsqlload,
    : : : : it doesn't look like the loadjava worked correctly. We
    are
    : : : : running Oracle 8.1.5. What is required to make the db
    java
    : : : : enabled? I have run the examples using the thin driver
    : which
    : : : : worked correctly. Below are the results of running
    : : : : oraclexmlsqlload.csh.
    : : : : $ sh oraclexmlsqlload.csh
    : : : : Loading jar files...
    : : : : Loading xmlparser...
    : : : : loadjava: Usage: loadjava [-user user/password@database]
    : : [-oci8
    : : : |
    : : : : -thin] [-help]
    : : : : [-verbose] [-resolve] [-andresolve] [-force] [-synonym]
    : : : : [-definer] [-resolver r
    : : : : esolver] [-grant user,user...] [-schema schema] [-debug]
    : : : : [-oracleresolver] class
    : : : : es..jars..resources..properties...
    : : : : Loading oraclexmlsql.jar...
    : : : : loadjava: Usage: loadjava [-user user/password@database]
    : : [-oci8
    : : : |
    : : : : -thin] [-help]
    : : : : [-verbose] [-resolve] [-andresolve] [-force] [-synonym]
    : : : : [-definer] [-resolver r
    : : : : esolver] [-grant user,user...] [-schema schema] [-debug]
    : : : : [-oracleresolver] class
    : : : : es..jars..resources..properties...
    : : : : Cleaning up...
    : : : : dropjava: Usage: dropjava [-user user/password@database]
    : : [-oci8
    : : : |
    : : : : -thin] [-help]
    : : : : [-verbose] [-schema schema] [-debug]
    : : : : classes..jars..resources..properties...
    : : : : Completed loading classes
    : : : : Creating functions...
    : : : : SQL*Plus: Release 8.1.5.0.0 - Production on Fri Nov 26
    : : 10:03:37
    : : : : 1999
    : : : : (c) Copyright 1999 Oracle Corporation. All rights
    : reserved.
    : : : : Enter password:
    : : : : Oracle XML Team wrote:
    : : : : : Hi Ron.
    : : : : : Before creating the xmlgen pkg, oraclexmlsqlload.csh
    : : tries
    : : : to
    : : : : : load the oracle xml parser and the oraclexmlsql.jar
    into
    : : your
    : : : : db
    : : : : : (i.e. it does a "loadjava..."). Is that part finishing
    : : : : properly?
    : : : : : Realize that to be able to run the utility within the
    : db
    : : : you
    : : : : : need to have at least Oracle 8.1.5 and have it java
    : : enabled.
    : : : : If
    : : : : : you don't have this you can always run the utility as a
    : : : client
    : : : : : connecting via the Oracle JDBC1.22 compliant drivers.
    : : : : : Ron Newby (guest) wrote:
    : : : : : : I am stepping thru the release notes for the "Oracle
    : XML
    : : : SQL
    : : : : : : Utility for Java". I have incorporated the env.csh
    : into
    : : my
    : : : : : : .cshrc file as shown below. I am currently trying to
    : : "Load
    : : : : the
    : : : : : : Oracle XML SQL Utility for Java into an Oracle DB".
    I
    : am
    : : : : : having
    : : : : : : problems running the oraclexmlsqlload.csh. It seems
    to
    : : run
    : : : : : : @xmlgenpkg.sql without errors; however, the
    : : : : : : @oraclexmlsqltest.sql produces the following error:
    : : : : : : ERROR at line 1
    : : : : : : class OracleXMLStore does not exist
    : : : : : : at SCOTT.XMLGEN line 32
    : : : : : : at line 38
    : : : : : : class OracleXMLStore does not exist
    : : : : : : Here is my .cshrc file
    : : : : : : # @(#)cshrc 1.11 89/11/29 SMI
    : : : : : : umask 022
    : : : : : : set path=( /bin /usr/bin /usr/ucb /etc
    /usr/openwin/bin
    : : : : : : /usr/local/bin /usr/sbin /usr/ccs/bin .)
    : : : : : : if ( $?prompt ) then
    : : : : : : set history=32
    : : : : : : endif
    : : : : : : #setenv ORACLE_HOME /usr/oracle-home
    : : : : : : setenv ORACLE_BASE /usr/oracle
    : : : : : : setenv ORACLE_HOME /usr/oracle/8.1.5
    : : : : : : set path = ( $path $ORACLE_HOME/bin )
    : : : : : : #setenv PATH
    : : : : $PATH:$ORACLE_HOME/bin:/usr/openwin/bin:/usr/sbin
    : : : : : : setenv LD_LIBRARY_PATH $ORACLE_HOME/lib
    : : : : : : setenv ORACLE_SID p
    : : : : : : setenv ORA_NLS33 $ORACLE_HOME/ocommon/nls/admin/data
    : : : : : : setenv PD $ORACLE_HOME/OracleXSU
    : : : : : : setenv CLASSPATHJ
    $ORACLE_HOME/jdbc/lib/classes111.zip
    : : : : : : setenv XMLSQL_DIR $PD/lib/oraclexmlsql.jar:$PD
    : : : : : : setenv ORACLE_PARSER $PD/lib/xmlparser.jar
    : : : : : : setenv JDK_HOME /usr/java1.1
    : : : : : : set CLASSPATH = ($ORACLE_PARSER $CLASSPATHJ $JDK_HOME
    : : : : : : $XMLSQL_DIR)
    : : : : : : setenv TNS_ADMIN $ORACLE_HOME/network/admin
    : : : : : : setenv ORACLE_TERM sun5
    : : : : : : echo 'Running .cshrc...'
    : : : : : : alias ls ls -F
    : : : : : Oracle Technology Network
    : : : : : http://technet.oracle.com
    : : : Oracle Technology Network
    : : : http://technet.oracle.com
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Unable to load Oracle XML SQL utility

    The following error appears for each java
    class, when we attempt to load Oracle XML sql
    utility into Oracle using the oraclexmlsqlload
    script:
    E.g.
    Error while resolving class OracleXMLStore
    ORA-00904: invalid column name
    Does anyone know why we would receive this error?
    Platform: Hp-UX 11.0
    Oracle Version: 8.1.5.0
    Background information:
    The database was original created with the
    compatible=8.0.5 set in the init.ora file, and
    the creatation of java classes failed due to this,
    so switched compatible to 8.1.0. Now after we
    we adjusted the compatible setting and restarted
    database, we started to receive the errors as
    described above.
    null

    Murali,
    Thank you, after I initialized Oracle's javavm
    the errors disappeared.
    The scripts were located under the javavm/install
    directory.
    Thanks again.
    Murali K (guest) wrote:
    : Hi Steven,
    : Is the JavaVM loaded. i.e. are all the classes necessary for
    : running Java in the server are loaded into the server? The
    most
    : common answer to your problem is that the javavm has not been
    : initialized correctly or the database does not have all the
    java
    : library files necessary to load java programs.
    : Please read chapter 4 in the Oracle8i java developers guide
    : which talks about initializing a java-enabled database by
    : running the initjvm script.
    : If this still occurs then maybe it is a bug and we will have
    to
    : look at it.
    : Thx
    : Murali
    : Steven Wegner (guest) wrote:
    : : The following error appears for each java
    : : class, when we attempt to load Oracle XML sql
    : : utility into Oracle using the oraclexmlsqlload
    : : script:
    : : E.g.
    : : Error while resolving class OracleXMLStore
    : : ORA-00904: invalid column name
    : : Does anyone know why we would receive this error?
    : : Platform: Hp-UX 11.0
    : : Oracle Version: 8.1.5.0
    : : Background information:
    : : The database was original created with the
    : : compatible=8.0.5 set in the init.ora file, and
    : : the creatation of java classes failed due to this,
    : : so switched compatible to 8.1.0. Now after we
    : : we adjusted the compatible setting and restarted
    : : database, we started to receive the errors as
    : : described above.
    null

  • How to get IDOC schema in XML

    Please tell me how to get an Idoc schema into XML from SAP.
    I want all the details of an Idoc, i.e Segments and fields in one file.
    Quick response will be appriciated.
    Thanks
    Kiran

    WE60 enter the IDoc type then menu path Documentation->XML Schema. This may depend on what version of SAP you are on.

  • Inserting a row in a schema-based xml type column

    i have problems while inserting a row in a schema-based xml type column
    it reports an error(schema and elemnt do not match)
    although they are matching if anyone can try it
    and if it worked plz send me the example

    SQL> DESC XML_TAB;
    Name Null? Type
    XML XMLTYPE
    SQL> INSERT INTO XML_TAB
    2 VALUES
    3 (xmltype('<request>
    4 <filter>(extshortname=bhagat)</filter>
    5 <attributes>dn</attributes>
    6 <context/>
    7 <scope>subtree</scope>
    8 </request>'));
    1 row created.
    If your problem persists,post ur lines of code..
    Good luck!!!
    Bhagat

  • What is the best way to create a database schema from XML

    What is the best way to create a database schema from XML?
    i have  a complex XML file that I want to create a database from and consistently import new XML files of the same schema type. Currently I have started off by mapping the XSD into Excel and using Mysql for Excel to push into MySQL.
    There must be a more .net microsoft solution for this but I cannot locate the topic and tools by searching. What are the best tools and way to manage this?
    Taking my C# further

    Hi Saythj,
    When mentioning "a database schema from XML", do you mean the
    XML Schema Collections? If that is what you mean, when trying to import XML files of the same schema type, you may take the below approach.
    Create an XML Schema Collection basing on your complex XML, you can find
    many generating tools online to do that.
    Create a Table with the above created schema typed XML column as below.
    CREATE TABLE youTable( Col1 int, Col2 xml (yourXMLSchemaCollection))
    Load your XML files and try to insert the xml content into the table above from C# or some other approaches. The XMLs that can't pass the validation fail inserting into that table.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • XML diff and merge - free lib?

    I'm using my own XML communication protocol and got a problem. I transfer a configuration with this protocol, and the config can grow very large. So I want to create a diff of old/new configuration an transfer only this diff. On the receiver side the last received config should be patched with the diff.
    I'm using JDOM.
    Is there a free lib for XML diff and merge/patch available? I already googled for it but found only a commercial lib.
    Thanks in advance

    I like ExamDiff for Windows. It was free last time I downloaded it, but I haven't looked in a while.
    I don't know of any good merge tools, streamy. I'll have to crib what comes back from others.
    %

  • Help Needed -- Oracle XML/SQL utility and PL/SQL parser

    Let's say we have an xml file
    <?xml version="1.0" standalone="no"?>
    <abc>
    <def>
    <ghi>test</ghi>
    </def>
    <jkl>
    <mno>testing</mno>
    </jkl>
    </abc>
    We can store the <def> tag in one table say def and <jkl> tag in another table say jkl.
    Is there a way to combine def and jkl and insert in one table so that there in one row with two columns test and testing??
    null

    Hi,
    Are u sure that it is a java enabled database? The most common
    case of failure with the xmlgen package is because the loadjava
    command did not succeed.
    Please make sure that oraclexmlsqlload.bat file loaded all the
    java procedures successfully. If not then u would have to java-
    enable your database by running the initjvm script. (please see
    the docs).
    Thx
    Murali
    Iveta Vojtko (guest) wrote:
    : Hi,
    : I have downloaded XML SQL Utility for Java against Oracle
    8.0.5
    : on WindowsNT. The xmlgen package was created successfully but
    : its body is invalid and my PL/SQL test has failed because of
    : following error: PLS-00103: Encountered the symbol "NAME"
    : when expecting one of the following: := . ( @ % ; not null
    range
    : renames default character. The symbol ":= was inserted abefore
    : "NAME" to continue.
    : Is it because I am not using Oracle8i? I just want to use the
    : server side of XML SQL. Please, reply asap. Thank you.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Java.lang.NoSuchMethodError: com.sun.xml.ws.util.JAXWSUtils.getEncodedURL(Ljava/lang/String;)Ljava/net/URL;

    java.lang.NoSuchMethodError: com.sun.xml.ws.util.JAXWSUtils.getEncodedURL(Ljava/lang/String;)Ljava/net/URL.
    Gettin exception while trying to execute clientGen from build.xml from eclipse using Oracle weblogic 10.3 server.
    I tried with both jars jaxws-rt-2.1.4 and jaxws-rt-2.1.3
    Regards,
    Manish

    along with wlfullclient.jar please add wseeclient.jar
    Copy the file WL_HOME/server/lib/wseeclient.zip from the computer hosting WebLogic Server to the client computer( where WL_HOME refers to the WebLogic Server installation directory, such as /Oracle/Middleware/wlserver_12.1)
    Unzip the wseeclient.zip file into the appropriate directory. For example, you might unzip the file into a directory that contains other classes used by your client application.
    Add the wseeclient.jar file (unzipped from the wseeclient.zip file) to your CLASSPATH.
    Note:
    Also be sure that your CLASSPATH includes the JAR file that contains the Ant classes (ant.jar). This JAR file is typically located in the lib directory of the Ant distribution.
    http://docs.oracle.com/cd/E24329_01/web.1211/e24967/client.htm#WSRPC214
    Regards,
    Sunil P

  • Oracle 8i Lite and XML SQL Utility

    Can I use XML SQL Utility with Oracle 8i Lite
    using the Oracle 8i Lite Driver
    null

    There will be an version of the XML SQL Utility appearing here shortly. In the meantime you can download the current version of the XSQL Servlet which has the new v2 compatible oraclexmlsql.jar.
    Oracle XML Team

Maybe you are looking for