How can I define an XML schema for this kind of XML

Hi, There:
I want to generate an XML file like:
<customer>
</customer>
<transaction>
</transaction>
<customer>
</customer>
which have multiple customer elements and multiple transactions as well, and they can happen in mixed sequence. Can any one give me some idea about how can I create an XML schema for this kind of xml? (<xsd:complextype> <xsd:sequence> ) seems not work)
Thanks in advance
David

Use a group then make it a choice, like this;
<xs:element name="Parent">
<xs:complexType>
<xs:group ref="Group" minOccurs="1" maxOccurs="unbounded" />
</xs:complexType>
</xs:element>
<xs:group name="Group">
<xs:choice>
<xs:element ref="OptionOne" type="xs:string" />
<xs:element ref="OptionTwo" />
</xs:choice>
</xs:group>
<xs:element name="OptionOne">
<xs:complexType>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="Type" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="OptionTwo">
<xs:complexType>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="Type" type="xs:string" />
</xs:complexType>
</xs:element>
This allows XML like this
<Parent>
<OptionTwo ........ />
<OptionOne ........ />
<OptionTwo ........ />
<OptionOne ........ />
<OptionOne ........ />
</Parent>
HH

Similar Messages

  • How can I define the possible entries for "invoicing process" at fkkinv_ma?

    At the transaction code fkkinv_ma, I fill in the fields "Date ID" and "Identification" but I have a problem with the field of "Invoicing Process". When I psh theF4 button, there comes no search help. What should I do? Should I define the possible entries first? If I should, how can I define the possible entries for "invoicing process"? How is the customization done?
    Thanks in advance for the answers.

    You have to define them in the IMG 
    Financial Accounting (new)
    Contract Account Recievable and Payable
    Business Transactions
    Invoicing
    Invoice Types
    You have to set up a number range, decide what type of Financial transactions should not be invoiced -- like  Dunning Charges
    then you have to have a developer create the form and form class of invoice.

  • How can we define no of processors for a server

    How can we define no of processors for a server.on what factor that No of Processors depends? Is it based on
    1.Application type,
    2.No of transaction perday,
    3.No Of users connected simulatneoulsy

    You can also add the quality of the application to your list. A poorly writtern application cangobble up resources faster than you can spend.
    Also, the size of the database. Bigger size means increased memory, disk, and CPU.

  • How do i get a list of all Roles defubed under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?

     

    Sorry for the typographical mistake.
    Please read the question as:"How do i get a list of all Roles defined under a particular OrganizationalUnit? How can i use LDAPConnection.search method for this?"

  • I lost my serial number for photoshop elements11 and premiere elements 11 combo.  how can I obtain a serial number for this program?

    I lost my serial number for photoshop elements11 and premiere elements 11 combo.  how can I obtain a serial number for this program?

    If you registered the software you should be able to find the serial number thru your Adobe account online.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How can you define a different homepage for a user?

    Hi
    I am fairly new to Application express, I have created an application but I would like to define a different homepage for a user when they login. Of course I can modifiy the PLSQL code:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    With a different page, however I would like to setup a different home page depending on the user that logs in - I tried setting up a conditional process specifying P_101_USERNAME but this did not work...any ideas on how this can be achieved?

    Hi
    Thank you for your response, I have created the function:
    create or replace function "GETDEFPAGE"
    (auser in VARCHAR2)
    return VARCHAR2
    is
    Defpage number;
    begin
    select DefaultPageNumber into Defpage from users_table where username='aUser';
    return Defpage;
    end;
    Can you please assist me on how I can call the function in the login process within the block:
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    );

  • How can I define same Price Conditions for two different Sales Deals ??

    I need to define for the same price condition, lets say ZPMP, two different values or condition records, for two different sales deals and the same valid dates
    For example, Sales deal 1, ZPMP equal to USD 15 and valid dates from 04/15/08 to 04/30/08.
    Another condition record for Sales deal 2, ZPMP equal to USD 20 and valid dates from 04/15/08 to 04/30/08
    How can I do this.
    Thanks in advance.

    While creating condition tables, you have the option to create different key combinations. So if you want the system to take different condition records for different sales deals, there has to be a point of differentiation between those 2 sales deals.
    This can be done in one of the following ways:
    by giving customer specific prices
    by giving material specific prices for a particular customer etc
    All this can be defined as different key combinations while creating the condition tables. For each key combination, you can specify different condition records, so that the system is able to pull prices according to the requirement.
    But if the sales deals are entirely similar (that is even the validity dates, delivery dates etc are also same), and there is no differentiating factor, then you will have to manually input the prices.
    Do get back if you require more clarification. Please reward points if useful.
    Regards,
    Swapna

  • Help on Logic for this kind of XML structure ^__^

    Hi
    I just started studying XML parsing and Im currently using SAX to parse XML docs... I know how to map info on a simple class file but this structure is much more complex for me heheh...
    ok, suppose I have an xml whose structure is like this:
    <PO_SUMMARY>
        <Store_PO>
                  <POheader>
                          <a>ABC</a>
                          <b>123</b>
                  </POheader>
                 <POLINE>
                           <c>456</c>
                           <d>789</d>
                 </POLINE>
                 <POLINE>
                           <c>125</c>
                           <d>525</d>
                 </POLINE>
        </Store_PO >
       <Store_PO>
                  <POheader>
                          <a>GHS</a>
                          <b>321</b>
                  </POheader>
                 <POLINE>
                           <c>525</c>
                           <d>646</d>
                 </POLINE>
                 <POLINE>
                           <c>636</c>
                           <d>242</d>
                 </POLINE>
        </Store_PO >
    </PO_SUMMARY>My problem is how can I generate separate txt files, each containing the details of the first <Store_PO> and second <Store_PO>???
    Hoping for your suggestions!!! THANK YOU VERY MUCH for your time!!

    The output should be separated text files that look like this
    For the first StorePO
    HDR 123 ABC
    DTL 456 789
    DTL 525 646
    For the second StorePO
    HDR 321 GHS
    DTL 525 646
    DTL 636 242
    I have two objects to map the contents of header and poline
    I can get the contents of that xml IF it's StorePo is only ONE.. what do you suggest I should do??

  • How can i implement the default value for this variable?

    In one of our Stored procs,we have a variable RECS_TO_DELETE, which determines the number of records to delete from various DELETEs that happen within this proc.
    The value for RECS_TO_DELETE variable should be obtained from a configuration table sys_config
    select
    rec_num into RECS_TO_DELETE
    from sys_config
    where
    sys_code=55;
    But if something goes wrong with sys_config table or the above SELECT INTO, our client wants to makes sure that RECS_TO_DELETE should have a default value of 1000.
    In the code, how will i implement having this default value of 1000 for RECS_TO_DELETE variable  in case the above SELECT INTO fails for some reason.

    Hi,
    You have to assign a value before the execution...
    DECLARE
        RECS_TO_DELETE NUMBER(9) := 1000;
    BEGIN
        SELECT rec_num
        INTO   RECS_TO_DELETE
        FROM   sys_config
        WHERE  sys_code = 55;
        DBMS_OUTPUT.put_line(RECS_TO_DELETE);
    EXCEPTION
        WHEN NO_DATA_FOUND THEN
           DBMS_OUTPUT.put_line(RECS_TO_DELETE);
    END;
    /Regards,

  • How can I use the join condition for this query?

    Hi, i am using a query which has a sun query in it, wen i am running tat query it is giving 9332 records, I changed the sub query logic and given an inner join, but it is giving only 4476 records. So, I changed it to left join but it is giving more records
    than usual now, say 10033 records.
    This is the code which is giving records 9332, which is correct
    select      distinct 
          b.SRC_PROV_ID
          ,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
    INTO  TINtoSystem
    from 
          RARE.dbo.EDW_MASTER a 
          Inner Join RARE.dbo.EDW_PROD_ID_XREF b 
                on a.SMG_ID = b.SMG_ID 
      where SRC_PLATFORM_CD = 'TX' 
          and a.SMG_ID in 
                select distinct 
                SMG_ID 
                from RARE.dbo.EDW_PROD_ID_XREF 
                where SRC_PLATFORM_CD = 'TX' 
                and SRC_PROV_ID in (select q.PROV_TAX_ID from PACT.dbo.SQS_EDW_Source q) 
    I have changed this code by giving inner join as, but its not giving the exact records of 9332, 
    select distinct
    b.SRC_PROV_ID
    ,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
    INTO TINtoSystem
    from
    RARE.dbo.EDW_MASTER a
    Inner Join RARE.dbo.EDW_PROD_ID_XREF b
    on a.SMG_ID = b.SMG_ID
    Inner Join Pact.dbo.SQS_EDW_Source q
    on b.SRC_PROV_ID = q.PROV_TAX_ID
    where b.SRC_PLATFORM_CD = 'TX'
    Can anyone tell, where it is missing, I used left join also but its giving more records then, need help

    Hi, If you insist inner joins then please try
    SELECT DISTINCT
    b.SRC_PROV_ID
    ,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
    INTO TINtoSystem
    FROM
    RARE.dbo.EDW_MASTER a
    Inner Join RARE.dbo.EDW_PROD_ID_XREF b
    on a.SMG_ID = b.SMG_ID
    inner join
    select distinct
    c.SMG_ID
    from RARE.dbo.EDW_PROD_ID_XREF as c
    where SRC_PLATFORM_CD = 'TX'
    and exists (select * from PACT.dbo.SQS_EDW_Source q where c.SRC_PROV_ID=q.PROV_TAX_ID)
    ) as d on a.SMG_ID = d.SMG_ID
    where b.SRC_PLATFORM_CD = 'TX'

  • HT1766 When I setup my new iPhone 5c I inadvertently entered wrong email address for apple id.  I cannot verify the email sent.  I have a new apple id, but can neither use nor delete the iCloud account.  How do I get an iCloud account for this phone?

    When I set up my new iPhone 5c I inadvertently used wrong email for setting up my apple id.  I have since setup an id with correct email, but cannot verify the first account.  I cannot delete it either.  How can I get an iCloud account for this phone?

    You said "have since setup an id with correct email, but cannot verify the first account.  I cannot delete it either. ".
    Why can't you verify it?
    Do you not receive the verification email address?
    If problem contact iTunes by:
    http://www.apple.com/support/itunes/contact/

  • How can I get a boot-disk for a Compaq P2500 laptop Windows XP Home Edition?

    I'm already in another forum with a eerily similar question, but that's for the HP Media Center Pavilion m8000e desktop system (Windows Vista Home Premium) I was just given; I've ordered a new hard drive for that. I assume the directions to create a boot disk with the *.iso file (using Imgburn) is going to work; I have the 25-digit code for that.
    This question here now is for my wife's older Compaq P2500 2596US laptop running Windows XP Home Edition. This too needs a new hard drive, but I also am missing the boot disc for this; I do have the 25-digit product code.
    How can I get a boot disk for this laptop? I tried the Ubuntu method outlined in a few posts; geez, what a headache ... never could get it managed. Does HP not make any boot disks available? Microsoft told me to check with HP.
    I can furnish the product code; model #; serial# ... gee, maybe the oroginal receipt is even laying around somewhere ...
    I need a boot disk to get the new hard drive up on board (if I end up ordering that).
    Thanks for any help!
    Michael

    Hi 
    Please find the link given below might be helpful for your.
    http://www.computersurgeons.com/productdetails.aspx?ID=4219
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • KM Search: How can I define a query for the user who currently logged on?

    Hello,
    I want to use the KM Search iView to display all documents from the currently logged on user in a certain sort order. The result should be some kind of report for the user...
    In the search option I can define a default sort order. And I can also define it for a special user with cm_modifiedby(value=username)
    But how can I define the predefined property value generically for the current user?
    I tried to insert following values in the parameter Predefined Properties of the search option:
    Predefined Properties (csv): cm_modifiedby(value=<user.id>)
    Predefined Properties (csv): cm_modifiedby(value=%user.id%) -> like in the predefined properties
    Predefined Properties (csv): cm_modifiedby(value=$sap_user) -> like in the xml forms builder
    But non of these 3 parameters worked. Has anybody an idea what the right variable is?
    Thanks a lot.
    Best regards
    Nicole

    Hi Nicole,
    1. First of all you need to use "<User.UserID>" to get the currently logged on user.
    2. You need to create an AppIntegrator iView (so based on com.sap.portal.appintegrator.sap.Generic) in order to be able to use this dynamical parameter. The parameter "URL template" should look like:
    <Request.Protocol>://<Request.Server>/irj/servlet/prt/portal/prtroot/com.sap.km.cm.basicsearch?layoutSetMode=exclusive&ResourceListType=com.sapportals.wcm.SearchResultList&SearchType=quick&rndLayoutSet=SearchResultLayoutSet&SearchCompsName=UISearchComponents&QueryString=*&SelectedCustomProps=cm_modifiedby(value=<User.UserID>)
    Best regards,
    Robert

  • I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide? can this be automated?

    I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?
    can this be automated?

    Not in Illustrator. You will need a CAD program or similar where you can dial in such manufacturing criteria.
    Mylenium

  • I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?

    I am making a complex vector pattern for laser-cutting. No part may be more than 7mm wide at any point. How can I define this in order to get a warning when a shape is too wide?
    can this be automated?

    do you mean Anchor Point to Anchor Point should be less than 7mm? A Script could check segment lengths, on demand, not automatically as you draw.

Maybe you are looking for

  • Moving Avg Price

    Hi All, How are free items managed in a PO? Regards RK

  • XmlXapResolver is Not Working With Windows Phone8.1

    "XmlXapResolver" is Working in wp8 but Not working in WP8.1 and added Name space "using System.Xml;" public static string GetAppAttribute(string attributeName) string attribute; try XmlReaderSettings settings2 = new XmlReaderSettings XmlResolver = ne

  • Re: hp photosmart 7250 printer

    how can i get my hp photosmart 7250 printer to work on windows 8  64bit  i had been using it on windows 7

  • Looking for a laptop

    I am looking for a laptop which I can use in the studio or at my parent's holiday house. At the moment, I have to use 2 computers, a Power Mac G5 1.6 GHZ system for audio and MIDI sequencing, etc. and a PC for adding lyrics to melody lines in Sonar f

  • Server Setup Wizard / CiscoWorks Assistant - Unable to find Server

    I just performed a clean install of Ciscoworks LMS 3.2 on our HP Bl460c server, Win2003 R2 SP2 Enterprise, 8 GB RAM, 146 GB HD, all Windows Updates installed (including ie8), no ciscoworks patches installed. No errors during the install.  I restarted