Maximum length for an XML schema

Hi everybody,
Is there a limit on the maximum length for an XML schema? I am trying to register an XML schema using dbms_xmlschema.registerSchema(). The schema registration process seems to go fine when the length of the schema is short. But the registration process always hangs when I increase the XML schema with additional types/elements. Is there a limit on the maximum length of the XML schema with regards to registering it to Oracle?
Thanks!
IK

Hi Erhan,
Let's say I have a really big XML schema in file "schemaA.xsd", like so:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sampleA="http://abc.com/schemaA" targetNamespace="http://abc.com/schemaA">
<xsd:element name="Employee">
<xsd:sequence>
<xsd:element name="Address" type="sampleA:AddressType"/>
<xsd:element name="Contact" type="sampleA:ContactInfoType"/>
</xsd:element>
<xsd:complexType name="AddressType">......</xsd:complexType>
<xsd:complexType name="ContactInfoType">....</xsd:complexType>
</xsd:schema>
I can separate this schema into multiple smaller schemas (<32KB) by using the proper imports:
In file "sampleA.xsd":
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sampleB="http://abc.com/schemaB"
xmlns:sampleA="http://abc.com/schemaA" targetNamespace="http://abc.com/schemaA">
<xsd:import namespace="http://abc.com/schemaB" schemaLocation="schemaB.xsd"/>
<xsd:element name="Employee">
<xsd:sequence>
<xsd:element name="Address" type="sampleB:AddressType"/>
<xsd:element name="Contact" type="sampleB:ContactInfoType"/>
</xsd:element>
</xsd:schema>
And in file "sampleB.xsd", I might have something like this:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sampleB="http://abc.com/schemaB" targetNamespace="http://abc.com/schemaB">
<xsd:complexType name="AddressType">......</xsd:complexType>
<xsd:complexType name="ContactInfoType">....</xsd:complexType>
</xsd:schema>
So, you see how I have separated that one really big XML schema in file "schemaA.xsd" into two XML schema files: "schemaA.xsd" and "schemaB.xsd". Also, I have added <import> tags in schemaA.xsd to refer to elements, complext types, etc. defined in schemaB.xsd. So long as these schema files are < 32KB, I can register them (using dbms_xmlschema.registerSchema()) without any problems into Oracle.
Let me know if what I said above is not too clear. Hope you find your solution soon!
Thanks!
Irene

Similar Messages

  • Java API - Editor class for an XML schema

    Hi,
    i am very interesting in Java API. I would like to make an editor class for an XML schema. (I will create XML files in the current project based on this XML schema.) What step's are require for this editor class?
    Regards
    Gabor

    DavidThi808 wrote:
    jtahlborn wrote:
    you can provide a schema when parsing an xml document in order to check for schema conformance, but that isn't going to affect your XPath queries at all. DOM content is never anything but strings.In the case of both dom4j/jaxen and the .NET runtime the values returned from XPath queries when a schema is provided are typed. So you get back numbers, dates, and booleans as well as strings. And for numbers you get correct comparisons so 20 > 1.i guess it's possible. i use schemas when parsing xml, and i've used xpath (infrequently), but i'm not sure that i've ever used them together in a way that i would see functionality like that.
    FYI, you use http://docs.oracle.com/javase/6/docs/api/javax/xml/parsers/DocumentBuilderFactory.html#setSchema%28javax.xml.validation.Schema%29 to specify a schema while parsing with a DocumentBuilder.

  • How do you create an xsd file for an xml schema in BI Publisher?

    Helllo.
    I hope this is a really daft question for somebody..
    How I create an xsd file to be used as an xml schema to attach to a Data Definition that Ive created? I've obv. got the xml and rtf files ready and attached. I've looked through the relevant docs (XML Publisher Report Designer's Guide.pdf & XML Publisher Administration and Developer's Guide.pdf) but can't find where..
    Once this has been done then I can run the template via ORACLE Financials for the reports I've converted.
    many thanks..
    Steven

    I don't think you need to have an XSD it's an optional field. If you really want to create one use this site: http://www.hitsw.com/xml_utilites/
    I believe I answered your question, don't forget to give me the points.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • Is there a maximum length for a custom expression?

    Is there a documented maximum length of a custom expression in a sync rule? I have been unable to find one and as of yet, have not hit one. But for curiosity's sake, I was wondering if there is a limit?
    Thanks

    Hello FIM-EN,
    Custom Expression of Synchronization rules are saved to two attributes: Initial Flow and Persistent Flow.
    Both are "Indexed string", so theoretically, the length is unlimited.
    Regards,
    Sylvain

  • SQL loader Field in data file exceeds maximum length for CLOB column

    Hi all
    I'm loading data from text file separated by TAB and i got the error below for some lines.
    Event the column is CLOB data type is there a limitation of the size of a CLOB data type.
    The error is:
    Record 74: Rejected - Error on table _TEMP, column DEST.
    Field in data file exceeds maximum length
    I'm using SQL Loader and the database is oracle 11g r2 on linux Red hat 5
    Here are the line causing the error fronm my data file and my table description for test:
    create table TEMP
    CODE VARCHAR2(100),
    DESC VARCHAR2(500),
    RATE     FLOAT,
    INCREASE VARCHAR2(20),
    COUNTRY VARCHAR2(500),
    DEST     CLOB,
    WEEK     VARCHAR2(10),
    IS_SAT VARCHAR2(50),
    IS_SUN VARCHAR2(50)
    CONTROL FILE:
    LOAD DATA
    INTO TABLE TEMP
    APPEND
    FIELDS TERMINATED BY X'9' TRAILING NULLCOLS
    CODE,
    DESC,
    RATE,
    INCREASE,
    COUNTRY),
    DEST,
    WEEK,
    IS_SAT,
    IS_SUN
    Data file:
    BHS Mobile     Bahamas - Mobile     0.1430          1     "242357, 242359, 242375, 242376, 242395, 242421, 242422, 242423, 242424, 242425, 242426, 242427, 242428, 242429, 242431, 242432, 242433, 242434, 242435, 242436, 242437, 242438, 242439, 242441, 242442, 242443, 242445, 242446, 242447, 242448, 242449, 242451, 242452, 242453, 242454, 242455, 242456, 242457, 242458, 242462, 242463, 242464, 242465, 242466, 242467, 242468, 24247, 242524, 242525, 242533, 242535, 242544, 242551, 242552, 242553, 242554, 242556, 242557, 242558, 242559, 242565, 242577, 242636, 242646, 242727"               
    BOL Mobile ENTEL     Bolivia - Mobile Entel     0.0865     Increase     591     "67, 68, 71, 72, 73, 740, 7410, 7411, 7412, 7413, 7414, 7415, 7420, 7421, 7422, 7423, 7424, 7425, 7430, 7431, 7432, 7433, 7434, 7435, 7436, 7437, 7440, 7441, 7442, 7443, 7444, 7445, 7450, 7451, 7452, 7453, 7454, 7455, 746, 7470, 7471, 7472, 7475, 7476, 7477, 7480, 7481, 7482, 7483, 7484, 7485, 7486, 7490, 7491, 7492, 7493, 7494, 7495, 7496"               Thank you.

    Hi
    Thank you for youe help, I found the solution and here what i do in my Control file i added
    char(40000) OPTIONALLY ENCLOSED BY '"' .
    LOAD DATA
    INTO TABLE TEMP
    APPEND
    FIELDS TERMINATED BY X'9' TRAILING NULLCOLS
    CODE,
    DESC,
    RATE,
    INCREASE,
    COUNTRY,
    DEST
    char(40000) OPTIONALLY ENCLOSED BY '"',
    WEEK,
    IS_SAT,
    IS_SUN
    Thank you for your help.

  • Variable length field exceeds maximum length for VARRAW in SQLLOADER

    Hi All,
    I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
    SIG_TYPE POSITION(23:23) CHAR,
    SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
    NULLIF SIGN_IMAGE=BLANKS,
    SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
         NULLIF SIGN_IMAGE1=BLANKS
    But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
    The error is like : Variable length field exceeds maximum length.
    But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
    Could any one tell me what is exactly the problem? i am not able sort out the issue.
    Thanks,
    Shashi

    Please only post in a single forum. Thank you.

  • Variable length field exceeds maximum length for VARRAW

    Hi All,
    I am trying to load some signature ascii data from load file. so i wrote the code like below in my controal file to load that to database. For SIGN_IMAGE in oracle db it was mentioned as RAW(2000). The below is worked fine when i tried in window and oracle 8i environment.
    SIG_TYPE POSITION(23:23) CHAR,
    SIGN_IMAGE POSITION(24:1977) VARRAW(2000)
    NULLIF SIGN_IMAGE=BLANKS,
    SIGN_IMAGE1 POSITION(1978:3930) VARRAW(2000)
         NULLIF SIGN_IMAGE1=BLANKS
    But when i ported the same thing to solaris and oracle 10g environment. The below code is giving error when SQL Loder loading.
    The error is like : Variable length field exceeds maximum length.
    But here i am giving a lenght of 1954 only with including 2 bytes length of the string.
    Could any one tell me what is exactly the problem? i am not able sort out the issue.
    Thanks,
    Shashi

    You should probably move this question to the General Database Discussions. This forum is for Oracle Forms not SQL:*Loader.

  • Writing own getLineNumber for parsing XML Schema

    I'm creating a XML Schema tool that checks that the user is creating valid Schema text.
    What I want to do is if the user has nested an element within a parent that it's not meant to. for example:
    <element name = "1">
            <element name = "2"/>
    </element>I want to return to the user the line number that the problem has occured.
    Because as far as the SAXParser is concerned this is valid XML I can't catch a SAXParseException.
    I'm using DOM to store the XML structure.
    Is there another way I can parse the document so that I can store the line number it orginially came from?
    Many thanks
    Alex

    Thats great, thanks.
    My problem now is how can I access the parent node using SAX().
    I have an arraylist for the parent of valid children, I need to check that the child node is infact one of these nodes.
    The problem being using SAX() I can access the previous node but if their are sibling nodes this will not identify the parent.
    This is the code I have so far:
    public class TestHandler extends DefaultHandler
         int lineNo = 1;
         public void startElement(String namespaceURI, String localname, String rawname, Attributes atts) throws SAXException
              SAX sax = new SAX();
              ArrayList nodes = sax.getSchemaNodes();
              for(int i = 0; i < nodes.size(); i++)
                   SchemaNode sn = (SchemaNode)nodes.get(i);
                   if(sn.getName().equals(localname))
                        System.out.println(sn.getName() + " = " + lineNo);
         public void endElement(String namespaceURI,String localname,String rawname) throws SAXException
         public void characters(char [] buf,int offset,int len)
              lineNo++;
    }Cheers Alex

  • Maximum length for Chart of Accounts

    hi experts,
    In chart of accounts max  length is 10. generally all are taken 6, if we take any other number other than 6 how is effect and how it works can you explain clerly ? pls explain effects wit all, like 1234578910
    Edited by: Lakshmipathi on Jan 4, 2012 7:02 PM
    Please use the subject effectively

    Hi,
    You can take any numbers considering that the number would be sufficient to accomodate the requirement of the company; even 3,4,5. You can even include alphabets in that. There is no hard rule that it should be 6, but the maximum is 10. Generally companies choose from 6-8; and for consolidated/group account even 10.
    Please let us know if you need any further details.
    Warm regards,
    Murukan Arunachalam
    Edited by: Murukan_A on Jan 4, 2012 5:34 PM

  • How to set maximum length for TextEdit

    Hi all,
        I have a TextEdit UI element in my webdynpro page and I want to set the maximum number of characters that can be entered in this TextEdit. How can I do this?
    Thanks,
    Satyajit.

    Hi Arun,
         thanks for the reply. But I also want to use the same scenario for an Inputfield. Now I used the same method here and when viewed in the browser, the entire InputField has been stretched. How can I keep the view of the InputField as default but still have a restriction on the number of characters that can be entered in this InputField? It works for TextEdit.
    Thanks,
    Satyajit.

  • Set maximum length for JFormettedtextfield

    Hi,
    how can restrict user to fill only 10 characters in JFormettedtextfield .
    thanks in advance

    Hi camickr,
    thanks for the hint................
    i had written the following code for that................is this ok.
    Here i want to allow user to enter characters other than alpha and number.
    javax.swing.text.MaskFormatter formatter;
              try {
                   formatter = new javax.swing.text.MaskFormatter("*");
                   formatter.setInvalidCharacters("0123456789ABCDEFGHHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz");
                   flat_file_delimiterFormattedTextField = new javax.swing.JFormattedTextField(formatter);
              } catch (ParseException e) {
                   // TODO Auto-generated catch block
                   javax.swing.JOptionPane.showMessageDialog(null,"Bad Format :","Error",javax.swing.JOptionPane.ERROR_MESSAGE);
                   //e.printStackTrace();
              }

  • Mapping DTO to XML Schema for Worship Web Service

    I have a number of DTOs that my application uses. This application
    needs to consume a number of document style web services created in
    workshop. When I generate the proxies for this web service, it creates
    Java beans for the XML schema types defined in the web service.
    Is there a way to get the workshop stubs to map my DTOs to XML schema?
    If not, what is the best way to do this mapping? Thanks.
    Mike

    I have a number of DTOs that my application uses. This application
    needs to consume a number of document style web services created in
    workshop. When I generate the proxies for this web service, it creates
    Java beans for the XML schema types defined in the web service.
    Is there a way to get the workshop stubs to map my DTOs to XML schema?
    If not, what is the best way to do this mapping? Thanks.
    Mike

  • Mapping DTO to XML Schema for Workshop Web Service

    I have a number of DTOs that my application uses. This application
    needs to consume a number of document style web services created in
    workshop. When I generate the proxies for this web service, it creates
    Java beans for the XML schema types defined in the web service.
    Is there a way to get the workshop stubs to map my DTOs to XML schema?
    If not, what is the best way to do this mapping? Thanks.
    Mike

    I have a number of DTOs that my application uses. This application
    needs to consume a number of document style web services created in
    workshop. When I generate the proxies for this web service, it creates
    Java beans for the XML schema types defined in the web service.
    Is there a way to get the workshop stubs to map my DTOs to XML schema?
    If not, what is the best way to do this mapping? Thanks.
    Mike

  • Maximum length of URL for RRI

    Hi all,
    I am trying to create a URL as a receiver for a BI Query. It appears to be truncating my URL. Is there a maximum length for a URL in RRI?
    The URL I'm trying to use is http://##.##.##.###/xxxxRegistryDemo/Report.jsp?r=aGFsdG9ufmhhbHRvbn5FbnRpdHkgRGV0YWls&o=
    I added the # and the x's to the URL for display purposes.
    Thanks,
    Morag

    There should not be any restrictions, the RSBBSQUERY table URL field is defined as STRING type.

  • FRM-30457: Maximum Length ignored for character-datatype

    Hi,
    I have a oracle form. When i use Compile Module (Ctrl + T) I am getting the following error:
    FRM-30457: Warning: Maximum Length ignored for character-datatype subordinate mirror item MAIN_CONTROLS.DATA1.
    Can anyone help to resolve this warning message?

    Hi,
    Check the data type of MAIN_CONTROLS.DATA1, i think, it must be a number.
    Or you might have not added the maximum length for MAIN_CONTROLS.DATA1.
    I found the below when I surfed.
    Error Message: FRM-30457: Warning: Maximum Length ignored for character-datatype subordinate mirror item %s.%s.
    Error Cause:
    A non-zero value was specified for the Maximum Length property in a subordinate mirror item whose Data Type is CHAR, ALPHA, or LONG. The Maximum Length property for such an item will be obtained from the master mirror item (the item specified by the Synchronize with Item property).
    Action:
    Specify the Maximum Length property in the master mirror item.

Maybe you are looking for

  • HP Photosmart C4400 series-Won't scan to Mac, but will Scan to Print

    I just bought the Snow leopard and this is my first time scanning to my computer...it keeps saying the scanner is not initialized or it will say "sorry, scanner could not be initialized. an error has occurred communication with the scanner." I downlo

  • 24" Imac Version 6.1 need help.

    I have a 24" IMac Version 6.1, with an Nvidia GeForce 7600 GT card. The computer froze 2 days ago with a strange square artifact appearing on the screen. I had to hold the power button to shut it down. When i rebooted it just got stuck at a gray scre

  • How to retain the data in global variable.

    Hi all, i have one login view, when one user logs into it and press enter, then user name get displayed in table. but, when other user login, then that previous user name get flushed off. what i want is to display all the previously logged in users t

  • No choice of sound output with lightning HDMI adapter connected.

    When the lightning HDMI adapter is plugged in, sound is piped through HDMI but I want the option to have the sound come through the iPad speaker, because the mini projector I use has only a 1 Watt speaker built-in, and the iPad sound is louder.  Anyo

  • Absurd length - say what?

    Has anyone seen this kind of error? Jan 27 14:22:32 EJ-G4 mdimportserver[198]: -[FileProcessor importMetadataFromFileAtPath:] Got exception * -[NSConcreteData initWithBytes:length:copy:freeWhenDone:bytesAreVM:]: absurd length: -1, maximum size: -2147