How to register a schema use a .xsd file which has lots of includes schema

Hello, All,
Does someone have the experience to register a schema use a .xsd file which contains several tags like <xs:include schemaLocation="../dt/somedatatypes.xsd"/>?
I tried both the OEM and command line dbms_xmlschema.registerSchema(), although the whole file structure already in the repository, seems like Oracle can't automatically search and find the includes and register it. should I register those includes first? the actual error I got is "ORA-31000: Resource '../dt/somedatatypes.xsd' is not an XDB schema document.ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0 ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 26 ORA-06512: at line 2" .
Any suggestion? thanks in advance...

We do not (currently) support relative references in included XML Schemas.
In order to use an include or import the target Schema must first be registered with XML DB under some known location. The schemaLocation argument needs to the 'Docuemnt Location Hint', or URL, that was passed to registerSchema when the included schema was registered.
If you have cyclic dependancies between schemas you can use the force option of registerSchema to register the first Schema. This will then allow registration of the second schema to succeed. Once the second schema has been successfully registed the first schema must be explicitiy recompiled using dbms_xmlschema.compileSchema().

Similar Messages

  • How to add a comment in a php file which has html code

    Hi
    I have a html file which I renamed .php after adding a form. I discovered that the html comment text I was using - <!--this is a comment --> - was affecting how the page rendered, particularly in IE9.
    My question is, now that it is a php file do I need to change all the comments syntax? I started to do it using the "apply comment" button in CS5 i.e. syntax: <?php /*?>form<?php */?>.
    Is this the right way to do it? It gives "php" icons in design view but appears to render ok.
    Thanks

    PHP comments:
    <?php
    //This is a comment
    This is
    a php comment
    block
    ?>
    Use PHP comments inside PHP scripts/code.
    HTML comments:
    <!--comment-->
    <!--this is
    an html comment
    block-->
    Use HTML comments inside HTML code.
    CSS Comments:
         /*comment*/
         /*this is
         a css comment
         block*/
    Use CSS comments inside CSS code (either embedded or external).
    JavaScript comments:
    //this is a single line comment
    //this is another single line comment
    /*this is a multi-line
    javascript
    comment
    Use JavaScript comments inside JavaScript code (either embedded or external).
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Register XSD-Files which includes Other XSD-Files

    Hallo
    i have two XML-Schemata. One is included by the other.
    Here is an example:
    This is the XSD, which is included by the other (metadata.xsd):
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <!-- Metadatenbereich für das xml-Dokument selbst-->
         <xs:element name="metadata" type="metadataType">
              <xs:annotation>
                   <xs:documentation>ROOT ELEMENT von Metadata</xs:documentation>
              </xs:annotation>
         </xs:element>
         <!-- Glossar: Metadatenbereich + Glossarinhalt als Liste von Glossareinträgen -->
         <xs:complexType name="metadataType">
              <xs:sequence>
                   <xs:element ref="identifier"/>
                   <xs:element ref="category"/>
                   <xs:element ref="creator"/>
                   <xs:element ref="creation_date"/>
                   <xs:element ref="publisher"/>
                   <xs:element ref="language"/>
                   <xs:element ref="title"/>
                   <xs:element ref="basic_year"/>
                   <xs:element ref="statistic"/>
    This is the XSD, which include the other XSD (lexikon.xsd):
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" elementFormDefault="unqualified" attributeFormDefault="unqualified">
         <!-- Includieren der Metadaten-->
         <xs:include schemaLocation="metadata.xsd"/>
         <!-- ROOT Element von Lexikon-->
         <xs:element name="lexikon" type="lexikonType" xdb:defaultTable="LEXIKON">
              <xs:annotation>
                   <xs:documentation>ROOT ELEMENT</xs:documentation>
              </xs:annotation>
         </xs:element>
         <xs:complexType name="lexikonType">
              <xs:sequence>
                   <xs:element ref="metadata"/>
                   <xs:element ref="lexikonEntries"/>
              </xs:sequence>
              <xs:attribute name="lexikonKat" type="xs:integer">
                   <xs:annotation>
                        <xs:documentation>für spezielle UnterkategorienTypen zu den Lexikas</xs:documentation>
                   </xs:annotation>
              </xs:attribute>
         </xs:complexType>
         <!---->
         <!-- GLOSSAR-ELEMENTE -->
         <!---->
         <!-- ExplicationTxt-->
         <xs:element name="explicationTxt" type="explicationType"/>
         <xs:complexType name="explicationType">
              <xs:choice>
                   <xs:element ref="verweis"/>
                   <xs:element ref="txt"/>
                   <xs:element ref="para"/>
    Both documents have i copied to a webdav-folder. Now i want register the documents.
    BEGIN
    DBMS_XMLSchema.registerSchema(
    schemaurl=>'http://190.1.1.148:8080/home/DEV/xsd/lexikon.xsd',
    schemadoc=>sys.UriFactory.getUri('/home/DEV/xsd/lexikon.xsd'));
    END;
    The following error-message is displayed:
    ERROR at line 1:
    ORA-31000: Resource 'metadata.xsd' is not an XDB schema document
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 0
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 166
    ORA-06512: at line 2
    I made the XSD-Files by XMLSpy. The Documents are well-formated and valid.
    When i make a new XML-File based ONLY (of course) on lexikon.xsd everything works fine with XMLSpy.
    How must i register these documents? Is it possible? Or can´t i register XSD-Files which includes others?
    Thank you very much
    cu
    Heidi

    Heidi,
    register the metadata.xsd first inthe same way and then register the lixikon.xsd.
    it should work.

  • How to populate/import data in a XSD file generated from a webservice

    HI All,
      I have an XSD file generated from the webserive using the CRM FM E2C_DOWNLOAD_CRT_SCHEMA.
    I created a Adobe form with the Adobe life cycle designer using the XSD file.
    However Data will have to be entered manually in this adobe form and cannot be pre-populated with data, How do we pre-populate data in the Adobe form generated from XSD file of the above CRM FM.

    This is what you need:
    integer     li_fhandle, li_rcode = 1, li_sfound = 0, li_idx = 0, li_eqpos, i
    string ls_filename = 'C:\app.ini'
    string ls_line, as_key[], as_val[]
    string ls_section = '[General]'
    // OPEN INI FILE
    li_fhandle = FileOpen(ls_filename, LineMode!)
    IF IsNull(li_fhandle) OR li_fhandle < 1 THEN
      // DO NOTHING
    ELSE
      DO WHILE li_rcode > 0
      li_rcode = FileRead(li_fhandle, ls_line)
      IF li_rcode > 0 THEN
      IF POS(ls_section, ls_line) > 0 THEN
      li_sfound = 1
      CONTINUE
      END IF
      IF li_sfound = 0 THEN CONTINUE
      IF POS(ls_line, '[') > 0 AND POS(ls_line, ']') > 0 THEN EXIT
      li_eqpos = POS(ls_line, '=')
      li_idx++
      as_key[li_idx] = MID(ls_line, 1, li_eqpos - 1)
      as_val[li_idx] = MID(ls_line, li_eqpos + 1)
      END IF
      LOOP
    END IF
    FOR i = 1 TO li_idx
      messagebox('Key - Value',as_key[i] + ' = ' + as_val[i])
    NEXT
    // CLOSE INI FILE
    IF li_fhandle > 0 THEN
       FileClose(li_fhandle)
    END IF
    Adapt it to your needs... you probably should make it a function.

  • HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS

    Hai Frnds,
    i Attend an interview they asked this questions can u know the answeres . tell me .
    In File to file scenario how can we reprocess records which failed records.
    HOW CAN U CORRECT THE DATA IN UR FILE WHICH CONTAINS 1 LAKSH RECS
    Thanks in advance
    thahir

    Hi,
    Refer these links:
    this might help you
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    Generic Approach for Validating Incoming Flat File in SAP XI - Part 1
    validating against schema file for the output XML file
    Informing the sender about bad records
    Regards,
    Nithiyanandam

  • I have several episodes of a TV show that say "download error, tap to retry" and when I do it just repeats that error message.  Can I get it to work? If not can I get reimbursed for the episodes I'm missing?  I'm using an iPad one which has worked fine B4

    I have several episodes of a TV show where it says download error, tap to retry and when I do it repeats the error message.  Can I get it to work or get reimbursed for the ones I'm missing?  I'm using an iPad 1 which has worked fine for all the others.

    Hi AlpineJean,
    I'm sorry to hear you are having issues downloading some episodes to your iPad.
    I would first suggest you sign out of your iTunes account on your iPad, restart the device and sign back in.
    Settings > iTunes & App Stores > Tap on your Apple ID account > Tap Sign Out
    Click on the link below for additional troubleshooting steps with more details and screenshots.
    I've quoted some helpful highlights for you:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    To view or download previously purchased:
    TV Shows on iOS
    Open the iTunes Store on your device.
    Make sure you are signed in with the same Apple ID you used for the original purchase.
    Tap More from the bottom navigation bar.
    Tap TV Shows.
    Locate the TV show episode or series you would like to download.
    Once you've located the TV shows you are looking for, tap the download button.
    The TV show will begin downloading.
    Previous purchases may be unavailable if they have been refunded or are no longer on the iTunes Store. Downloading previously purchased movies and TV shows requires iTunes 10.6 or later.
    If this does not resolve your issue, please follow these instructions for support from the iTunes Store:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    Find the email receipt for your purchase.
    Click Report a Problem under the app that is having the issue.
    When prompted, enter the Apple ID and password you used to purchase the item, then click Report a Problem.
    Click Report a Problem next to the item you are having an issue with.
    From the Choose Problem dropdown menu, choose the appropriate issue.
    Follow the onscreen instructions and—if prompted—type a description of the problem into the text field.
    Click Submit to have your issue reviewed.
    Have a great day!
    - Judy

  • HT1918 i would like to use my credit card which has other country billing address who i can do it. every time i tryed it is only give me the us address.  could you please help me on this

    i would like to use my credit card which has other country billing address who i can do it. every time i tryed it is only give me the us address.  could you please help me on this

    You will need to update the address and country that you have on your account, and if using a credit card then that will need to be registered to that new address - you should be able to update them logging into your account via Store > View Account menu option on your computer's iTunes
    Changing account info : http://support.apple.com/kb/HT1918

  • How do I unlink Ipod from my old PC (which has crashed HDD) and link to new PC without erasing contents of my Ipod?

    How do I unlink Ipod from my old PC (which has crashed HDD) and link to new PC without erasing contents of my Ipod?.  Unfortunately I lost all my content (photos, music) etc from my old PC when it crashed .... but when I try and link my iPod to my new PC it wants to erase the iPod first, which obviously i don't want to do, else I lose all my content ... can anyone help?

    See:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • How to read a file which has header and without header

    Hi,
    I have a file to file scenario wherein there are txt files in the source system, some of which has header and some without header.
    How does the sender adapter dynamically identify a file with header and without header.
    I knew that File content Conversion in the sender adapter with "Recordsets per message = 1" can read the header.  But how to handle dynamically.
    Thanks in advance for suggestions and advice.
    Regards.
    Praveen

    Hi,
    Let me give a more clear picture:-
    One of my file which has header and the corresponding values is listed hereunder:
    PERNR;KID;PNALT;NACHN;NAME2;VORNA;TITEL;TITL2 and so on.....
    ;1200;1200;Angus;; and so on.........
    Other file which has no header but only values in it:-
    1200;1200;;Werner;Angus and so on.......
    The structure remains same for all the files.  The only difference is that some of the file has header in it and some without header.  The Message Type is mentioned hereunder:-
    DT_LegacyEmployee (Category - Complex Type)
         Employees (Category - Element, Occurence - 1)
              Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
                   PERNR
                   KID
                   PNALT
                   NACHN
                   NAME2 and so on......     
    I read the file in record row.  The file conversion parameters in the file sender adapter are mentioned hereunder:-
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA,TITEL,TITL2 and so on........
    How do we dynamically identify whether the file has header or not.  Even if the file has header or without header, the file needs to be picked and transferred to the target system.  Kindly clarify.
    Regards.
    Praveen

  • I have was moving music from iTunes to a CD, however, when attempting to move a second set of music a error message stating "this is not a blank CD". How can more music be copied to this CD, which has more than sufficient space to be copied to?

    I have was moving music from iTunes to a CD, however, when attempting to move a second set of music a error message stating "this is not a blank CD". How can more music be copied to this CD, which has more than sufficient space to be copied to?

    I have was moving music from iTunes to a CD, however, when attempting to move a second set of music a error message stating "this is not a blank CD". How can more music be copied to this CD, which has more than sufficient space to be copied to?

  • How do i remove a file which has attached to the outside of a window

    how do i remove a file which has attached itself to the out side of a windownext to the control tabs?

    Ah, do you mean it's showing in the header bar?
    If so, hold cmd (⌘) while you drag it off to the desktop. It'll disappear in a puff of virtual smoke.
    Don't worry, you won't lose the file; the icon in the header  (and those in the sidebar) is just an alias.

  • Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1.

    Question
    Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1. The security shows permissions for the web site but doesn't recognize that I've been accessing the web page every day since I updated to 6.0.1. Web page trying to access is <http://classic.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:98108.5.99999> This home page worked fine on earlier versions of Firefox and continues with Internet Explorer 9.0.

    Looks like its been fixed for me, not by 6.0.1 but by - Todd Siechen from http://www.dvdthemepak.com
    Check out his post at:
    http://discussions.apple.com/thread.jspa?threadID=335417
    Todd... I love you xxx
    After having a nightmare since first day of version 6.0.0 and still no fix after 6.0.1, even after Apple requested the files... You fixed my problem... Checked for duplicate fonts and found about 5, selected "Resolve Duplicates" and everything great, even with old projects... You should work for Apple!
    Check out the 2 posts:
    http://discussions.apple.com/thread.jspa?threadID=313109
    http://discussions.apple.com/thread.jspa?threadID=366383
    1) The first and biggest culprit we found to be causing problems is with font issues. In order to alleviate this problem, open Font Book and make sure all the Fonts that are turned on have no dots next to them. If they do then select them and select "Resolve Duplicates" from the Edit menu. If you are using a different font manager then use whatever tool is available to make sure no duplicate fonts are loaded. iDVD 6 is very sensitive to this.
    Many many many many many many many many many many many many many thanks.
    Regards,
    Charles Teton
    United Independent Pictures Ltd.
    http://www.makingmymovie.com

  • How do I run JavaFx in an embedded device which has VxWorks OS?

    How do I run JavaFx in an embedded device which has VxWorks OS?
    The VxWorks already has JAVA support i.e. it has a java runtime available.
    Request to provide detailed procedure because I am new to both FX and VxWorks. :-)
    How do I get and install JavaFx runtime in the VxWorks OS?

    Should i consult VxWorks for this ? I have planned to show a demo of JavaFx in the embedded device (runs on VxWorks)
    Should i drop this idea ? or something is possible ? Need some solution. please help.
    Edited by: 803124 on Oct 19, 2010 1:32 AM

  • How do i run JavaFx in a embedded device which has VxWorks OS?

    How do i run JavaFx in a embedded device which has VxWorks OS?
    The VxWorks already has JAVA support i.e. it has a java runtime available.
    Request to provide detailed procedure because i am new to both FX and VxWorks. :-)
    How do i get and install JavaFx runtime in the VxWorks OS?
    Edited by: Thanikai on Oct 13, 2010 12:15 AM

    h3. *{color:#ff0000}Oracle Forums - Starting Sept 24th, 2010, these forums will be read-only. At that time, there will be new forums created at [http://forums.oracle.com] to accommodate most of the discussion topics here.{color}*
    db

  • How to upload a file which has more than 999 line item  through BDC ?

    Hello Techards
    Hi to all
    Can any body tell me how to upload a file which has more than 999 line item  through BDC for traction F-02 ?
    Thanks in advance.
    Shovan

    Hello Shovan,
    You split it up to post two accounting documents with the help of a "suspense" a/c.
    Say, you have to post the following line items below:
    line 1 - dr. - GL a/c X - $1000
    line 2 - cr. - GL a/c Y - $1
    line 3 - cr. - GL a/c Y - $1
    line 1001 - cr. - GL a/c Y - $1
    You cannot post the above as a single doc in SAP (because of technical reasons), so you need to break it up into 2 documents as below:
    Doc1
    line 1 - dr - GL a/c X - $1000
    line 2 - cr - GL a/c Y - $1
    line 3 - cr - GL a/c Y - $1
    line 998 - cr - GL a/c Y - $1
    line 999 - cr - SUSPENSE a/c - $3
    Doc2
    line 1 - dr - SUSPENSE a/c - $3
    line 2 - cr - GL a/c Y - $3
    Note that there is no incorrect impact on accounting as first we credit suspense a/c by $3 and next we debit the same suspense a/c by $3 as a result the effect is nil. Similarly, we credit $997 to GL a/c Y (which is less by $3) in the first doc which is compensated by the second doc by crediting the shortfall of $3.
    Hope this helps,
    Cheers,
    Sougata.

Maybe you are looking for

  • How do I read a downloaded PDR file in Adobe and not Preview?

    I have downloaded a PDF document.  Seems the first shot is for it to be read in Preview. How do I read it in Adobe? Thanks!

  • Table and Field.

    Hi, I am From SD side, i want to know the Fields and tables for following entities, For Customer. 1.Date due 2.Check Number 3.Check date 4.Date Cleared 5.Clearing Number. Thanks, raja

  • Setting icon with red circle

    While  trying to download iOS 8.01 on my iphone 5s i was halfway through it when Apple pulled it and I now have a red circle with a one on it on my settings icon. can anyone please  tell me if this will go away once Apple get themselves sorted with t

  • Wont charge

    Ok so I have reset everything i can think of on my powerbook but nothing seems to get it to charge. I orderd a new battery i am hoping that will fix it. if i push down on the power cord it will turn orange but still wont charge.. please help

  • Problem: Deploy a SSO Third Party Integration Adapter in Portal

    A user want to deploy a SSO third party integration adapter (Novell Access Gateway) in Portal (AS v10.1.2.0.2). And used method in Note 430877.1. They can login through Novell Access Gateway and login Portal, but when click search user button, there