Need xml tags for min and max length and required fields

Hi - the following is the code that I am using to create a schema,register the schema, create a xml table and insert data into the table. notice that I am using the minOccurs and maxOccurs in the schema defenition but when I insert a record into the table with a value larger then the maxOccurs had been set to and I was able to succesful in the insert. Can someone tell me if I am usig the right tags and if not which tags am I supposed to be sing?
EXEC dbms_xmlschema.deleteSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd',dbms_xmlschema.DELETE_CASCADE_FORCE);
declare
doc1 clob:= '
<schema elementFormDefault="qualified"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
xmlns:hematest="http://www.specialtysystems.com/fraamed/kaylatest.xsd">
<element name =�airspace�>
<complexType>
<sequence>
<element name=�airspace_areas� minOccurs=�0� maxOccurs=�unbounded�>
                    <complexType>
                         <sequence>
<element name=�area� minOccurs=�1� maxOccurs=�1�>
<simpleType>
<restriction base="integer">
<minInclusive value="-999999"/>
<maxInclusive value="9999999"/>
</restriction>
</simpleType>
</element>
                         </sequence>
     </complexType>
               </element>
          </sequence>
     </complexType>
</element>
</schema>
begin
dbms_xmlschema.registerSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd', doc1);
end;
Drop table kaylatest;
create table kaylatest(
schedules xmltype)
xmltype column schedules
XMLSCHEMA "www.specialtysystems.com/fraamed/kaylatest.xsd"
element "airspace";
insert into kaylatest (schedules) values
(XMLTYPE('
<airspace
xmlns="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.specialtysystems.com/fraamed/kaylatest.xsd
http://www.specialtysystems.com/fraamed/kaylatest.xsd">
<airspace_areas>
<area>99999999999999999999999999</area>
</airspace_areas>
</airspace>

Please see the posting guidelines thread...
Posting Guidelines...
BTW also note that the forum has a search capability.

Similar Messages

  • Generation of XML Tags for columns in Lexical parameter in select query

    Hi,
    I have lexical parameter in my select statement of my data model in the report.
    How do i generate XML tags for these columns inside a Lexical Parameter?
    Simple Example: I have data model query as follows:
    SELECT msi.inventory_item_id
    &LP_SELECT
    FROM mtl_system_items_b
    Here my lexical Parameter LP_SELECT is generated in before report trigger as follows in my report:
    :LP_SELECT := 'msi.segment1,msi.description';
    So, the question is how to generate XML Tags for columns in Lexical Parameter(as in the example above, i need XML tags for these columns - segment1 and description)
    Thanks,
    Ratan

    try this
    Select &order data_show
    from oe_order_headers_all
    where order_number ='7889'
    and setting  :order:='order_number';  in after parameter form trigger.
    Hope this helps
    Hamid

  • PDF PO Release - XML Tags for the Header and Line Attachments

    Hi,
    I request you to please help me in finding out the XML tags for the PDF PO Release Header and Line Attachments? I tried to get the XML data by running the 'PO Output for Communication' program with the parameter as 'Debug' but its completing normally without giving me the XML data in the log file.
    Please help me in finding the XML tags for the PDF PO Release for the Header and Line Attachments.
    Thanks,
    Kunal

    Hi Kunal,
    Following syntax will get you the header and line level short and long text attachments.
    --Header short text attachments
    <?for-each:HEADER_SHORT_TEXT_ROW?>
         <?SHORT_TEXT?>
    <?end for-each?>
    --Header long text attachments
    <?for-each:/PO_DATA/HEADER_ATTACHMENTS/LONG_TEXT?>
         <?.?>
    <?end for-each?>
    --Line short text attachments
    <?for-each:LINE_SHORT_TEXT_ROW?>
         <?SHORT_TEXT?>
    <?end for-each?>
    --Line long text attachments
    <?variable@incontext:PoLnID;'PO_LINE_ID'?><?for-each:/PO_DATA/LINE_ATTACHMENTS/ID[. =$PoLnID]?>
         <?current()[$PoLnID]/preceding-sibling::TEXT[1]?>
    <?end for-each?>
    Also note that, while running the program in Debug mode for a particular PO/Release the status should be INCOMPLETE, otherwise you won't be able to see the XML tags.
    Thanks,
    PS.
    Edited by: PS on Sep 25, 2012 6:16 AM

  • Getting xml tags for PO releases.

    I need some help in getting xml tags for PO releases.
    When I refer metalink they gave me the following for Std PO.
    Create a new Standard Purchase Order and DO NOT approve it. Let it be in Incomplete status. Go to
    concurrent requests and run the 'PO Output for Communication' concurrent
    program will the following parameters:
    Print Selection: All
    Purchase Order Number From: The PO # you just created
    To: The PO # you just created
    Test: Debug
    May I know for PO releases what are additional parameters.I tried to enter release numbers in addition to the above.Bit it did not work,..
    I am having issue in getting buyer contact phone for PO releases.So I am trying to see if the work_tele_phone is available for Po releases xml tags.
    Can anyone please advise
    prasamb

    To get the tag name, you can use the following XSL stylesheet:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="node()">
    <xsl:value-of select="name()"/> <xsl:text> </xsl:text>
    <xsl:apply-templates/>
    </xsl:template>
    </xsl:stylesheet>

  • Zero fill and max length VC7 Compile to WebDynpro not working

    Hi,
    i try to call Customer get list and set the attributes zero fill and max length to the input table form.
    But the user has to put in the exact length and zero filled.
    Any idea what to do
    Thanks
    Uwe

    Hi Uwe,
    if I understand your question you need something like an alpha conversion.
    You can use a formula, therefore is an textfunction called LPAD(text,len,pad).
    You can use it like this:
    LPAD(@yourtext, 18, "0")
    @yourtext contains the input, the length is 18 and filling values is 0 like a alpha conversion.
    Best Regards,
    Marcel

  • [CS3][JS] Apply XML tag for selected text

    Hi
      I need to apply XML tag to selected text in a tagged content.The XML tag is already applied for paragraph.I need to apply XML Tag for selected text in a paragraph.
    I have used following code, it applies tag for entire paragraph,not a selected text in a paragraph.
    app.selection[0].associatedXMLElements[0].markupTag=myDoc.xmlTags.item("italic");
    Please suggest me.
    Regards
    kumar

    The example script, markup.jsx
    //Markup.jsx
    //An InDesign CS4 JavaScript
    //Shows how to use the markup method.
    main();
    function main(){
        mySetup();
        mySnippet();
        myTeardown();
    function mySetup(){
        var myDocument = app.documents.add();
        var myPage = app.activeWindow.activePage;
        var myRootXMLElement = myDocument.xmlElements.item(0);
        var myXMLTag = myDocument.xmlTags.add("xml_element");
        var myXMLElementA = myRootXMLElement.xmlElements.add(myXMLTag);
        myXMLElementA.contents = "This is a paragraph in an XML story.";
        var myTextFrame = myPage.textFrames.add({geometricBounds:myGetBounds(myDocument, myPage)});
        myTextFrame.contents = "This is the first paragraph in a text frame.\rThis is the second paragraph in a text frame.\rThis is the third paragraph in a text frame.\rThis is the fourth paragraph in a text frame.\r";
    function mySnippet(){
        //<fragment>
        var myDocument = app.documents.item(0);
        var myPage = myDocument.pages.item(0);
        myDocument.xmlElements.item(0).xmlElements.item(0).markup(myPage.textFrames.item(0));
        //</fragment>
    function myTeardown(){
    function myGetBounds(myDocument, myPage){
        var myPageWidth = myDocument.documentPreferences.pageWidth;
        var myPageHeight = myDocument.documentPreferences.pageHeight
        if(myPage.side == PageSideOptions.leftHand){
            var myX2 = myPage.marginPreferences.left;
            var myX1 = myPage.marginPreferences.right;
        else{
            var myX1 = myPage.marginPreferences.left;
            var myX2 = myPage.marginPreferences.right;
        var myY1 = myPage.marginPreferences.top;
        var myX2 = myPageWidth - myX2;
        var myY2 = myPageHeight - myPage.marginPreferences.bottom;
        return [myY1, myX1, myY2, myX2];
    I think you can use the markup function on the selected item (Text Object have a markup method)
    Thomas B. Nielsen
    http://www.lund-co.dk

  • Need a link for PS CS6 Extended Student and Teach

    Need a link for PS CS6 Extended Student and Teacher's Edition.  My copy fried on my laptop and I need to re-install or do a repair install.  The adobe site is trying to force me into this cloud product world.  The links here:
    http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html
    Are broken --- I won the product - just need install files again without being assimilated into a whole new cloud platform.  Why break the old links?  I  have had this about 20 months....

    Manning777 you should be able to download the software from the page you referenced.  I would recommend trying a different web browser or perhaps checking the security settings on your browser.

  • REST API XML tags for person extension fields

    We are trying to use REST API to create a person. We are able to update most of the data but am unable to find the right xml tags for Person Extension fields like custom1 etc. Could you please help?

    Hi !
    In the Account WSDL, you have the ListOfAddress object. If you are using it, filling the field "StreetAddress2" should work...
    Max

  • I need a refund for storage charges I bought and did not need for iCloud!

    I need a refund for storage charges I bought and did not need for iCloud!

    You only have 15 days to cancel and get a refund.
    In the UK click on this link:
    HT4874 iCloud Storage Upgrade refund

  • Setting max length of the field when using Context Model Node

    I have created a model using Import Adaptive Web Service model option (a web service was a wrapper around SAP BAPI function module).
    There were no dictionary types created in the Local dictionary as a result of import.
    I have mapped the context of the controller to the model node.
    One of the fields in the model is name     CUSTOMER_NUMBER type string;
    Corresponding element in the wsdl of the web service is
    <xsd:element name="CUSTOMER_NUMBER" type="tns:char10" />
    I have created a view with the input filed mapped to the CUSTOMER_NUMBER field of the model node.
    When I type more than 10 chars into the field and hit the search button, I get a com.sap.dictionary.runtime.Ddcheck exception that the length of the field should be less than 10 chars.
    How can I set the max length of the field in design time to prevent runtime exception?
    Thanks,
    Julia

    Thank you for your reply.
    Java trim function will trim the white spaces only, not the characters.
    I can code check length functionality before calling execute function (the function that call the web service).
    I can also create a dictionary structure based on the model structure; create a context value node based on the dictionary structure and use WDCopyService API to move the data between value node and model node.
    I was looking for the best practice...
    When importing model based on Adaptive RFC, the dictionary structures are imported together with the model. This does not happen for Adaptive web service - hence there is a need to add coding for simple checks.
    Julia

  • Formula for MIN and MAX per range required in BW

    Good day
    Please assist with the following? I need to create a formula (CKF) in BW Query which will give me the same result as the following formula in Excel.
    What I have is one Key Figure and want to calculate a Score on that key figure.
    Score =Key figure/(MAX(range of ie. column B1 to B50 which contains data for the same KF)-MIN(range of ie. column B50 which contains data for the same KF).
    In excel it's easy, ie" Score =TD completed/(MAX(B28:B130)-MIN(B28:B130)
    If more information is required to assist, please let me know?
    Always appreciated.
    Cornelius

    Thank U so much for responding so fast.
    I did the MIN and MAX formula, but it is only taking the MIN or MAX from the single cell of the applicable key figure and not from a 'range' of cells. This is a further example of what I want to do:
    Cell: B1 = 10
            B2 = 12
            B3 = 15
            B4 = 0
    I want to display the MIN as '0' and the MAX as '15' and then do the calculation per row.
    We are in 3.2x. I want to stay away from structures as I have not done that before.
    Any other assistance will be highly appreciated.
    Cornelius

  • Oracle Portal, OWA_UTIL.redirect_url and Max Length URL

    I have a question relating to the max length of a URL that can be used within Internet Explorer 5.5 and Oracle Portal (3.0.9.8.5) On IAS 9i version 1.0.2.2.2
    My portal page submits to a procedure that carries out some basic DML and then uses the OWA_UTIL.redirect_url api to go to a different page.
    When I am in the DML procedure, I build up several string "name/pair" values that concatenate onto my redirect url.
    i.e.
    str1 := 'p_test=1&p_test=2&p_test=3&p_test=4';
    str2 := '&p_loc=USA&p_loc=GB&p_loc=NZ';
    url := 'http://my_procedure?' || str1 || str2;
    OWA_UTIL.redirect_url (url);
    The problem I am having is that in some cases the length of the URL that i produce exceeds the max length permitted by Microsoft I.E 5.5 (2048 characters) and hence my redirect fails.
    I understand that if i were to submit the name/pair values through the header then I could have as many as necessary and have read somewhere that it is possible while using the OWA_UTIL.redirect_url api to write values into the header and then close it.
    If this is possible could someone please explain how giving an example. If not is there a workaround to this problem?
    Regards
    Duncan

    I believe that this API actually writes a redirect request into
    the header of the HTTP request. For this redirect to work, the
    body of the HTTP request needs to be empty (i.e. you can't have
    any HTML being sent in the request).
    The OWA_UTIL packages actually provide some leeway here because
    it usually reorganizes requests. That gives you some
    flexibility with what you can include, but I believe that you're
    running into a limitation imposed by the HTTP specifications.

  • XML tag for dia of PIE chart in Oracle 9i Report Devloper

    Hi ,
    I'm using Oracle 9i reports Devloper and facing some problem with the controls in pie Graph. We are trying to do this by modifying DTD for graph in XML. Need of the hour is to increase the dia of pie graph. Can anyone suggest which XML tag to be used for the same.
    Attaching herewith DTD for the graph.
    ***************DTD FOR GRAPH START****************************
    <rw:graph id="CT_1" src="G_Graph" series="Heading" dataValues="No_Of_Scripts2">
    <!--
    <?xml version="1.0" ?>
    <Graph version="2.5.0.5" graphType="PIE" depthAngle="0" depthRadius="4.5" pieDepth="0" markerTooltipType="MTT_NONE" pieTilt="0">
    <DataviewFootnote foreground="#0" background="#ffffff"/>
    <DataviewSubtitle foreground="#0" background="#ffffff"/>
    <DataviewTitle foreground="#0" background="#0"/>
    <LegendArea visible="false"/>
    <O1Axis lineWidth="1"/>
    <O1MajorTick lineWidth="1"/>
    <O1Title textRotation="TR_HORIZ_ROTATE_90"/>
    <PieFrame fillTransparent="false"/>
    <SeriesItems>
    <Series id="0" color="#000000"/>
    <Series id="1" color="#333333"/>
    <Series id="2" color="#666666"/>
    <Series id="3" color="#999999"/>
    <Series id="4" color="#cccccc"/>
    <Series id="5" color="#FFFFFF"/>
    </SeriesItems>
    <SliceLabel textType="LD_TEXT_PERCENT">
    <ViewFormat decimalSeparatorUsed="true" decimalSeparator="." decimalDigitUsed="true" decimalDigit="0"/>
    <GraphFont name="Arial" size="11"/>
    </SliceLabel>
    <X1Axis lineWidth="1"/>
    <Y1Axis lineWidth="1" majorTickStep="15.0"/>
    <Y1MajorTick lineWidth="1"/>
    <Y2Axis lineWidth="1"/>
    <Y2MajorTick lineWidth="1"/>
    </Graph>
    -->
    </rw:graph>
    ***************DTD FOR GRAPH END****************************
    Santosh

    Prakash
    We are currently working on better BI Graph bean xml documentation, so today all you have is the graph.dtd which is located in the bigraphbean.jar.
    Thanks
    The Oracle Report Team

  • Error for fetching long text in xml tag for xml publisher report

    My requirement is to fetch a large document which is in text format in XML output which can be printed in PDF format by using RTF method to generate PDF.But during XML ouput i got the following error-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
    button, or try again later.
    The following tags were not closed: XXBG_EAMWRREP_V1, LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1,
    G_MEDIA...
    XXBG_EAMWRREP_V1 is the rdf and LIST_G_WO_ACTIVITY_CODE, G_WO_ACTIVITY_CODE, LIST_G_MEDIA_ID1, G_MEDIA are the groups name. In the group
    G_MEDIA i am fetching long_text from attahcment in application. In Database table the datatype of the text attachment is 'long' and there is a huge text
    data loaded in large data editor of that column. If the text data volume is small enough then there is no problem for fetching the xml output.
    If we change the output format as HTMl then there is no problem for fetching the output for long text but for xml output format we are unable to fetch the data
    in xml tag.
    One thing to mention the oracle report is the copy of Maintenance Work Order Detail Report. The seeded report is HTML format in 11i. The requirement is to make it in xml report.
    Please help.

    Hi,
    Actually clob datatype is not available in oracle report builder datatype lov. Could you pls tell the other ways of converting that to clob in oracle report...

  • How to add Multiple XML Tags for a single column for an RDF

    Hi Gurus,
    I have Requirement in the Oracle D2k Report from which we are generating the xml tags.
    My Requirement is in a table i have 2 columns say A and B.
    i am able to generate three xml tags separately using the report builder by clicking on the column name and in the xml setting giving the xml tag.
    eg: table Acount contains 2 columns A and B with respective data
    A B
    QT 1
    QTS 0
    QTR 2
    i am able to general xml tags like this
    <ACount>
    <AStatus>QT</AStatus>
    <HeadCount>1</HeadCount>
    </ACount>
    <ACount>
    <AStatus>QTS</AStatus>
    <HeadCount>0</HeadCount>
    </ACount>
    my requiremnt for the xml tags is
    <ACount>
    <AStatusQT>1</AStatusQT>
    <AStatusQTS>0</AStatusQTS>
    </ACount>
    kindly help me out how to achieve this requirment in the rdf file mulitple xml tags.
    all your input are most valuable to me, thanks in advance
    Edited by: 909577 on Apr 9, 2012 3:10 PM

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

Maybe you are looking for

  • Can i use this script in illustrator?

    can i use this script in illustrator? Newsgroup_User

  • Cost center digit change

    Dear Experts, If we would like to do mass change for our cost center from 4 digits to 5 digits, what is the affect ? and what is trans code/data/process to be checked then? Kindly advice. Thank you.

  • How to create a pager like iOS

    Hello forum, I need to create an effect like iOS pager. I need to create a StackPane with this layers: 1st layer a TableView 2nd layer a button ancor on right. I need a clickable cell's table and button. Can u help me? Thanks in advanced

  • Bootcamp vs virtual pc vs parallels vs vware

    it's been several years since i used a windows emulator, tho i used earlier versions of bootcamp, virtual pc (with win xp pro) and parallels. i find myself in a position where i need to run some software for work running win xp pro, which i own. what

  • New iMac movie encoding times?

    Thinking about getting a new 20" iMac, but am wondering what is the typical encoding time for a movie using iDVD 6? Right now I'm using iDVD 4 and a PM dual 1ghz G4, and encoding takes about 4-6 hours for a one hour movie. Hopefully this is much fast