Writing schema for multiple elements with same name with diff. content

following is the XML file,
<?xml version="1.0" encoding="utf-8"?>
<e-abstract xmlns="http://www.citicorp.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="Deed.xsd">
<deed>
<deed_type>
<deedtyp name="Quit Claim" value="Q" />
<deedtyp name="sheriff's deed" value="Sheriff" />
<deedtyp name="Warranty" value="W" />
</deed_type>
<deed>
</e-abstract>
--- end----
in this I have 3 elements of deedtyp , how i can write them in .xsd file as these elements have same name?Please help, if u have idea about this...
i have written .xsd up to deed_type,
----Deed.xsd----
<? xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.citicorp/2001/XMLSchema"
targetNamespace="http://www.citicorp.com"
xmlns="http://www.citicorp.com"
elementFormDefault="qualified">
<xs:element name="deed_type" type="string" use="required"/>
<xs:simpleType name="string">
<xs:restriction base="xs:string">
</xs:restriction>
</xs:simpleType>
</xs:schema>

I don't know the exact and complete specification of your intended schema...
anyway, from what I can see in your post, I assume that
<deed>
    <deed_type>
        <name>Quit Claim</name>
        <value>Sheriff</name>
    </deed_type>
    <deed_type>
        <name>sheriff's deed</name>
        <value>Sheriff</value>
    </deed_type>
    <deed_type>
        <name>Warranty</name>
        <value>W</name>
    </deed_type>
</deed>would be the "proper" way to go...
which makes your "deed_type" a complexType, including a sequence of two kinds of xs:string elements : "name" and "value"

Similar Messages

  • Script to find files with same names with in a folder and it sub folders.

    Looking for script to find files with same names with in a folder and it sub folders.

    Are you just looking to find if any two files underneath a folder have the same name?
    If you just want to know that a file named "whatever" exists in two folders, that's not too difficult, but you probably want to know the full path names.
    Here's one attempt:
    $ perl -MFile::Find -le 'find(\&w, "."); while (($n,$p)=each %file) {if(@{$p}>1){print join(" ",@{$p})}} sub w{push @{$file{$_}},$File::Find::name;}'That will print the pathnames on the same line of any files with the same name that appear anywhere underneath your current directory.
    It's a bit long for a "one-liner", but functional.
    Darren

  • App updates for multiple users on same Mac with maverick

    Background.  I have a single iMac that I have been using since ~2007. It's a family computer and there are three(3) accounts/users on it.  I am the administrator for them.  The operating system has been kept up with each OS upgrade since its purchase.  We are currently using Maverick.
    Problem - In the past with all the other operating systems (pre-Maverick), when a application needed to be upgraded I could log into my account (administrator rights) and perform the necessary upgrade and it would propgate to ALL the users on this computer.  However, since upgrading to Maverick I can no longer just upgrade on the administrators account (i.e. mine) and it propogate to the other users.  I now have to log into each individual account (i.e my wifes and sons) and perform the upgrades to their account.
    Question - Does anyone know if there is a way to allow the administrator to perform the single upgrade that propogates to others users in OS Maverick without having to log into each individual accounts and updating each account separately.  Also does anyone know why OS Maverick no longer supports the capability like ALL previous OS's have in the past? 
    Thanks

    Ok thanks.  The apps that I'm referring to are: Pages, keynote, numbers, iMovie, and iPhoto.  Each of these were originally purchased or came (iLife / iWork) with the machine when I purchased it.  All of those apps are located for each user under HD/Applications folder.  Each user does have a apple iD for itunes and itunes purchases for songs etc. but all applications are purchased by me the administrator and placed in the HD/Applications folder.  So I'm not sure why I now (since upgrading) to Maverick need to go into each account and perform the updates to these apps.  All previous OS updates never had this problem. 
    Does this now mean for each user that I perform the update my HD is getting multiple downloads and installs and increasing the amount of usage per application.  For example if "pages" takes 1 Gb and I install it for each user will it now take a total of 3Gb for the 3 users?
    Thanks for your help

  • How to get Unique calid for users with same name in multiple domain env..

    I found we need to use "-k legacy" option for creating users in non-hosted setup..
    I had two domains default as xxxx.com and the one that I created as yyyy.com
    When I have users with same name in two of the domains as user1..
    The calid for both of them is... user1 ....so they share the same calendar
    When Im in valid SSO of yyyy.com I get the mail account for user1 as [email protected] .....but the calid .. common as user1
    How I can get unique calid for users under two domains..
    whether I need to set Hosted domain support...Then how the mailid's differ with out using hosted domain support..
    And I need to login UWC without using @domain.com...
    Help me on this...
    Ashik

    Do you have UWC and Cal configured at least for virtual domain support?
    basically.. for discussion.. let's say you have three domains on your server.. 1st domain is the default domain. other 2 domains are virtual domains.
    if all domains were created with mail and cal support (-S mail,cal).. you would use the following options when creating users:
    1) for the default domain.. you must use the "-k legacy" option when adding users.
    2) for the other two domains.. when you create the user.. do NOT use a "-k" option.
    If you do not use the "-k" option.. it defaults to "hosted" which will cause the user's calid to be [email protected]
    If you Do use the "-k legacy" option.. it will create the calid as just "userid"
    With regard to logging into UWC without the @domain.com part of a username in a hosted domain.. the easiest way to avoid this.. is to point a host name under the hosted domain to the server.
    if you point webmail.xxxx.com to the server... and then access it via:
    http://webmail.xxxx.com/uwc/
    any users in the xxxx.com hosted domain will NOT need to use @xxxx.com when logging in... they can just use "userid"
    This feature does not take any special configuration (aside from adding a DNS entry for the hosted domain)
    Hopefully that helps.

  • While saving multiple attachments from mail, files with same name are added and not replaced

    While saving Multiple Attachments from Mail, existing file with same name are not overwritted but new files are added in the folder.

    Bjørn Larsen a écrit:
    Hi all
    Hope to get some help with Elements Organizer.
    I have 12-15 years of digital photos that I now want to import into my newly aquirede Adobe Elements Organizer / Photoshop. Since my Nikon names the files with continous numbers from 0001 to 9999 I have multiple files with the same name although they are not alike at all. My previous software had no problems with that since I keep the photos in separate file folders based on import date. I generally import photos after each event and so name the folder with the date and some event info (e.g. 2014.12.24 - Christmas at grandparents).
    That is a common situation, I have the same limitation for files not going over 9999 on my Canons...
    Now - when I import my photos into Elements Organizer I get a lot of error messages with "same name exist .....) Hmmmmmmm
    Please sate the exact wording of the error message, I have never seen a message stating 'same name exist...' or equivalent; only messages about files already in the catalog. Files already in the catalog mean that some files have the same 'date taken' and file size in Kb.
    Any suggestions. I'm using a mac and tried to rename files based on date taken. The mac can do that but it takes ages to go into each folder and run the renaming script there.
    I also use a similar folder creation scheme (such a date naming is the default for the downloader). That way I never get a message about duplicates for the same file names.
    However - I can't be the first or only person with this problem so I figure that some workaround must be known out there. Maybe the import action can recognize date taken or - well. Thank you very much in advance if you can help me out here.
    You can alsways set the downloader to rename the imported files with a unique new name, there are many options in the 'advanced' dialog of the downloader. I don't know about Macs, but I don't thing there is a difference.

  • HT2905 I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    I have multiple album titles of the same name with different artists. How can I get them to go under one album title again?

    In iTunes(on a Mac or PC) just tap on 'Albums' rather than 'Artists' and you'll see them all together.
    You may find that there are songs mislabelled. In which case right tap on the Album or Artist and tap 'Get Info', then change to the correct name and the songs will join the rest of the songs for that Artist or Album.
    Then resync with your iPhone and all will be well.

  • Can i have xml elements with same name but one is having attrbt..?

    Hi all,
    I am suppose to take input from one system into BPEL.That system is auto gererating xml file. But that file is strange. It has two xml element with
    same name but with completely different sequence. First one is having two comlexTypes while second is having 5 simple types.
    Now the difference is First element is having attribute while second is not.
    So is that file is correct.?
    thanks a lot.
    /mishit

    can you post the file? or load the file into JDeveloper and check the syntax or use XMLSpy for validation of the XML.

  • Two soa domain with same name "TestSOADomain" sharing same SOA schema ?

    I tried creating two soa domain with same name "TestSOADomain" (different path) sharing same SOA schema .However one domain came UP to Running mode and other domain going to AdminMode and "soa-infra" application of that domain is not active.
    I do want to understand can this be possible with SOA ,ie. two soa domain sharing same SOA schema ?
    If possible what are all the problems might come
    1. While executing soa composites with asyncronous behaviour ?
    2. How the polling services will work ?
    3. will the XREF_DATA table ROW_NUMBER column inserted uniquely while inserting data from two different domain into same SOA schema ?
    4. Other issues ?
    Thanks

    Each domain is expected to refer to its own unique database schema. Same SOA schema should not be shared by multiple SOA clusters/domains. It is technically possible though, I suppose, and still can run fine any one SOA environment at any given time with the other SOA environments/domains (sharing the same SOA schema) shutdown. It is not the general/recommended practice to share SOA schema across domains and there could be potential implications and unexpected behavior, particularly when the SOA environments pointing to the same schema are all running at a time.

  • Passing multiple URL parameters with same name

    Hi,
    I have a question which is not entirely related to Java. But although its related HTTP calls, so I thought I might get some ideas here.
    Background:
    I am making HTTP URL call from SAP ABAP code. Its pretty much similar to Java (creating URL connection, setting HTTP headers, connecting, receiving response and everything)
    For example,
    http://service_server:8080/a7/extension.services.SearchRequirements.a7x?RequestStatus=CR&RequestStatus=RR
    Now, this service_server runs a query to database where it uses both these values of "RequestStatus" to form 'OR' condition for a field.
    Issue:
    When I run this URL from browser, it shows XML response containing results for both values. In short, this is the ideal response.
    (I am using getParameterValues(string) at service_server to read multiple values for same parameter)
    But when I see response in SAP system, I see that it is returning data for only one value of 'RequestStatus'.
    I checked the logs of service_server, and I see that it has received only one parameter, not two.
    Question:
    It seems like SAP systems web server is truncating both parameters with same name and passing just one of them to outside server(??)
    Is there any configuration at Web Server side or any HTTP headers to be set so as to avoid this?
    Can anybody suggest something on this?

    I managed to resolve this issue by using HTTP 'Post' method to send the data.
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
        EXPORTING
          URL                = L_URL
        IMPORTING
          CLIENT             = L_HTTP_CLIENT
        EXCEPTIONS
          ARGUMENT_NOT_FOUND = 1
          PLUGIN_NOT_ACTIVE  = 2
          INTERNAL_ERROR     = 3
          OTHERS             = 4 .
    "STEP-2 :  AUTHENTICATE HTTP CLIENT
    CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
      EXPORTING
        USERNAME             = 'name'
        PASSWORD             = 'password'.
    "STEP-3 :  SET HTTP HEADERS
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
          EXPORTING NAME  = 'Accept'
                    VALUE = 'text/xml'.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
        EXPORTING NAME  = '~request_method'
                   VALUE = 'POST' .
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
        EXPORTING CONTENT_TYPE  = 'application/x-www-form-urlencoded' .
    "SETTING REQUEST DATA FOR 'POST' METHOD
    IF L_PARAMS_STRING IS NOT INITIAL.
       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
             TEXT   = L_PARAMS_STRING
         IMPORTING
               BUFFER = L_PARAMS_XSTRING
         EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
        EXPORTING DATA  = L_PARAMS_XSTRING  .
    ENDIF.
    "STEP-4 :  SEND HTTP REQUEST
      CALL METHOD L_HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
    "STEP-5 :  GET HTTP RESPONSE
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    "STEP-6 :  READ RESPONSE DATA
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
            RECEIVING DATA = L_RESULT .
    "STEP-7 : CLOSE CONNECTION
    CALL METHOD L_HTTP_CLIENT->CLOSE
      EXCEPTIONS
        HTTP_INVALID_STATE = 1
        OTHERS             = 2   .
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to check-in multiple files with same name having different revision num

    Hi
    Can anyone please tell me, how to check-in multiple files with the same name with different revision number using RIDC API.
    For eg:
    First I will check-in a file(TestFile.txt) into a content server with revision number 1 using RIDC API in ADF application. Then after some time, will modify the same file(TestFile.txt) and check-in again. I tried to check-in same file multiple times, however first time its checking-in correctly into server showing revision as 1, while checking-in same file again, its not giving any errror message, and also its not reflecting in server. Only one file(TestFile.txt) is reflecting in server.
    How to implement this functinality using RIDC API? Any suggestions would be helpful.
    Regards
    Raj
    Edited by: 887680 on Mar 6, 2013 10:48 AM

    Hi Srinath
    Thanks for your response. Its not cloning, its like check-in file first, then check-out the file and do some editing and then again upload the same file with different revision number using RIDC. I got the solution now.
    Regards
    Raj

  • How to create directories with same name in different schemas

    I have two schemas on the same database.
    I am trying to create directories with same name, but different paths in both the schemas.
    When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    Is there any solution to create directories with same name, but different path in two different schemas on the same database.
    Thanks,
    Sridhar.

    Hi,
    >>When i created the directories in second schema, the directory paths of the first schema are automatically changed to the second path.
    If you have removed the REPLACE clause of your create statement, then you would see that is not possible.
    SYSTEM> connect scott/tiger
    Connected.
    SCOTT> create directory mydir as '/tmp';
    Directory created.
    SCOTT> connect legatti/pwd
    Connected.
    LEGATTI> create directory mydir as '/tmp';
    create directory mydir as '/tmp'
    ERROR at line 1:
    ORA-00955: name is already used by an existing object
    LEGATTI> select owner,object_name,object_type,created
      2  from dba_objects where object_name='MYDIR';
    OWNER     OBJECT_NAME    OBJECT_TYPE         CREATED
    SYS       MYDIR          DIRECTORY           19/12/2007Cheers
    Legatti

  • Multiple Playlists with Same Name

    What causes multiple Playlists with the same name or with the same name with a numerical suffix to appear?

    How about turning off iTunes match. Delete the PL - then reactivate iTunes Match.
    MJ

  • Mounting multiple directories with same name on different severs to a single mount point on another server

    We have a requirement where in we have multiple solaris servers and each solaris server has a directory with the same name.
    The files in these directories will be different.
    These same name directories on multiple severs has to be mounted to a single directory on another sever.
    We are planning to use NFS, but it seems we can not mount multiple directories with same name on different severs to a single mount point using NFS, and we need to create multiple mount points.
    Is there any way we can achieve this so that all the directories can be mounted to a single mount point?

    You can try to mount all these mount points via NFS in one additional server and then export this new tree again via NFS to all your servers.
    No sure if this works. If this works, then you will have in this case just an additional level in the tree.

  • Creation of BPEL with a WSDL having 2 operations with same name

    How to create a BPEL 2.0 from WSDL which is having the +2 operation with Same  name+ and we are planing to USE PICK activity but the BPEL is giving error while selecting the operation name
    can't create input variable.The selected operation does not have an input message.+
    WSDL:Operation
         <wsdl:portType name="ABC">
              *<wsdl:operation name="XYZ"*>
                   <wsdl:input name="Request1" message="tns:Request"/>
                   <wsdl:output name="Response1" message="tns:Response"/>
              </wsdl:operation>
              *<wsdl:operation name="XYZ">*
                   <wsdl:input name="Request2" message="tns:Request"/>
                   <wsdl:output name="Response2" message="tns:Response"/>
              </wsdl:operation>
         </wsdl:portType>
    Can you please provide the alternate solution if the procedure followed by us is wrong
    Thanks in Advance

    Hi Preetam,
    I believe it's not allowed, use different operation name.
    A wsdl:portType in a DESCRIPTION MUST have operations with distinct values for their name attributes.
    This applies only to the wsdl:operations within a given wsdl:portType. A wsdl:portType may have wsdl:operations with names that are the same as those found in other wsdl:portTypes.
    why do you need multiple operation with same message type?
    Regards,
    Faiz

  • Creating  file on network with same name

    Hello All,
    I have created the A0001BOE20060001.txt file on my machine & i want to create same file with same name on the different machine,
    i m able to copy all data in that file & recreate it on the server but i have problem with how to GET same file Name
    As i m creating a new file & writing data on the 1.txt which i m creating on the server
    How should i recognize the file name & create the same file on the server????

    Is this on Windows?
    I believe that java.io.File works with UNC paths. For example, if you have a network resource on the share myshare on machine my-pc, you could do something like:
    File f = new File( "\\\\my-pc\\myshare\\myfolder\\myfile.txt" );
    Note that you have to escape backslashes. You'll also want to be sure that you have permission to access the share - it won't prompt you for a password, so you must have already authenticated using Explorer or net use.
    Thanks,
    Brian

Maybe you are looking for

  • Excise Invoice number range assigment

    Dear SAP Gurus, This is with regarding Excise invoice number range assignment (J_1IINTNUM, J_1IRG23A1, J_1IRG23A2) For the financial period April 2011 to March 2012, following number ranges exist already in SNUM. 01---- 2011--5007393-5999999 01---201

  • Information about a VBAP, VBAK field...

    Hello Experts- I am working with a scenario where customer orders (sales transaction) are generated in a mySAP CRM 4.0 SP 3 system and are replicated to SAP R/3 Enterprise as sales orders. Are any of you aware of a field in VBAK and/or VBAP in R/3 th

  • Blurry text while using ACP

    We are trying to use Adobe Connect Professional to teach others at a different site and they can't read text on some of the screens.  We are using a live site via the web so we can't change font size like you can in a slide or document. Any ideas? Th

  • Video Transfer 3220

    How do I make videos taken with Nokia 3220 available to view in Windows Media Player?

  • How to Replicate Selected Tables in a Schema to other Schema..

    Hi, In my database i have two schemas having 1000 tables in each. In these two schemas the table structure is same. I need to replicate nearly 100 tables out of 1000 tables in the schema. Can any one help me in this issue. Thanks , Ray..