XML schema questions

Question 1:

If I have a number to more than one relationship I want to display in more than one table.  Is there a simple way to link that?

An example would be a car that use similar elements (seats, etc.).  I do not think that livecycle supports keys

So the XML looks like

< orderCatalog >

< car >

Auto1 < modelNumber > < / modelNumber >

... year, etc.

< / automotive >

< part >

part1 < partNo > < / partNo >

< / part >

< joinAutoPart >

Auto1 < modelNumber > < / modelNumber >

part1 < partNo > < / partNo >

< / joinAutoPart >

< / orderCatalog >

I want to report it to

Subform pointing to joinAutoPart

Header field pointing to the automobile (with name and model number)

Table with information pointing to partNo (with partName and partNo and price)

This way, I would have one table per car with all of the items listed

Question 2:

Drive to load a XML on the internet by pressing a button of loadXML does

Question 3: no xml related

Is there a way to save a link to a row in the table to a different line of table

Using the example above, if I had several tables auto with several parties.  The user selects a part I add to a table of orders.

I would like to highlight this field showing that they have ordered the part and gray on the button.

However, if they remove the item from the order, I would like to add back without having to search all the fields in each table to find the part number.

Q1 - Yes when XML is loaded into the form it goes in a node called xfa.datasets.data. You can also load your own in your own region, so it is not inconsistent with what the (highly recommended) form. There is a set of full of functions to deal with the dom or you can create an E4X object in javascript and use the E4X standard tools to manipulate.

Q2 - depends on how build you. Case of failure, the SOAP call expire and you can not stop it and report accordingly. Then you can continue in the form without that data (if you allow).

Paul

Tags: Adobe LiveCycle

Similar Questions

  • How to read the data with different XML schemas within the unique connection?

    • I have Oracle database 11g
    • I access it via JDBC: Slim, version 11.2.0.3, same as xdb.
    • I have several tables, each has an XMLType column, all based on patterns.
    • There are three XML schemas different registered in the DB
    • Maybe I need to read the XML data in multiple tables.
    • If all the XMLTypes have the same XML schema, there is no problem,
    • If patterns are different, the second reading will throw BindXMLException.
    • If I reset the connection between the readings of the XMLType column with different schemas, it works.

    The question is: How can I configure the driver, or the connection to be able to read the data with different XML schemas without resetting the connection (which is expensive).

    Code to get data from XMLType is the implementation of case study:

     1   ResultSet resultSet = statement.executeQuery( sql ) ; 
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as BLOB. Like this:

     1    final Statement statement = connection.createStatement() ;  2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;  3   ResultSet resultSet = statement.executeQuery( sql ) ;  4   String result = null ;  5    while(resultSet.next()) {  6   Blob blob = resultSet.getBlob( 1 );  7   InputStream inputStream = blob.getBinaryStream();  8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();  9   inputStream.close(); 10   blob.free(); 11   } 12   resultSet.close(); 13   statement.close(); 14  15   System.out.println( result ); 16    return result ; 17
    

    Then it works. Still, can't get it work with XMLType in resultset. On the customer XML unwrapping explodes trying to pass to another XML schema. JDBC/XDB problem?

  • Registering XML Schema error

    Hi team,

    The purpose of the mail of my project is to load data from the file in tables Oracle XML stream. I did it following the steps went perfectly well...

    I did following steps.

    (1) create the DIRECTORY xml_dir as 'c:\xmldata ';

    (2) create table xmltab XMLType;

    (3) following packages are carried out by schema 'Sys '.

    (1) dbmslob. SQL;
    (2) prvtlob. PLB;

    (4) a xmldata folder is created under "c:\". "and with data_file.xml file is stored in it.

    5) insert in xmltab values (XMLType (bfilename ('XML_DIR', 'data_file.xml'), nls_charset_id ('AL32UTF8')));

    When I try to run following select statement "No. lines selected" message; Although there is an element in the xml data file.

    SELECT OBJECT_VALUE
    FROM xmltab
    WHERE existsNode (OBJECT_VALUE, ' / ConsolidatedAssetHeader [AssetSourceSystem = "CAPS"]') = 1


    Now, I think that in order to use all functions like existsNode and exctractValue I have to save the schema in DB.

    This is the XML schema file.

    "< xsd: Schema targetNamespace =" "schemas-dart - com:sql:ConsolidatedAssetHeader" xmlns:schema = "schemas-dart - com:sql:ConsolidatedAssetHeader" container = "http://www.w3.org/2001/XMLSchema" xmlns:sqltypes = "http://schemas.microsoft.com/sqlserver/2004/sqltypes" elementFormDefault = "qualified" >
    < xsd: import namespace = "http://schemas.microsoft.com/sqlserver/2004/sqltypes" schemaLocation = "http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd" / >
    -< xsd: element name = "ConsolidatedAssetHeader" >
    -< xsd: complexType >
    -< xsd: SEQUENCE >
    < xsd: element name = "InternalId" type = "sqltypes:int" / >
    -< xsd: element name = "DCN" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "30" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "EventDateLastChanged" type = "SqlTypes: DateTime" minOccurs = "0" / >
    -< xsd: element name = "FinancialStatusIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "InScopeIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationPriorityIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "PhysicalInstallDate" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetComment" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "255" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetContractExtension" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetContractNumber" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetDescription" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "AssetFinancialInstallDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    < xsd: element name = "AssetFinancialRemovalDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    -< xsd: element name = "AssetFinancialStatus" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetName" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "255" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetParentSource" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetParentSourceID" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "AssetPhysicalInstallDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    < xsd: element name = "AssetPhysicalRemovalDate" type = "SqlTypes: DateTime" minOccurs = "0" / >
    -< xsd: element name = "AssetPhysicalStatus" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetPhysicalStatusIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSerialIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSerialNumber" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSource" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceID" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceSystem" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceType" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetTag" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "BillabilityIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "InScopeFlag" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "IP address" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "NetworkNumber" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "SubnetAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: ELEMENT ref = "Schema: ConsolidatedAssetLocation" minOccurs = "0" maxOccurs = "unbounded" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    + < xsd: element name = "ConsolidatedAssetLocation" >
    -< xsd: complexType >
    -< xsd: SEQUENCE >
    < xsd: element name = "InternalId" type = "sqltypes:int" minOccurs = "0" / >
    < xsd: element name = "ParentId" type = "sqltypes:int" minOccurs = "0" / >
    -< xsd: element name = "AssetLocationIDBillTo" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetLocationIDShipTo" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetLocationIDSoldTo" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceIDDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "AssetSourceSystemDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "ContractNumberExtensionDt" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddressLine2" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddressLine3" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToCity" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToCountry" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToAddressLine4" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToState" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationBillToZip" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationPriorityIndicator" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddressLine2" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddressLine3" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToAddressLine4" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToCity" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToCountry" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToState" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationShipToZip" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddress" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddressLine2" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddressLine3" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToAddressLine4" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "150" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToCity" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToCountry" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToState" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "LocationSoldToZip" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "PartySource" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    -< xsd: element name = "PartySourceID" minOccurs = "0" >
    -< xsd:simpleType >
    -xsd:restriction base = "sqltypes:nvarchar" sqltypes:localeId = "1033" sqltypes:sqlCompareOptions = "IgnoreCase IgnoreKanaType IgnoreWidth" sqltypes:sqlSortId = "52" >
    < xsd:maxLength value = "50" / >
    < / xsd:restriction >
    < / xsd:simpleType >
    < / xsd: element >
    < xsd: element name = "RowCreateDateTime" type = "SqlTypes: DateTime" minOccurs = "0" / >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: element >
    < / xsd: Schema >

    I use the suite package registry scheme, which is in error

    BEGIN
    () DBMS_XMLSCHEMA.registerSchema
    "schemas-dart - com:sql:ConsolidatedAssetHeader',
    XDBURIType('http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd').getClob(),
    TRUE,
    TRUE,
    FAKE,
    (TRUE);
    END;

    Following error.

    BEGIN
    ERROR on line 1:
    ORA-31001: handle or path of the invalid resource name
    'http://schemas.microsoft.com/sqlserver/2004/sqltypes/sqltypes.xsd '.
    ORA-06512: at "SYS." XDBURITYPE", line 4
    ORA-06512: at line 2


    Can you please tell me what changes should I do to fix this error? Is there any specific location where should I put my schema file?
    Thanks in advance

    Murielle

    OK, finally, the missing piece of the puzzle! :)

    You do not actually use the schema that you have a hard time to register.
    Besides, only a fragment of the example document "temp.xml" conforms to the schema.

    So we're back to what said in the very first posts of this thread: question of the namespace, and also (now) incorrect XPath expressions.

    Try below example (no necessary schema):

    SQL> CREATE TABLE test_table OF XMLTYPE
      2  XMLTYPE STORE AS SECUREFILE BINARY XML;
    
    Table created
    
    SQL>
    SQL> INSERT INTO test_table
      2  VALUES(
      3   XMLType(bfilename('TEST_DIR','temp.xml'), nls_charset_id('AL32UTF16'))
      4  );
    
    1 row inserted
    
    SQL>
    SQL> SELECT x.*
      2  FROM test_table t,
      3       XMLTable(
      4        XMLNamespaces(default 'http://BAROutboundXML'),
      5        '/BAROutboundXML/Row/ConsolidatedAssetHeader'
      6        passing t.object_value
      7        columns InternalId number path 'InternalId',
      8                DCN        number path 'DCN'
      9       ) x
     10  WHERE x.InternalId = 1275
     11  ;
    
    INTERNALID        DCN
    ---------- ----------
          1275    1111111
     
    

    Since there are several elements of "ConsolidatedAssetHeader" by the document, you cannot use extractValue (because it works on a single node).
    XMLTable is used instead, so that each "ConsolidatedAssetHeader" is actually mapped to a line separated from the relational.

  • Status of XML schema

    Hello

    Setup

    I nested XSD schemas:

    1. a XSD library, which contains definitions for common objects
    2. a work-XSD, which includes the XSD library and describes the business objects.

    = > Work-XSD has a dependency to the XSD library

    = > Deletion of 'objects' in the library-XSD or even remove the XSD library could / should lead to a work not valid-XSD (I guess...)

    Oracle

    I found in the DBMS_XMLSCHEMA package:
    DBMS_XMLSCHEMA.COMPILESCHEMA:
    
    Used to re-compile an already registered XML schema. This is useful for bringing a schema in an invalid state to a valid state.
    = > So there is something like a 'status of XML schema '.

    Question

    Where can I find the "State of an XML schema. ?

    The USER_XML_SCHEMAS - view does not contain any status or something like that

    XML schemas are not present in the "USER_OBJECTS" - see (where a State is present)

    Thanks in advance

    Good bye

    Stefan

    Try this

    select *
    from all_xml_schemas ax
         , all_objects ao
    where ax.int_objname=ao.object_name;
    
  • SQL and XML Schema

    I hope this is the right forum to post. I was wondering if there is any good tutorials or books on SQL in XML format?
    Basically, I need to interrogate the accounts of North Carolina who received a document given in the past day. This is a very easy task to do, in SQL, however, the State of North Carolina wants us to share our findings in a specific XML schema using nodes.

    Fortunately, I have the pattern that was given by the State of NC but don't know how to get my application to fit in the XML schema. I was wondering in a beginners perspective.

    Sorry for the newbie questions.

    The [DB XML Forum | http://forums.oracle.com/forums/thread.jspa?threadID=410714&tstart=0] is a good starting point.

  • Select in the XML schema

    I hope this is the right forum to post. I was wondering if there is any good tutorials or books on SQL in XML format?
    Basically, I need to interrogate the accounts of North Carolina who received a document given in the past day. This is a very easy task to do, in SQL, however, the State of North Carolina wants us to share our findings in a specific XML schema using nodes.

    Fortunately, I have the pattern that was given by the State of NC but don't know how to get my application to fit in the XML schema. I was wondering in a beginners perspective.

    Sorry for the newbie questions.

    Don't know if you're aware of this, or if it does not meet your definition of "user friendly".
    http://www.Oracle.com/technology/documentation/index.html

    Also fly over the intro or first chapter for the DB XML (research in your appropriate version) can be a good thing to do.

    I'm not sure what your analyst is trying to say. In the example I've provided, root and the neck are nodes in the XML document. Most of the things in XML are nodes.

  • How to create a file a BI Publisher xml schema xsd?

    Helllo.

    I hope that this is a really stupid question for someone...

    How to create an xsd file to use as an xml schema attached to a definition of data generated by Ive? I have obv. got xml and rtf ready and attached files. I've looked through the relevant documentation (that of the Designer reports XML Publisher Guide.pdf & Guide.pdf Administration XML editor and developer), but can not find the place where...

    Once this was done so that I can run the model through ORACLE Financials for reports that I converted.

    Thank you very much...

    Steven

    I don't think you have to have a XSD is an optional field. If you really want to create a single use of this site: http://www.hitsw.com/xml_utilites/

    I believe I have answered your question, don't forget to give me points.

    IKE Wiggins
    http://bipublisher.blogspot.com

  • Access to the XML schemas from the connection manager?

    The connection manager for a connection opened in version 4 is no longer an 'XML Schémas' icon (Java and XML patterns seem to have been deleted between versions 3 and 4). Is there a definition that can return the XML schemas?

    Using lists yet... »

    XML schemas

    XML schemas are definitions of schema, written in XML, that describe the structure and various other semantics of XML instance documents. For conceptual and information on the use of XML schemas, see the Guide of Oracle XML DB Developer in the Oracle database documentation library.

    You can change an XML schema by right clicking in the connections Navigator XML schema name and selecting open from the menu. You can delete a selected schema by selecting the Drop Schema menu. » ...

    The XML node drawings missing in the connections Navigator is a known issue for the 4.0.1.  The 4.0.2 patch is a fix.

    Regarding the Java node, it seems to me in all versions 4.0.x.  Maybe your Preferences... > Database > Navigation filter turned it off?

    Kind regards
    Gary

    SQL development team

  • How to create the default column in XML schema?

    Hi all

    I would like to define a default column Let's say Run_Date as Date data type in XML (XSD) schema definition and would fill column Run_Date SYSDATE, when XML documents are parsed to this schema.
    Let me know, how can we achieve?

    Thanks in advance.

    Also, I can not change the contents of the XML file, because it is generated by another language, but I can change the definition of XML schema, if necessary.

    Well, if you can not change the XML instance, you cannot change the schema, it conforms to the.
    You can add an optional attribute whose value by default, but we can only use a static value.

    How do you insert the file into the table?

  • If you programmatically, via an INSERT statement, then I think your best bet is to create a new table with a relational schema XMLType column and a DATE column:

    CREATE TABLE employees (
      dt_created date default sysdate not null
    , xmldoc     xmltype
    , CONSTRAINT emp_pk PRIMARY KEY (xmldoc."XMLDATA".EMP_NO)
    )
    XMLTYPE COLUMN xmldoc STORE AS OBJECT RELATIONAL
    XMLSCHEMA "EMP.xsd" ELEMENT "Emp" ;
    

    If you choose to do so, remove the XML schema and enter it again with "genTables-online false."

  • If you have inserted the file via the XDB (FTP, WebDAV, createResource) repository and relying on the table by default feature, then you may be out of luck.
    There is probably a way to tamper with the underlying structure of GOLD among a hidden column do accept a default value, but since it is not supported I won't even try.

  • XML schema to generate data from the table of data from a repeating subform

    Hi all, I would like to have a check box that when checked, allows you to hide a quote form and make a purchase order form visible, carrying a part of the field of the form of citation data in a new table on the order form. I have attached to this form to https://workspaces.acrobat.com/?d=pqpsXx5VPi * LkMeVKrX57w if you want to take a look. If the check box is cleared, he hid the PO form and to make quite visible.

    The idea behind this is that my client will create his quote and send t to his client. Once the customer accepts the quote, he simply click a button to generate its purchase order send it to its supplier.

    It seems that I have buttons to add lines on the submission form that the problem is more complex. I would be able to do it myself if the table has a fixed number of lines and I was able to use global fields, and naming each cell something different, but because it's a single repeating subform, I can't operate at all.

    I understand that, because it's a repeating subform that I need to create an XML schema to do this, but also can not know for the life of me how to create the schema. I read tons of tutorials, but no idea how to apply it to my specific needs. I've been able to find only info on how to bind the data source once it's been created.

    I would be eternally grateful if someone could help out me.

    Thank you!

    I edited your form and put it here.

    Here's what I did:

    • Script inserted into your box renamed someone who mask/displays the purchase order / sales quotation
    • I have included a script object with a function I wrote to transfer data from as named fields/subforms from one section to another
    • Inserted a few fields in your table of purchase order

    What you need to do is to complete the development of your purchase order table. Make sure that the common fields between the quote and purchase tables have the same name in order to transfer data.

    No necessary schema.

    Kyle

  • In the Studio of BEA WorkSpace XML schema Validation error

    When I validate my XML schemas through the BEA WorkSpace Studio Version: version 1.1: 1090602 identifier the track happens error:

    Reference file contains errors (file:/MyPath/MyXMLSchema1.xsd).
    For more information, click with the right button on the message and select "show details...". »

    See details:
    The below errors were detected during the validation of the 'MyXMLSchema1.xsd' file via the file 'MyXMLSchema2.xsd '.
    In most cases, these errors can be detected by validating 'MyXMLSchema1.xsd' directly.
    However, it is possible that errors occur only when MyXMLSchema1.xsd is posted under MyXMLSchema2.xsd.

    CBC-resolve: could not resolve the name 'srv:Services' component 'type definition' a (e)

    When I validate my XML schemas through the oepe_11gR1PS4 (Eclipse platform Version: 3.6.2 Build id: M20110210-1200) no errors not found.

    My project is a (project ALSB) OSB.

    What is happen?

    BEA WorkSpace Studio Version: version 1.1: 1090602 identifier use xerces bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org.apache.xerces_2.8.0.v200606131651

    oepe_11gR1PS4 (Eclipse platform Version: 3.6.2 Build id: M20110210-1200) use xerces Oracle\Middleware_10.3.5\oepe_11gR1PS4\plugins\org.apache.xerces_2.9.0.v201005080400.jar

    If you replace the follow-up files:
    bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\resolver.jar
    bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\xercesImpl.jar
    bea\alsb3.0\tools\eclipse_pkgs\1.1\eclipse_3.2.2\eclipse\plugins\org. Apache.xerces_2.8.0.v200606131651\xml-APIs.jar

    for:
    Oracle\Middleware_10.3.5\oepe_11gR1PS4\plugins\org. Apache.xerces_2.9.0.v201005080400.jar

    BEA WorkSpace Studio Version: version 1.1: 1090602 identifier is validated without errors (the same oepe_11gR1PS4 behavior)

  • XDB annotations on complex XML schema

    I'm testing this 11 GR 2 Express, while I wait for our DBA upgrade our main instance of AIX dev to GR 11, 2 enterprise edition.

    I have a fairly complex xmlschema, provided by the IPTC and trying to annotate to replace some of the mappings by default sqltype, but running to problems with how/where to annotate.

    Of what I have learned so far, annotations to replace possible sqltype only mappings on complexType and simpleTypes. ComplexTypes must correspond to a sql object type and simpleTypes map based sqlType atomic.

    How might you have an instance where a complex type extends a XS: String... but the need to have this channel map to a CLOB and not a varchar2 (4000)?
    <xs:element name="inlineData">
                                                      <xs:annotation>
                                                           <xs:documentation>A rendition of the content using plain-text or encoded inline data</xs:documentation>
                                                      </xs:annotation>
                                                      <xs:complexType>
                                                           <xs:simpleContent>
                                                                <xs:extension base="xs:string">
                                                                     <xs:attributeGroup ref="newsContentAttributes" />
                                                                     <xs:attributeGroup ref="newsContentTypeAttributes" />
                                                                     <xs:attribute name="encoding" type="QCodeType">
                                                                          <xs:annotation>
                                                                               <xs:documentation>The encoding applied to the content before inclusion</xs:documentation>
                                                                          </xs:annotation>
                                                                     </xs:attribute>
                                                                     <xs:attributeGroup ref="newsContentCharacteristics" />
                                                                     <xs:attributeGroup ref="i18nAttributes" />
                                                                     <xs:anyAttribute namespace="##other" processContents="lax" />
                                                                </xs:extension>
                                                           </xs:simpleContent>
                                                      </xs:complexType>
                                                 </xs:element>
    Adding the xdb: annotation of mapUnboundedStringToLob to the item "inlineData" fails... invalid... and it cannot add to the extension is... If a viable option of valid in this case, would be to create a simpleType, call it say "LargeStringToClob" with a restriction of the type xs: String... and then annotate this simpleType to map to a CLOB.

    Then change the extension of the element inlineData of XS: String to 'LargeStringToClob '? I intend to use a column of XMLType BinaryXML storage...

    I was hoping not to have to change the xml schema too, but I guess its to be expected when you try to map in Oracle.

    I am facing a similar problem trying to annotate timestamp with time zone...

    some items are reported as unions of other types. What I've read, Oracle cards to varchar2 (4000)

    Example:
    <xs:simpleType name="DateOptTimeType">
              <xs:annotation>
                   <xs:documentation>The type of a date (required) and a time (optional).</xs:documentation>
              </xs:annotation>
              <xs:union memberTypes="xs:date xs:dateTime" />
         </xs:simpleType>
    Even if it is a simpleType. I can't annotate to map to a TimeStamp with time zone... I should again... simpleTypes to create for each of the memberTypes in the union, annotate each of them to the card at Timestampt with time zone... then use these new simpleTypes in the union?

    Thanks for tips or advice!

    so if you use binary XML, you are stuck with what Oracle gives you? for example, the inlineData element is a string without terminals in the schema... Oracle maps to varchar2 (4000).

    No, binary XML stores data differently.

    Consider this simple example:

    SQL> begin
      2   dbms_xmlschema.registerSchema(
      3   schemaURL => 'test.xsd',
      4   schemaDoc => '
      5  
      6  
      7    
      8      
      9        
     10        
     11      
     12    
     13  
     14  ',
     15   local => true,
     16   genTypes => false,
     17   genTables => false,
     18   enableHierarchy => dbms_xmlschema.ENABLE_HIERARCHY_NONE,
     19   options => dbms_xmlschema.REGISTER_BINARYXML
     20   );
     21  end;
     22  /
    
    PL/SQL procedure successfully completed
    
    SQL> CREATE TABLE notes_table OF XMLTYPE
      2  XMLTYPE STORE AS binary xml
      3  XMLSCHEMA "test.xsd"
      4  ELEMENT "note"
      5  ;
    
    Table created
    
    SQL> insert into notes_table values(xmltype(
      2  '
      3  '||lpad(to_clob('X'),8000,'X')||'
      4  
    2011-11-16T11:56:23+01:00
    5
    ')); 1 row inserted SQL> select x.dt 2 , x.content 3 , length(x.content) 4 from notes_table t 5 , xmltable('/note' passing t.object_value 6 columns dt timestamp with time zone path 'dt' 7 , content clob path 'content' 8 ) x 9 ; DT CONTENT LENGTH(X.CONTENT) --------------------------------- -------------------------------------------------------------------------------- ----------------- 16/11/11 11:56:23,000000 +01:00 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 8000

    No problem by storing large chains.

  • Cannot export XML schema objects

    Hello

    I have a problem when you attempt to export objects from XML schema.

    I have a data pump job that runs every day, last week, I added a few XML objects to the DB and now the data pump produces the following errors:

    Output

    Export: Release * 10.2.0.3.0 *-64 bit Production on Thursday, April 21, 2011 05:00:01

    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    ;;;
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With the options of partitioning and Data Mining
    Departure 'SYS '. "' SYS_EXPORT_FULL_05 ': ' / * AS SYSDBA" logfile = parallel export_full.log = 12 dumpfile=exp_file%U.dmp full = y filesize = 2000 M
    Current estimation using BLOCKS method...
    Treatment of DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA object type
    ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' application252_TAB ' will be ignored.
    ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' application263_TAB ' will be ignored.
    ORA-39139: data pump does not support the XMLSchema objects. TABLE_DATA: "USER01". "' tbl_form_data266_TAB ' will be ignored.
    Total estimation using BLOCKS method: 131.8 GB
    Object DATABASE_EXPORT/TABLESPACE of treatment type
    ...

    I read about the error ORA-39139
    It is said the old exp rather than the data pump user to export the XML schema objects

    But when I run

    exp file = my_dump.dmp tables = USER01.application252_TAB

    as / sysdba

    I get the following error:

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With the options of partitioning and Data Mining
    Export in US7ASCII and AL16UTF16 NCHAR character set
    Server uses the character WE8ISO8859P15 (possible character set conversion) set

    About to export specified tables by conventional means...
    EXP-00011: USER01. TBL_FORM_DATA266_TAB does not exist
    Export completed successfully with warnings.


    The table seems to have disappeared from DB.

    EG if I do

    sqlplus USER01/pass
    SQL > desc tbl_form_data266_TAB
    ERROR:
    ORA-04043: tbl_form_data266_TAB of the object does not exist

    Any ideas?

    G.

    Please see:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14215/exp_imp.htm#CEGFIAGE

    Table name restrictions

    The following restrictions apply to the names of the tables:

    * By default, the names of tables in a database are stored as uppercase. If you have a table in lowercase or lowercase name and you want to retain the respect of the case for the name of the table, you must put the name in quotes. The name must match exactly the name of the table stored in the database.
    Some operating systems require that the quotes on the command line should be preceded by an escape character. Here are examples of how respect for the case can be stored in different modes of export.

    o using the command line:
    TABLES = "------'Emp\'"

    o in interactive mode:
    Table (T) export: "Emp".

    o parameter file:
    TABLES = ""Emp"

  • Invalid XML schema model.

    Hello.
    We try to validate xml on an xml schema, and we saw a few inconsistencies. First, Oracle seems to take the model of data validation if the value of the node is empty. We can check that in the PL/SQL code. But he also refused to validate valid values.

    Example:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for HPUX: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    declare
        esquema clob := '<xs:schema attributeFormDefault="unqualified" 
        elementFormDefault="qualified" 
        xmlns:xs="http://www.w3.org/2001/XMLSchema" 
        targetNamespace="http://servicios.mycompany.com/Test" 
        xmlns="http://servicios.mycompany.com/Test">
        <xs:element name="node">
            <xs:complexType>
                <xs:sequence>
                    <xs:element name="inner1" type="regType" />
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        <xs:simpleType name="regType">
            <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:pattern value="((\-)?(([0-9])|([0-9][0-9])|([0-9][0-9][0-9]))(\.[0-9][0-9][0-9]){0,4},[0-9][0-9])" />
            </xs:restriction>
        </xs:simpleType>
    </xs:schema>';
    BEGIN   
        DBMS_XMLSCHEMA.DELETESCHEMA
                             ( 'schema.xsd'                                              
                             , DBMS_XMLSCHEMA.DELETE_INVALIDATE 
                             );          
       DBMS_XMLSCHEMA.REGISTERSCHEMA(
         SCHEMAURL => 'schema.xsd',
         SCHEMADOC => esquema,
         LOCAL     => TRUE,
         GENTYPES  => FALSE,
         GENBEAN   => FALSE,
         GENTABLES => FALSE,
         FORCE     => FALSE
         );
    END;
    /
    
    declare
      xmlT clob := '<?xml version="1.0" encoding="utf-8"?>
    <tns:node xmlns:tns="http://servicios.mycompany.com/Test" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         >
        <tns:inner1>75.000,00</tns:inner1>
    </tns:node>';
    xmlV xmltype;
    begin
        xmlv := xmltype.createXml(xmlT,'schema.xsd');
        xmlv.schemaValidate();
    end;
    /
    Any help?

    Thank you.

    Hello

    First, Oracle seems to take the model of data validation if the value of the node is empty. We can check that in the PL/SQL code. But he also refused to validate valid values.

    I changed the template string, logically equivalent, but it seems to work better.
    If you want to allow blank nodes, use minLength = 0 and make the model accepts it:

    
        
        
    
    
  • XML Schema

    Hello

    I use the suite of xml schema to generate an XMLType table,
    <?xml version="1.0" encoding="utf-16"?>
    <xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:element name="Attorney" type="AttorneyType"/>
       <xsd:complexType name="AttorneyType">
        <xsd:sequence>
          <xsd:element name="Metadata" type="MetadataType" />
          <xsd:element name="Address" type="AddressType" />
          <xsd:element name="Email" type="EmailType" />
          <xsd:element name="Fax" type="FaxType" />
          <xsd:element name="Internet" type="InternetType" />
          <xsd:element name="Name" type="NameType" />
          <xsd:element name="NarrativeText" type="xsd:string" />
          <xsd:element name="Phone" type="PhoneType" />
          <xsd:element name="PracticeArea" type="PracticeAreaType" />
          <xsd:element name="Source" type="SourceType" />
          <xsd:element name="WestProductCategory" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="active" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="SourceType">
        <xsd:sequence>
          <xsd:element name="Dataset" type="xsd:string" />
          <xsd:element name="SourceId" type="xsd:int" />
          <xsd:element name="SourceName" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
      <xsd:complexType name="PracticeAreaType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="PracticeAreaCode" type="xsd:int" />
          <xsd:element name="TopicalCode" type="xsd:int" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="PhoneType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Number" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="NameType">
        <xsd:sequence>
          <xsd:element name="firstName" type="xsd:string" />
          <xsd:element name="lastName" type="xsd:string" />
          <xsd:element name="middleName" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="InternetType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Url" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="FaxType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Number" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="EmailType">
        <xsd:sequence>
          <xsd:element name="Description" type="xsd:string" />
          <xsd:element name="Notes" type="xsd:string" />
          <xsd:element name="Url" type="xsd:string" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="AddressType">
        <xsd:sequence>
          <xsd:element name="City" type="xsd:string" />
          <xsd:element name="Country" type="xsd:string" />
          <xsd:element name="Line" type="xsd:string" />
          <xsd:element name="State" type="xsd:string" />
          <xsd:element name="Zip" type="xsd:int" />
        </xsd:sequence>
        <xsd:attribute name="new" type="xsd:boolean" />
      </xsd:complexType>
      <xsd:complexType name="MetadataType">
        <xsd:sequence>
          <xsd:element name="CreatedTS" type="xsd:decimal" />
          <xsd:element name="Deceased" type="xsd:boolean" />
          <xsd:element name="DirectoryType" type="xsd:int" />
          <xsd:element name="Disbarred" type="xsd:boolean" />
          <xsd:element name="EntityInstanceUuid" type="xsd:string" />
          <xsd:element name="EntityType" type="xsd:string" />
          <xsd:element name="FamilyUuid" type="xsd:string" />
          <xsd:element name="FirmSite" type="xsd:string" />
          <xsd:element name="ImageID" type="xsd:string" />
          <xsd:element name="MemberAssociations" type="xsd:string" />
          <xsd:element name="ModifiedBy" type="xsd:string" />
          <xsd:element name="ModifiedTS" type="xsd:decimal" />
          <xsd:element name="OrgType" type="xsd:string" />
          <xsd:element name="OrgUuids" type="xsd:string" />
          <xsd:element name="Organization" type="xsd:string" />
          <xsd:element name="Practicing" type="xsd:boolean" />
          <xsd:element name="ProfileUuid" type="xsd:string" />
          <xsd:element name="Retired" type="xsd:boolean" />
          <xsd:element name="Role" type="xsd:string" />
          <xsd:element name="Type" type="xsd:string" />
          <xsd:element name="Uuid" type="xsd:string" />
        </xsd:sequence>
      </xsd:complexType>
    </xsd:schema>
    Here is the XML that I intend to generate
    <Attorney active="true">
      <Metadata>
        <CreatedTS>1198773095000</CreatedTS>
        <Deceased>false</Deceased>
        <DirectoryType>1</DirectoryType>
        <Disbarred>false</Disbarred>
        <EntityInstanceUuid>
        I1ccc6d800cbb11dd86d5f687b7443f19</EntityInstanceUuid>
        <EntityType>ACTRESS</EntityType>
        <FamilyUuid>Ia5958e30ca6111d8b6ca908fe47590bb</FamilyUuid>
        <FirmSite></FirmSite>
        <ImageID></ImageID>
        <MemberAssociations></MemberAssociations>
        <ModifiedBy>Bermuda</ModifiedBy>
        <ModifiedTS>1208463367255</ModifiedTS>
        <OrgType></OrgType>
        <OrgUuids></OrgUuids>
        <Organization></Organization>
        <Practicing>true</Practicing>
        <ProfileUuid>I1e3bd97e1dd211b2af25f90092082940</ProfileUuid>
        <Retired>false</Retired>
        <Role>US Private Practice</Role>
        <Type>ATTORNEY</Type>
        <Uuid>I1ccc6d800cbb11dd86d5f687b7443f19</Uuid>
      </Metadata>
      <Address new="false">
        <City>California</City>
        <Country>United States of America</Country>
        <Line>100 Wall Street</Line>
        <State>CA</State>
        <Zip>10005</Zip>
      </Address>
      <Email new="false">
        <Description>Email Address</Description>
        <Notes>Email Address</Notes>
        <Url>[email protected]</Url>
      </Email>
      <Fax new="false">
        <Description>Fax Number</Description>
        <Notes>Fax Number</Notes>
        <Number>(212) 687-0659</Number>
      </Fax>
      <Internet new="false">
        <Description>Internet URL</Description>
        <Notes>Internet URL</Notes>
        <Url>http://www.harrisbeach.com</Url>
      </Internet>
      <Name new="false">
        <firstName>Katrina</firstName>
        <lastName>Kaif</lastName>
        <middleName>T</middleName>
      </Name>
      <NarrativeText>Katrina Kaif (born Katrina Turquotte on 16 July
      1984) is a British Indian actress and model who has appeared in
      Bollywood, Telugu and Malayalam films.</NarrativeText>
      <Phone new="false">
        <Description>Phone Number</Description>
        <Notes>Phone Number</Notes>
        <Number>(212) 313-5439</Number>
      </Phone>
      <PracticeArea new="false">
        <Description>Litigation Appeals</Description>
        <PracticeAreaCode>934</PracticeAreaCode>
        <TopicalCode>934</TopicalCode>
      </PracticeArea>
      <Source>
        <Dataset>release-5-old</Dataset>
        <SourceId>0337159902</SourceId>
        <SourceName>WLD</SourceName>
      </Source>
      <WestProductCategory></WestProductCategory>
    </Attorney>
    The schema gets registered without any error but when I try to create the table using the xml schema, I get the following error.
    ORA-19003 : Missing XML root element name
    I checked the pattern several times. Everything seems to go well with the schema, or I'm missing something.

    Please help me to identify the problem.

    Thank you.

    Hello

    It works fine for me, using the following statement:

    CREATE TABLE test_table OF XMLTYPE
     XMLTYPE STORE AS OBJECT RELATIONAL
     XMLSCHEMA "http://xmlns.oracle.com/xdb/schemas/DEV/test_otn.xsd"
     ELEMENT "Attorney";
    

    where 'test_otn.xsd' is the XML schema you provided.

    Could you post the statement you are running?

Maybe you are looking for

  • My iPhone5 has a big red dot in the corner top HR icon.  What is it and what do I do?

    My iPhone5 has a big red dot in the upper right of the icon.  What do this mean and what do I do?

  • Q180 high CPU usage problem

    My new Q180 shows CPU usage by at least 40% all the time in the Windows 7 Task Manager. Sysinternals Process Explorer show that this is due to more than 25% of material interruptions happening all the time. Everyone sees these problems / symptoms?

  • Updates keep failing on me...

    Hello world Recently, I had to do a system restore on my laptop. After that, it was all back to factory settings and everything is fine, but when I go to install updates, I get a message saying that the configuration has failed and restores the previ

  • blue screen after restoration

    I understand how try to restore the operating system on this acer computer and now I get a bluescreen after the first time, that we're back to zero after the restoration. laptop is an acer aspire 5742z-4649. I don't know what is causing the problem.

  • Re-install the HP software

    HP ENVY 14-1155 ca beats Edition Notebook PC Product number: XL838UA #ABC Windows & 64 - bit I had a fatal crash hard drive 10 days after my warranty expires 1 year A local store of "Geek" put a new drive hard and re-installed Windows. So far so good