How to create XSD that contains elements of array as well ?

Hello,
I want to create a such XSD in Jdeveloper Like
Employee-
-firstName string
-lastName string
-student array
Student is another XSD.
Kindly provide me the source code or good link about that.
Thanks

Here you go...
<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.org"
targetNamespace="http://www.example.org"
elementFormDefault="qualified">
<xsd:element name="Employee" type="EmployeeType">
<xsd:annotation>
<xsd:documentation>
A sample element
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="EmployeeType">
<xsd:sequence>
<xsd:element name="firstName" type="xsd:string"/>
<xsd:element name="lastName" type="xsd:string"/>
<xsd:element name="student" type="xsd:string" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Here an Employee element will have one firstName element, one lastName element and student element. And you can see student can be 1 to many (outbounded) elements.
Hope this helps...
Thanks,
N

Similar Messages

  • How to create/add attributes in element list in Screen (example 100)

    HI,
    how to create/add attributes in element list in Screen (example 100)
    I mean after creating screen ..it has "OK CODE " attribute in element list tab in 100 screen.
    I want to create "container" in Element list tab in my screen 100 program
    I want to create new layout " container" in the element tab (i know if i click on layout button where i can create manually)
    Thanks
    Edited by: Raja on Apr 29, 2009 4:19 PM

    Hi Raja,
    Do you remember how you resolved this problem? I am facing the same. Appreciate your response.
    Thanks,
    Shailaja

  • The hard drive on my laptop that contained Elements just died.  Can I get a second copy for installation on my new PC?

    The hard drive on my laptop that contained Elements just died.  Can I get a second copy for installation on my new PC?

    The iPhone is not a backup device.
    Restore the iTunes library from the backup that should be kept of your media and other important files.
    Syncing the iPhone to a new library (in this case, it will be a new library unless you have a complete backup of the iTunes folder pre-crash) will result in the media on the device being removed and replaced with content from the new library.
    As for iOS5, we really do not know until Apple officially releases it.

  • How to Create inspection that assign to Purchase Order / Material Document

    Dear QM Master,
    I am using QA01 to create inspection lot but can any master tell me , How to Create inspection that assign to Purchase Order / Material Document ?
    Appreciate.
    Thank you.

    Hello,
    When you create an inspection lot manually, you cannot reference an original document (for example, a goods receipt document, an order, or a delivery note).
    In QA01 you can create inspection lot manually for all inspection lot origins except the following:
    10 - Delivery to customer with sales order
    11 - Delivery to customer without sales order
    12 - General delivery
    13 - Repetitive manufacturing
    14 - Plant maintenance
    You can also refer this link
    http://help.sap.com/saphelp_47x200/helpdata/en/2d/3519d8448c11d189420000e829fbbd/frameset.htm
    Please check and revert.
    Regards,
    Priyanka

  • Create page that contains buttons

    I need to create page that contains many buttons each one is used for opening a specific page.
    Can anybody help me to give the steps?

    Hi,
    I think you need help for HTML DB.
    - Go and create page (could be HTML)
    - Then add region (form region)
    - Create buttons. Every button has ability to redirect to Page in this Application or URL. Just choose any page in the application.
    - On each step you can hit help to learn details.
    - There is a function “Create Multiple Buttons”
    Konstantin
    [email protected]

  • How to create slide shows in Elements 11?

    Can't find how to create a slide show in Elements 11.  Is it possible?

    See here:
    How to Create Slideshows in Photoshop Elements 11 - For Dummies
    and
    Learn how to use Photoshop Elements 11 - Part 22 - How to Create a Slideshow in Photoshop - YouTube

  • Acquired ayrport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

    Acquired airport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

    Acquired airport Express, configured it, but how to create one that I could plug in other devices, it needs to register each new device that connects to it .... What to do?

  • How to create script that run sudo-command?

    I often need to run command:
    sudo "/Library/Application Support/VMware Fusion/boot.sh" --restart
    This needs to be run as admin.
    Can anybody tell me how to create script that will login as admin and run that command in terminal?
    Or from where can I get help how to add commands to a script?
    Thanks
    Tomi

    Your best bet on getting a cogent answer is to post to the Unix forum under OS X Technologies.

  • How to create a word container

    Hello All,
    Can any one tell me How to create a word container.
    Thanks and regards,
    Lisa

    Hi,
    check this program :
    SAPRDEMOWORD97INTEGRATION
    Regards
    Appana

  • How can I use iWeb to create website that contains a lot of downloadable audio files?

    Hi
    How to use iWeb to create a website that contains a downloadable audio files.  I'm uloading about 15 GB of audio files.  I need to creat folders "albums" and then put the files in these folders.   Any advise?
    Thank you very much for your time to this
    W B

    The important thing is not to put the audio files directly into iWeb: if you do that then every time iWeb decides it needs to upload the entire site you will find yourself uploading all 15GB of audio files, which won't make you happy. Start by uploading the files to the server - in folders as suits you - and then link to them in iWeb.
    If you want them to download rather than play, you may be able to set up an .'htaccess' file in the folder which will force a download - it depends on whether your hosting service will allow this. The method is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/missing/download.html
    Here is an example of a simple link which produces a download (without the process described the audio file would play in the browser in a blank page):
    http://rfwilmut.net/stars/dawson2.mp3
    Then all you need to do is to provide a link, designed however suits you, in your iWeb page. If your server won't allow the .htaccess file then you will have to ask visitors to control-click (Mac) or right-click (Windows) on the link and choose 'Download linked file' or equivalent - not so convenient; or otherwise zip the files first, which won't much reduce their size but will force a download (and of course the recipients will have to unzip them).
    If you want the files to play in a player in the page, you can use an html snippet to provide a player as described in this page (you will also need to upload a script to the webspace - this is provided in the page):
    http://www.wilmut.webspace.virginmedia.com/notes/qtembed.html

  • How to create the Dynamic UI element table in web dynpro in abap

    Hi All,
    Does anybody have reference note or teach me how to create dynamic UI element table in web dynpro in abap ?
    Regards,
    Luke

    HI LukeWong ,
    for creating any UI dynamically you shoul use their runtime class that always start with cl_wd_* ui element name*
    so for the Table UI element the runtime class is CL_WD_TABLE
    now reffer the below code for creating the Table UI dynamically
    METHOD wddomodifyview.
    DATA lr_table TYPE REF TO cl_wd_table.
    DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
    DATA lr_container TYPE REF TO cl_wd_uielement_container.
    DATA lr_column_name TYPE REF TO cl_wd_table_column.
    DATA lr_text_view TYPE REF TO cl_wd_text_view.
    DATA lr_table_header TYPE REF TO cl_wd_caption.
    DATA lr_column_name_header TYPE REF TO cl_wd_caption.
    IF first_time EQ abap_true.
    lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
    lr_table = cl_wd_table=>new_table(
    id = 'TBL_TABLE'
    bind_data_source = 'TABLE'
    design = cl_wd_table=>e_design-alternating
    visible_row_count = 3
    lr_flow_data = cl_wd_flow_data=>new_flow_data( element =
    lr_table ).
    lr_container->add_child( lr_table ).
    lr_column_name = cl_wd_table_column=>new_table_column(
    id = 'TBL_EXAMPLE_NAME'
    lr_table_header ?= cl_wd_caption=>new_caption( text = 'Table UI elem
    ent - example').
    lr_table->add_column( the_column = lr_column_name ).
    lr_table->set_header( lr_table_header ).
    lr_text_view = cl_wd_text_view=>new_text_view(
    id = 'TXV_NAME'
    bind_text = 'TABLE.NAME'
    lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'Name').
    lr_column_name->set_table_cell_editor( the_table_cell_editor = lr_text_view).
    lr_column_name->set_header( lr_column_name_header ).
    ENDIF.
    ENDMETHOD.
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Sep 17, 2010 12:01 PM

  • How to round value of container element in task description

    I am trying to round the value of the container element from 3 decimals to 2 decimals for display purposes.
    The command symbol in the task description is &_WI_Object_Id.OverallTotalCost&. I have looked at SAP Help and I have tried the suggestion of &_WI_Object_Id.OverallTotalCost(.2)& and &_WI_Object_Id.OverallTotalCost(Z.2)& with no success.
    I have also searched the sap-wug mailing list and SAP ITToolBox and found no references rounding a container element in a task description. I have seen code assigning a value to a packed decimal variable to round. But I have not been able to get this to work as a command in a description for a task.

    I created a new element in the container as suggested by Glauco and added the element binding in the workflow / task binding. Biggest hassle was finding a business object that had a type of 2 decimal places to use for the new container element.
    The reason why the SAPScript symbol for reducing the number of decimals does not work in Task texts is because the container elment symbols are resolved first as text. Therefore only the SAPScript commands that apply to text will work like length.

  • How to create a roadmap ui element dynamically in webdynpro abap?

    Dear  team
    iam new for webdynpro my question is how to create the road map programme dynamically using webdynpro
    could you tell me what are the steps i have to take, what are the elements i have to bind?
    and what code & where i have to write the code?
    regards
    sathya

    Hi Sathya,
                  Write the follwing code in WDDOMODIFYVIEW method to create a Dynamic ROADMAP and also create an attribute of
                   type string to control the selection of steps in road map.
    method WDDOMODIFYVIEW .
      data : lr_ele type ref to if_wd_view_element.
      data : lr_rm type ref to cl_wd_road_map.
      data : lr_step type ref to cl_wd_road_map_step.
      data: lr_container type ref to cl_wd_transparent_container.
      data : lr_flowdata type ref to cl_wd_flow_data.
      CALL METHOD view->get_root_element
        receiving
          root_view_element = lr_ele.
      lr_container ?= lr_ele.
    CALL METHOD cl_wd_road_map=>new_road_map
      EXPORTING
        id                       = 'ROADMAP'
      receiving
        control                  = lr_rm.
    CALL METHOD lr_rm->bind_selected_step
      EXPORTING
        path   = 'VALUE'.
    CALL METHOD cl_wd_flow_data=>new_flow_data
      EXPORTING
        element     = lr_rm
      receiving
        control     = lr_flowdata.
    CALL METHOD lr_container->add_child
      EXPORTING
        index     = 1
        the_child = lr_rm.
    CALL METHOD cl_wd_road_map_step=>new_road_map_step
      EXPORTING
        id                  = 'ONE'
        name                = '1'
      receiving
        control             = lr_step.
    CALL METHOD lr_rm->add_step
      EXPORTING
        index    = 1
        the_step = lr_step.
    CALL METHOD cl_wd_road_map_step=>new_road_map_step
      EXPORTING
        id                  = 'TWO'
        name                = '2'
      receiving
        control             = lr_step.
    CALL METHOD lr_rm->add_step
      EXPORTING
        index    = 2
        the_step = lr_step.
    CALL METHOD cl_wd_road_map_step=>new_road_map_step
      EXPORTING
        id                  = 'THREE'
        name                = '3'
      receiving
        control             = lr_step.
    CALL METHOD lr_rm->add_step
      EXPORTING
        index    = 3
        the_step = lr_step.
    endmethod.
    Then you can use the context attribute to navigate between the steps and do respective actions.

  • How to create an image contains text

    hello folks,
    I want create a zoomable gaphical application that contains text. By a simple example, I will put the paragraph of text in a rectangle. I used BufferedImage and Graphics2D for draw the rectangle and using function drawString(String, X, Y) for draw Text but I have met a wrap problem when the rectangle is zoomed. I want that when the rectangle is zooming there is not the difference of wrapping of two rectangles. (there is only the change of zoom ratio of 2 rectangles)
    Pls, give me a solution.
    many thanks,
    jav
    PS: Sorry for my bad english. :-)

    met a wrap problemIf you want to clarify your problem for audience of the forum, you shoul post a small demo code that is generally compilable, runnable and could reproduce your problem. See: http://homepage1.nifty.com/algafield/sscce.html and this wiki.
    As a stabbing in the dark, I'd say the problem could be solved by constantly recreating/redrawing the text-image during the zoom operation. Optimization might be preloading of the images.

  • Creating objects that contain objects

    What's the best practice for creating an object from a table that contains a list of objects from another table? For example, say I have an employees table:
    EMPLOYEES
    id    name
    1     Derek Epperson
    2     Judy Johnsonand I also have an equipment table that contains all the equipment belonging to each employee
    EQUIPMENT
    id    emp_id   name
    101   1        Laptop Computer
    102   1        Flash Drive
    103   2        Desktop Computer
    104   2        Wireless RouterI want to create a Java function that will return create a List of two Employees, each with a List<Equipment> of that employee's equipment. One option is to create the Employees and then query for Equipment separately, like this:
    List<Employee> employees = myDAO.getEmployees();
    for (Employee employee : employees) {
      employee.setEquipment(myDAO.getEquipment(employee.getId()));
    }However, that is a lot of database calls. Is there an easy way to do this in a single query?

    By JOIN, you mean connect them so that a query will return something like this?
    EMPLOYEES
    id    name             equip_id   equip_name
    1     Derek Epperson   101        Laptop Computer
    1     Derek Epperson   102        Flash Drive
    2     Judy Johnson     103        Desktop Computer
    2     Judy Johnson     104        Wireless RouterThen I would have to check on each row whether the id had changed, a la:
    rs = ps.executeQuery(getEmployeesAndEquipmentJoin);
    int previousId = -1;
    Employee employee
    while (rs.next()) {
      if (rs.getInt("id") != previousId) {
        previousId = rs.getInt("id");
        employee = new Employee(rs);
        employees.add(employee);
      employee.getEquipment.add(new Equipment(rs));
    }That seems a little awkward, but if that's the best way to do it without ORM then I can work with that.

Maybe you are looking for

  • Microsoft Sharepoint Designer 2013 encountered an error during setup

    I'm trying to install SharePoint Designer 2013 on my system, but I keep getting this error with no other detail.  Looking into the SetupExe log file that the event viewer pointed to didn't really identify anything that would point me to the culprit (

  • In Switch Executive am I better off using manual or execution

    If I close a relay using Switch Exec ( IVI Switch)  in Test Stand 4.0, take a measurement then open that relay am I better off using manual or execution for the "life" of the step? I want to make sure the switch is open after the open relay step is e

  • MANAGING JPEG and RAW in PHOTOS OS X

    I shoot in JPEG plus RAW.  The files are imported OK to the Photos app and are shown as stacked.  How do I DELETE several of the RAW images at once and RETAIN the JPEG version alone and thus save space on my drive. Thanks

  • Access managed beans in action methods

    Hi, I am a newbie in JSF. In my first page, I am getting input from the user and pass it to my business object for processing. My Business Object returns some results and i want to show it in page 2 which has a different backing bean. So I am accessi

  • The error 034 when calling BAPI_XBP_JOB_START_IMMEDIATELY

    Hi,dear all, When I call the function 'BAPI_XBP_JOB_START_IMMEDIATELY' to start all jobs, the 'RETURN' type 'BAPIRET2', 'NUMBER' is 034, 'TYPE' is E. Do you have some idea about what's the potential problem on it? Thanks a lot.