Duplicate includes in schema document

Hi,
We are using 9i xdk and java stored procedures.
We have a scenario where a schema is composed of multiple documents.
Document A defines common basic types and is included in documents B, C, D, and E.
One or more of these documents are included in top level schema documents (say, F,G,etc).
The schema builder is complaining about duplicate includes because document A is getting included multiple times when we include , say, B and C in a top level document.
Is there any way we can make XSDBuilder to ignore the duplicate includes?

Hi,
I create a quotation on 2009.07.28. Then today I modify the items. After I saved this quotation and check the document flow, the quotation display twice like that:
Quotation 0020000048 2009.07.28 open
Quotation 0020000048 2009.07.31 open
It's so strange.
Any suggestion is welcomed.
Thanks.
Best regards,
chris Gu

Similar Messages

  • Registering an XML Schema (schema.xsd is not an XDB schema document)

    Hello there,
    I'm trying to work with XML DB for a few days now, so far i didn't do anything really usefull to me, but i managed to do some general things reading these forums and the documentation. Now however, i encounter this error registering an XML Schema:
    ERROR at line 1:
    ORA-31000: Resource 'www.ariase.com.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 82
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 102
    ORA-06512: at line 8I'm registering it with the following code:
    DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TRUE,FALSE,TRUE);and this is the schema i'm registering:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" xdb:storeVarrayAsTable="true">
         <xs:element name="ariase" xdb:defaultTable="ARIASE">
              <xs:complexType xdb:maintainDOM="false">
                   <xs:sequence>
                        <xs:element name="ligne" type="typeLigne" xdb:SQLName="LIGNE"/>
                        <xs:element name="debit" type="typeDebit" xdb:SQLName="DEBIT"/>
                        <xs:element name="central" type="typeCentral" xdb:SQLName="CENTRAL"/>
                        <xs:element name="technologies" type="typeTechnologies" xdb:SQLName="TECHNOLOGIES"/>
                        <xs:element name="reseaux" type="typeReseaux" xdb:SQLName="RESEAUX"/>
                        <xs:element name="degroupage" type="typeDegroupage" xdb:SQLName="DEGROUPAGE"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
         <!-- Complex types -->
         <xs:complexType name="typeLigne" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_LIGNE">
              <xs:sequence>
                   <xs:element name="numero" type="typeNumero"/>
                   <xs:element name="longeur" type="xs:string"/>
                   <xs:element name="affaiblissement" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeDebit" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_DEBIT">
              <xs:sequence>
                   <xs:element name="adsl2" type="xs:string"/>
                   <xs:element name="adsl" type="xs:string"/>
                   <xs:element name="readsl" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeCentral" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_CENTRAL">
              <xs:sequence>
                   <xs:element name="code" type="xs:string"/>
                   <xs:element name="nom" type="xs:string"/>
                   <xs:element name="lieu" type="xs:string"/>
                   <xs:element name="lignes" type="xs:string"/>
                   <xs:element name="densite" type="xs:string"/>
                   <xs:element name="dslam" type="xs:string"/>
                   <xs:element name="plaque" type="xs:string"/>
                   <xs:element name="couvertures" type="typeCouvertures"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeCouvertures" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_COUVERTURES">
              <xs:sequence maxOccurs="unbounded">
                   <xs:element name="comunne" type="typeComunne"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeComunne" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_COMUNNE">
              <xs:sequence>
                   <xs:element name="nom" type="xs:string"/>
                   <xs:element name="couverture" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeTechnologies" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_TECHNOLOGIES">
              <xs:sequence maxOccurs="unbounded">
                   <xs:element name="technologie" type="typeTechnologie"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeTechnologie" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_TECHNOLOGIE">
              <xs:sequence>
                   <xs:element name="nom" type="xs:string"/>
                   <xs:element name="central" type="xs:string"/>
                   <xs:element name="ligne" type="xs:string"/>
                   <xs:element name="reponse" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeReseaux" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_RESEAUX">
              <xs:sequence maxOccurs="unbounded">
                   <xs:element name="reseau" type="typeReseau"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeReseau" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_RESEAU">
              <xs:sequence>
                   <xs:element name="nom" type="xs:string"/>
                   <xs:element name="adsl" type="xs:string"/>
                   <xs:element name="adsl2" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeDegroupage" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_DEGROUPAGE">
              <xs:sequence maxOccurs="unbounded">
                   <xs:element name="fournisseur" type="typeFournisseur"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="typeFournisseur" xdb:maintainDOM="false" xdb:SQLType="XML_TYPE_FOURNISSEUR">
              <xs:sequence>
                   <xs:element name="nom" type="xs:string"/>
                   <xs:element name="totale" type="xs:string"/>
                   <xs:element name="tv" type="xs:string"/>
              </xs:sequence>
         </xs:complexType>
         <!-- Simple types -->
         <xs:simpleType name="typeNumero">
              <xs:restriction base="xs:string">
                   <xs:pattern value="[0-9]{10}"/>
              </xs:restriction>
         </xs:simpleType>
    </xs:schema>I'm using Oracle XE 2.1.0.00.39. Does this all look a bit OK, or am i way off here. I already managed to register the schema when it had a different name, and when it was in a different folder, so now i don't know what i'm doing wrong.
    Also i'd like to know what the best way is to insert 10.000s of XML documents in the database, is it possible to 'upload' them to the server, or will i always have to use an INSERT query to do this?
    I hope i gave enough information.
    Regards,
    Stijn

    THis looks wrong to me
    XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').
    xdburitype() is used to reference an XML document that already been loaded into the XDB repository.
    You can load the document using FTP or WEBDAV or BFILENAME to any folder that already exists and you have write access to. By default this will probably be '/public' unless you have loaded the xdb_utilities package which is posted in this forum and create a '/home' folder for your user. For instance if you loaded the XSD into '/public' your code would look something like this..
    xdburitype('/public/www.ariase.com').getClob()
    However that would typically generate an error like this
    'SQL> exec DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TR
    UE,FALSE,TRUE);
    BEGIN DBMS_XMLSCHEMA.registerSchema('www.ariase.com.xsd', XDBURIType('D:\Stage\Results\XSD_Target\www.ariase.com.xsd').getClob(),TRUE,TRUE,F
    ALSE,TRUE); END;
    ERROR at line 1:
    ORA-31001: Invalid resource handle or path name
    "D:\Stage\Results\XSD_Target\www.ariase.com.xsd"
    ORA-06512: at "SYS.XDBURITYPE", line 4
    ORA-06512: at line 1
    SQL>The error message you are seeing implies that the schema you are registering contains an import or include element with a schemalocation attribute that references 'www.ariase.com.xsd'
    Eg
    SQL> begin
      2    DBMS_XMLSCHEMA.registerSchema('www.ariase.com1.xsd',
      3  '<?xml version="1.0" encoding="UTF-8"?>
      4  <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attri
      5     <xs:include schemaLocation="www.ariase.com.xsd"/>
      6     <xs:element name="root" type="xs:short">
      7             <xs:annotation>
      8                     <xs:documentation>Comment describing your root element</xs:documentation
      9             </xs:annotation>
    10     </xs:element>
    11  </xs:schema>',
    12  TRUE,TRUE,FALSE,TRUE);
    13  end;
    14
    15
    16  /
    begin
    ERROR at line 1:
    ORA-31000: Resource 'www.ariase.com.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 3
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 14
    ORA-06512: at line 2
    SQL>

  • Help needed with registering Schema that include other schema

    Hi,
    I have 2 schemas, a simple and a complex schema. I am using oracle version 9.0.2.5.
    Simple Schema
    begin dbms_xmlschema.registerSchema('type_StreetName.xsd',
    '<?xml version = "1.0" encoding = "UTF-8"?>
    <xsd:schema targetNamespace="http://www.t-mobile.com/tas" xmlns:tas="http://www.t-mobile.com/tas"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xsd:simpleType name = "type_StreetName">
              <xsd:restriction base = "xsd:string">
                   <xsd:maxLength value = "40"/>
              </xsd:restriction>
         </xsd:simpleType>
    </xsd:schema>',
    true, true, false, false); end;
    Complex Schema
    begin dbms_xmlschema.registerSchema('type_Locn.xsd',
    '<?xml version = "1.0" encoding = "UTF-8"?>
    <xsd:schema xmlns = "http://www.w3.org/2001/XMLSchema"
         targetNamespace = "http://www.t-mobile.com/tas"
         xmlns:tas = "http://www.t-mobile.com/tas"
         xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
         version = "1.0"
         elementFormDefault = "qualified"
         attributeFormDefault = "unqualified">
         <xsd:include schemaLocation = "type_StreetName.xsd"/>
         <xsd:complexType name = "type_Locn">
              <xsd:sequence>
                   <xsd:element name = "STREETNAME" type = "tas:type_StreetName"/>
              </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>',
    true, true, false, false); end;
    How I register them
    Simple Type
    ALTER SESSION SET EVENTS='31098 trace name context forever';
    BEGIN
    DBMS_XMLSCHEMA.registerURI(
    'http://devuni06:8081/public/type_StreetName.xsd',
    '/public/type_StreetName.xsd',
    LOCAL=>TRUE, GENTYPES=>TRUE, GENBEAN=>FALSE, GENTABLES=>TRUE);
    END;
    No problems with registration of simpletype
    Complex type
    ALTER SESSION SET EVENTS='31098 trace name context forever';
    BEGIN
    DBMS_XMLSCHEMA.registerURI(
    'http://devuni06:8081/public/type_Locn.xsd',
    '/public/type_Locn.xsd',
    LOCAL=>TRUE, GENTYPES=>TRUE, GENBEAN=>FALSE, GENTABLES=>TRUE);
    END;
    Error message with registering complex type
    ERROR at line 1:
    ORA-31000: Resource 'type_StreetName.xsd' is not an XDB schema docu
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 185
    ORA-06512: at line 2
    Any help would be see the light at the end of the tunnel.
    Rudi

    Looks like unzipping the jar and making sure its in your classpath fixed the problem. not sure why explicitly having the xschema.jar in the classpath didn't work.
    e

  • Include xml schema in the WSDL of the web service

    Hi,
    I have a bpel process where I want to call several web service, so therefore the web services should reference the same xsd schema. I use JDeveloper and Oracle PM 10.1.3.3.0.
    I have a problem with including the schema in the wsdl of the web service, and I receive an error at deploying the web service.
    For including the schema I tried, things like:
    <types>
    <xsd:include schemaLocation="\C:/genschema.xsd"/>
    </types>
    Error compiling :C:\orabpel\bpel\system\appserver\oc4j\j2ee\home\applications\BuecherApp-LagerService-WS\WebServices: Error instantiating compiler: Web service artifact generation failed:oracle.j2ee.ws.common.tools.api.WsdlValidationException: model error: element "{http://lagerservice/types/}pruefeBuecherAufLagerElement" not found.
    or
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://lagerservice/types/"
    schemaLocation="genschema.xsd" />
         </schema>
    </types>
    Error instantiating compiler: Web service artifact generation failed:java.lang.InstantiationException: IO Error parsing imports in C:\orabpel\bpel\system\appserver\oc4j\j2ee\home\application-deployments\BuecherApp-LagerService-WS\WebServices\server-wsdl\LagerService.wsdl : Unable to find/read file WEB-INF/wsdl/genschema.xsd
    the file is in the required directory WEB-INF/wsdl, and also the current directory.
    Can anyone help please?
    Ela

    ... and here is the solution:
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema">
         <import namespace="http://lagerservice/" schemaLocation="file:///c:/genschema.xsd" />
         </schema>
    </types>

  • Material document 4900000006 does not include an accounting document

    Hi guys
    I created normal sales order, delivery and and released it thr VF01.
    Then I created the RE document without order reference and PGR. But while checking the accounting documents in VL02N it gives the error as follows
    Material document 4900000006 does not include an accounting document
    Diagnosis
    The system cannot find an accounting document for the material document 4900000006.
    Possible reasons for this are:
    The goods movement has no relevance to accounting. Therefore, the system did not generate an accounting document for the material document.
    The material document is a document that was posted before Release 2.1. Such documents must be converted so that the system can find the relevant accounting document.
    The procedure for the subsequent calculation of value is not active in your system. For further information, refer to the documentation on the program for valuating goods movements: RM07MWBU.
    Procedure
    Choose Continue and then choose another function.
    Find out when the material document was created. If the document was created prior to the Release changeover, ask your system administrator to carry out the conversion of the documents. The individual steps required for document conversion are described in the Release Notes for Release 2.1B
    Please give me the solution
    Thanks in advance
    Rahul

    Hi Rahul,
    Can you tell me how did you resolve this error indetail or step by step?  I have a same error in test client.  I am doing returns with stock catergory of E while PGI and then it throws error message.
    Material document 4900000006 does not include an accounting document
    Diagnosis
    The system cannot find an accounting document for the material document 4900000006.
    Possible reasons for this are:
    The goods movement has no relevance to accounting. Therefore, the system did not generate an accounting document for the material document.
    The material document is a document that was posted before Release 2.1. Such documents must be converted so that the system can find the relevant accounting document.
    The procedure for the subsequent calculation of value is not active in your system. For further information, refer to the documentation on the program for valuating goods movements: RM07MWBU.
    Procedure
    Choose Continue and then choose another function.
    Find out when the material document was created. If the document was created prior to the Release changeover, ask your system administrator to carry out the conversion of the documents. The individual steps required for document conversion are described in the Release Notes for Release 2.1B
    regards
    rc gopi

  • I have been sent a .pages document and would like to extract the photos included in the document as jpegs (need to edit on photoshop and put back in), is this possible? can't figure out how to do it.

    I have been sent a .pages document and would like to extract the photos included in the document as jpegs (need to edit on photoshop and put back in), is this possible? can't figure out how to do it.

    I'm going to answer my own question:
    Easy steps
    Locate the document in the Finder.
    Control/Right-Click on its icon.
    Select Show Package Contents
    All images and embedded objects appear in ‘Data’ folder
    From this blog
    http://vernonchan.com/2013/10/how-to-extract-images-from-apple-pages-5-0-documen t/

  • Erro in XML validation with schema document.

    Hi Friends,
    I am trying to validate XML file as per the defined schema document through JAXB parser.
    Following is my xml. schema and java class code.
    XML File_
    <?xml version="1.0"?>
    <notify xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NotificationDetailsSchema.xsd">
    <notification>
    <alertname>Alert1</alertname>
    <deletable>Y</deletable>
    <descurl>Alert1URL</descurl>
    </notification>
    <notification>
    <alertname>Alert2</alertname>
    <deletable>Y</deletable>
    <descurl>Alert2URL</descurl>
    </notification>
    </notify>
    Schema file_
    <?xml version="1.0" encoding="windows-1252"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:element name="notify">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="notification" maxOccurs="unbounded">
    <xsd:complexType mixed="true">
    <xsd:sequence>
    <xsd:element name="alertname">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="deletable">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:pattern value="Y|N"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="descurl">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:minLength value="1"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Java Class_
    SAXSource source = new SAXSource (xmlInputSource);
    SchemaFactory sf = SchemaFactory.newInstance (XMLConstants.W3C_XML_SCHEMA_NS_URI);
    Schema schema = sf.newSchema(schemaFileObj);
    Validator validator = schema.newValidator ();
    validator.setErrorHandler (new ParserErrorHandler());
    validator.validate (source);
    I tried to execute the validation through stand along java class and it worked correctly.
    However when I added this class into my Fusion web application, I am getting following error.
    org.xml.sax.SAXParseException: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'USAVER'.*
    Can you please help me to figure out this problem?

    Ruskin wrote:
    However there needs to be the possibility of a totally random mix of three different types of elements in a parent element. Can you take your example to make it more clear? Does all three elements mutually exclusive?

  • Is there a way to include a text document within the DVD?

    I am using Encore CS5. I do a DVD series. For the latest installment, I have been asked to include a 17 page document which the user could print from their computer or view from their TV, and which the main menu of the DVD would link to.
    Is this possible? I know I can include a text document on the disk,as part of DVD Rom materials, but I don't know if I can link to that via my DVD menu. Also, I don't think that would be viewable on a TV.
    On the other hand, I could include stills of the document (as a slideshow perhaps?) on the DVD and link to that ection via my main menu, but then it wouldn't really be printable from computer, like a text document would be, right?
    Anyone have any advice or anyone faced a similar challenge with including text materials as a menu option within a video DVD? (also to note, these are SD DVDs we are making, not blu ray)

    The printable option is the ROM. Include a menu in the DVD that explains this.
    You are correct, this can't be viewed on the computer. And yes, you can use a slideshow. Except that the text will be too tiny. The text will have to be formatted so that it is presented in reasonable chunks.
    Do a short sample, burn, and test it on both a upscaling HD as well as a traditional set.

  • How to include several PDF documents into just one file?

    I have a Word document with 6 pages that I saved in PDF.
    I wanted to transform the entire document in JPEG (JPG) immage, so that I could use it in other tools, such as Facebook for example.
    The problem is that using Adobe Photoshop it opens and saves page by page.
    Can you give me s solution or hint?
    Flavio
    [email protected]

    Thank you!
    I already saved all pages as .pdf w/ Acrobat and have all 6 pages saved in
    .jpg, using Photoshop.
    Problem is that I want to post the whole text in my Facebook page, and to
    have it in six pieces is not quite readable...
    Thanks anyway and have a joyful Xmas!
    2011/12/24 try67 <[email protected]>
       Re: How to include several PDF documents into just one file?  created
    by try67 <http://forums.adobe.com/people/try67> in Adobe Reader - View
    the full discussion <http://forums.adobe.com/message/4102594#4102594>

  • Including a linked document in the Publish folder

    I've been following discussions trying to understand the best way to include links to documents (Word, pdfs, etc.) and websites within my module.
    With websites it seems simple, just enter the url and specifiy new window in the controls so users can get back from the website to the module. But with documents I'm confused. I read that I need to make sure the document is placed in the Publish folder so the link remains valid when the project is imported into an LMS. How do I make sure the document is placed in the Publish folder?
    Do I import the document into the Captivate project? Do I Publish and then go back and move the document into the published folder?
    I know this is likely a simple thing but never having done it I'm uncertain how to proceed and need help - thanks,
    Dan

    Hi Dan
    Unfortunately I can't tell you how this is done if an LMS is in the picture. Perhaps Rod or Lilybiri or another author that plays in the LMS arena can shed light there.
    But if you are simply placing the Captivate in a central location for folks to access, you just copy the document to the same folder. If you understand how to create relative addressing, you can establish a relative link, but it's generally easiest to simply ensure the document is in the same folder as the Captivate movie.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Ora-31000 not an XDB schema document error WHY???

    I have registered a xmlschema as following
    FIRSTLY
    I create a procedure schemas as
    create or replace procedure schemas is
    begin
    declare
    doc varchar2(1000) := '<schema
    targetNamespace="http://localhost/po.xsd"
    xmlns:po="http://localhost/po.xsd"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:xdb="http://xmlns.oracle.com/xdb">
    <complexType name="PurchaseOrderType">
    <sequence>
    <element name="PONum" type="decimal"/>
    <element name="Company">
    <simpleType>
    <restriction base="string">
    <maxLength value="100"/>
    </restriction>
    </simpleType>
    </element>
    <element name="Item" maxOccurs="1000">
    <complexType>
    <sequence>
    <element name="Part">
    <simpleType>
    <restriction base="string">
    <maxLength value="1000"/>
    </restriction>
    </simpleType>
    </element>
    <element name="Price" type="float"/>
    </sequence>
    </complexType>
    </element>
    </sequence>
    </complexType>
    <element name="PurchaseOrder" type="po:PurchaseOrderType"/>
    </schema>';
    begin
    dbms_xmlschema.registerSchema('http://localhost/po.xsd', doc);
    end;
    end schemas;
    SECONDLY
    I execute the schemas procedure as
    "exec schemas;"
    and the return value show is successful
    THIRDLY
    I want to create a table based on this registered schema as
    "create table po_tab(
    id number,
    po sys.XMLType
    xmltype column po
    XMLSCHEMA "http://localhost/PO.xsd"
    element "PurchaseOrder";
    But the return value is
    "ORA-31000: the 'http://localhost/PO.xsd' is not an XDB schema document "
    WHY?????

    XML is case sensitive.. You used ''http://localhost/po.xsd' when registering the schema and "http://localhost/PO.xsd" when attempting to create the table. Which database version are you working with

  • Problem loading a schema document using Java XDK

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

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

  • ORA-31000: Resource 'string' is not an XDB schema document

    ORA-31000: Resource '<ACCOUNT><EMPLOYEE><empid>2109</empid><sal>10000</sal></EMP
    LOYEE><EMPLOYEE><empid>2109</empid><sal>10000</sal></EMPLOYEE><EMPLOYEE><empid>2
    109</empid><sal>10000</sal></EMPLOYEE><EMPLOYEE><empid>2109</empid><sal>10000</s
    al></EMPLOYEE><EMPLOYEE><empid>2109</empid><sal>10000</sal></EMPLOYEE><ACCOUNT>'
    is not an XDB schema document
    this a output that i get. i have populated this string from table and passing it as:
    xmlvar := xmltype('ROOT',str_xmlstring);
    the function returns the string directly but gives the above output.

    Hello mgralike,
    Thanks for your link but for me this combination is valid with the getClobVal :
    Registers the schema specified as a CLOB
    DBMS_XMLSCHEMA.REGISTERSCHEMA(
    schemaurl IN VARCHAR2,
    schemadoc IN CLOB,
    local IN BOOLEAN := TRUE,
    gentypes IN BOOLEAN := TRUE,
    genbean IN BOOLEAN := FALSE,
    force IN BOOLEAN := FALSE,
    owner IN VARCHAR2 := NULL,
    options IN PLS_INTEGER := 0);
    May be It is not working properly in my case.
    Witch combination do you use it to register schema in a XMLTYPE column ?

  • [AS][CS5] Duplicate selection to new document

    Hi everyone,
    I'm working on a script that will allow me to make a PDF or printout of a selection in InDesign by duplicating the selection to a new document.
    I'm having difficulty with the portion of the script that duplicates the selection to a new document.
    I'm trying to follow the instructions in the CS5 scripting guide but it's not working.
    Here's my code:
    --make a new document from selection
    tell application "Adobe InDesign CS5"
        set mySelection to selection
        if (count of mySelection) = 0 then
            display dialog "Nothing selected." & return & "Select something and then run the script." buttons {"OK"} cancel button {"OK"}
        end if
        tell document 1
            --make group in order to get width/height of selection
            if (count of mySelection) > 1 then
                set myItem to make group with properties {group items:(mySelection)}
            else
                set myItem to item 1 of selection
            end if
            set theBounds to geometric bounds of myItem
            set theHeight to (item 3 of theBounds) - (item 1 of theBounds)
            set theWidth to (item 4 of theBounds) - (item 2 of theBounds)
            --undo the grouping so selection is unchanged
            undo
        end tell
        --make new document sized to the width/height of the selection
        set myDoc to make new document with properties {document preferences:{page width:theWidth, page height:theHeight}}
        --duplicate selection to new document
        tell mySelection
            set myDupe to duplicate to page 1 of myDoc
        end tell
    end tell
    I get the following error:
    {«class crec» id 201 of «class sprd» id 186 of document id 2 of application \"Adobe InDesign CS5\", «class crec» id 202 of «class sprd» id 186 of document id 2 of application \"Adobe InDesign CS5\", «class crec» id 207 of «class sprd» id 186 of document id 2 of application \"Adobe InDesign CS5\"} doesn’t understand the duplicate message." number -1708 from {«class crec» id 201 of «class sprd» id 186 of document id 2, «class crec» id 202 of «class sprd» id 186 of document id 2, «class crec» id 207 of «class sprd» id 186 of document id 2}
    Thanks!

    Alison, you just have a minor omission… You have not declared your object to dupe… This worked with a little tweek…
    --make a new document from selection
    tell application "Adobe InDesign CS5"
    set mySelection to selection
    if (count of mySelection) = 0 then
    display dialog "Nothing selected." & return & ¬
    "Select something and then run the script." buttons {"OK"} cancel button {"OK"}
    end if
    set openDoc to document 1
    tell openDoc
    --make group in order to get width/height of selection
    if (count of mySelection) > 1 then
    set myItem to make group with properties ¬
    {group itemsmySelection)}
    else
    set myItem to item 1 of selection
    end if
    set theBounds to geometric bounds of myItem
    set theHeight to (item 3 of theBounds) - (item 1 of theBounds)
    set theWidth to (item 4 of theBounds) - (item 2 of theBounds)
    end tell
    --make new document sized to the width/height of the selection
    set myDoc to make new document with properties ¬
    {document preferences:{page width:theWidth, page height:theHeight}}
    --duplicate selection to new document
    tell openDoc
    set myDupe to duplicate myItem to page 1 of myDoc
    --undo the grouping so selection is unchanged
    undo
    end tell
    --re-posistion in new size doc
    tell myDoc
    move myDupe to {0, 0}
    end tell
    end tell
    Sorry I've forgotten where you turn off the Emoticons… dammed : + (

  • ORA-31000: Resource '' is not an XDB schema document

    I have registered HTNG_HotelRoomStatusSearchRQ.xsd with Oracle and am attempting use this schema. I have attached the original xsd, results of
    SELECT   * FROM     user_xml_schemas  where SCHEMA_URL = 'HTNG_HotelRoomStatusSearchRQ.xsd' and the block I use to test. It is all labeled in the text document attached.
    Please advise.
    Thank you

    Hi Odie,
    The error occurs on line 52
    [Error] Execution (4: 3): ORA-31000: Resource '' is not an XDB schema document ORA-06512: at line 52
    IF l_xmltype.isschemabased () = 0
        THEN
            RAISE non_registered_schema;
    END IF;
    I get the same exception regardless of the clob I use.
    declare
    x_RoomStatus         CLOB := '<?xml version="1.0" encoding="UTF-8"?>
    <HTNG_HotelRoomStatusSearchRQ 
                  xmlns="http://htng.org/2011B"
                  xmlns:ota="http://www.opentravel.org/OTA/2003/05"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://htng.org/2014B HTNG_HotelRoomStatusSearchRQ.xsd"
                  TimeStamp="2011-08-24T09:30:47Z">             
    <PropertyInfo ChainCode="STARWOOD" HotelName="Westin San Diego" BrandCode="WESTIN" HotelCode="2134" HotelCodeContext="CRES"/>
    <Room>
    <RoomType Floor="12"/>
    <HKStatus>VACANT_DIRTY</HKStatus>';
    xy_roomstatus clob :='<?xml version="1.0" encoding="UTF-8"?>
    <HTNG_HotelRoomStatusSearchRQ EchoToken="6c19dbf8-351b-471f-a33b-be8701eb67ae" TimeStamp="2011-08-24T09:30:47Z" Version="1.0" Target="Production" xmlns="http://htng.org/2011B" xmlns:ota="http://www.opentravel.org/OTA/2003/05">
    <PropertyInfo ChainCode="STARWOOD" HotelName="Westin San Diego" BrandCode="WESTIN" HotelCode="2134" HotelCodeContext="CRES"/>
    <Room>
    <RoomType Floor="12"/>
    <HKStatus>VACANT_DIRTY</HKStatus>
    </Room>
    </HTNG_HotelRoomStatusSearchRQ>';
    BEGIN
        l_xmltype   := xmltype (xy_roomstatus);
        v_schema_to_validate :=   l_xmltype.getrootelement () || '.xsd';
        IF l_xmltype.isschemabased () = 0
        THEN
            RAISE non_registered_schema;
        END IF;
    end;
    Thank you

Maybe you are looking for

  • What do I need to connect my new Yamaha RX-V671 receiver wirelessly to my Air Port Express?

    I have just received my new Yamaha RX-V671 receiver and the only connection I have for the internet is by a network cable or by a USB slot.  I would like to hook this up wirelessly to my Air Port Express, I just need to know what I need to get so I c

  • How to Determine the Cause of the Spinning Wheel?

    I get long delays watching a spinning wheel (30 seconds to 5 minutes) when using Safari 5.0.6, which is the last version that works on the iMac PPC G5 1.8GHz (2GB RAM) with OS 10.5.8. The Activity Monitor does not provide clues as to the cause.  How

  • PO output with Manufacturer Part number

    Hi, We created PO with Mfr Part number and Manufacturer. But in the PO output (print) we are not able to see this information. Why we are not able to see this? Can somebody help on this. Thanks, Venkat

  • How do you know that the DB Adapter has stopped polling

    Hi, Is there a smart way to figure out if the DB Adapter has stopped polling a table ? [We are using logical delete polling strategy].We are looking for a better alternative than just verifying the entire laundry list of tables for the markUnreadValu

  • Siri Is Not An Option in Safari

    I have only had my iPhone for 2 weeks and in that time I was deliriously happy with the way Siri would fill in the Search Box in Safari for you. Now, all of a sudden, the little microphone symbol for Siri is greyed out in Safari and non - functional.