Can castor retrieve the comnstraints provided in an xml schema

hi,
plz help me !!!!!!!!!!!
does castor provide any function to retrieve the constraints
defined in an xsd
i know it provides functions for setting the constraints
can i retrieve the value of constraints fromthe descriptor files returned by cator
while unmarshalling the xsd file .
thaks

Hi 00ps, the way to do this with XSD schemas is to use a "choice" node, where you can select either BusinessEntity or Person.  Each of these nodes can then have different elements (inherited from a common source if you desire).
Whilst doing all this is entirely possible with the BizTalk schema editor, it is far, far easier to use a specialist tool such as
XMLSpy, which makes defining complex relationships an easy task.  For example, here is a similar sort of restriction I have in place on a schema:
The "party" element is used in multiple schemas through the use of an import.  You can either use
organisation or individual, they both use a common element called
contact which contains address information etc which would be the same for both, but allow for different structures for party types.
As you can see from the screen-shot, it's a lot easier to visualise with XML Spy.  The XSD notation is:
<xs:choice>
<xs:element name="organisation">
...blah...
</xs:element>
<xs:element name="individual">
...blah...
</xs:element>
</xs:choice>
If this is helpful or
answers your question - please mark accordingly.
Because I get points for it which gives my life purpose (also, it helps other people find answers quickly)

Similar Messages

  • Extract the job advertisement into a XML-Schema

    Hi there,
    I have to extraxt the job advertisements in a xml-Schema for making our E-Recruiting compatible to a job-exchange.
    Is there a report or tc or something else which extracts the information of the  job advertisement in a xml?
    Or if not how and where can I read out my Informations about the company or the duration of my job advertisement e.g.
    And after I have this information, how can I prepare the information into a dtd (XML-Schema)
    Thx for answers

    Yes, in fact I solved to do that, now I'm getting a differente problem, I'm trying to get the content to a file, but with no success, I'm getting just "[Document]: #null" into my file, maybe I'm doing something wrong when I try to write it, here's my code in case you or someone else can help me telling me what do I really have to do, thanks in advance.
    public class XMLTransformer {
    public static void main(String[] args) throws Exception {
    try {
    String xml_doc = //"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
    //"<!DOCTYPE web-app PUBLIC \"C:\\sms.dtd\">\n" +
    "" +
    "<root>\n" +
    "<sms>\n" +
    "<tlf>584123161640</tlf>\n" +
    "<op>D</op>\n" +
    "<sc>3344</sc>\n" +
    "<body>MENSAJE</body>\n" +
    "</sms>\n" +
    "</root>";
    DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    //Document document = builder.parse(xml_doc);
    InputSource inStream = new InputSource();
    inStream.setCharacterStream(new StringReader(xml_doc));
    Document doc1 = builder.parse(inStream);
    File f1 = new File ("c:/salida.xml");
    FileWriter out1 = new FileWriter(f1);
    PrintWriter wr = new PrintWriter(out1);
    f1.createNewFile();
    //String inputLine;
    //while ((inputLine = lector.readLine()) != null)
    wr.write(doc1.toString());
    //lector.close();
    out1.close(); }

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

  • I have mistakenly deleted a mail folder which I had created. Can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    I have mistakenly deleted a mail folder in which I had created. I can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    Yeah not a problem. It does seem though that if you did not have a Time Machine backup then you may not be able to recover the deleted folder :/ But for future reference to prevent any of this, a Time Machine backup is a great investment.
    What it does is create an entire backup of your computer anything from personal information down to the screen saver.
    What you first need is a new external hard drive (I would recommend a 1TB or higher just to prevent running out of space soon).
    after that, just plug in the drive to your computer.
    once it is plugged in, in the top right hand corner, close to the wi-fi symbol, you should see a symbol that looks like a clock with a backwards arrow around it.
    click on that and select "open time machine preferences"
    just turn the button to the "on" position, and select the backup drive and Time Machine does the rest
    very great tool

  • TS3274 How can I retrieve the iTunes and App icons to my home screen?

    How can I retrieve the missing iTunes and App icons to my iPad home screen?

    If you can't find them on any of your homescreens or app folders, and you can't find them via the spotlight search screen (swipe your first home screen to the right), then are they hidden by Settings > General > Restrictions > Installing Apps and iTunes being set 'off' ?
    If not then have you tried a reset to see if you can find them after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • I am working in the Develop module of Lightroom 5 and have accidentally bumped a setting and lost the Basic menu and the option to retrieve it.  "Tone curve" is directly under the tool bar now.  How can I retrieve the "Basic" menu?

    How can I retrieve the "Basic" menu on Lightroom 5?  I accidentally bumped something while working in the Develop module of Lightroom 5, and now the Tone Curve menu is directly under the Tool Bar, with no option to click on "Basic." 

    Right-click on Tone Curve and choose basic again or press Ctrl+1 in Develop.
    On Mac (Control-Click or Cmd+1)

  • How can we retrieve the name of the Parent Space from the subspace?

    We wish to use a hyperlink in a subspace template which allows a user to link back from the subspace to its parent space.
    This hyperlink should show the name of the parent space.
    These Expression Language Expressions return parent information, but they so not show the Name of the parent space or other details like the Parent Space URL.
    #{spaceContext.currentSpace.parent}
    #{spaceContext.space['bpo'].parent}
    How can we retrieve the name of the Parent Space?

    I agree!
    I can't top this approach.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Hello, I closed unintentionally 10 files and I can't retrieve the history for each file.Is there a solution ?

    Hello, I closed unintentionally 10 files and I can't retrieve the history for each file.Is there a solution ?

    Hello, do you mean 10 tabs ? check in [http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox#Library Library] menu to view the browsing history (except if you [https://support.mozilla.org/en-US/kb/Clear%20Recent%20History Clear Recent History] ).
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Satellite A505 - How can I retrieve the registration information

    I purchased a Toshiba A505 in March 2010. At this time I registered the product with Toshiba. This laptop has been stolen. How can I retrieve the registration information. Unfortunately I do not have the serial or product number.
    Thank you.

    Hi
    You should get in contact with Toshiba using the Stolen Units interface.
    http://eu.computers.toshiba-europe.com/innovation/generic/STOLEN_UNITS_SUPPORT
    Here you should go to point: *DEREGISTER*
    Hope I could help you.
    Greets

  • One of my imported MOV files turns "black" after editing with it for a time and I can't retrieve the images. This has happened three times, only this file. The placeholder is still there. Files are fine on hard drive. What gives? how to stop this?

    One of my imported MOV files turns "black" after editing with it for a time and I can't retrieve the images. This has happened three times, only this file. The placeholder is still there. Files are fine on hard drive. What gives? how to stop this? is in final cut pro 10.1.4

  • I made a DVD slideshow with premiere elements 4, in 2008. How can I retrieve the photos?

    I made a DVD slideshow with premiere elements 4, in 2008. How can I retrieve the photos?

    Install the excellent 'Search Everything' utility and enter 'extreme' as a search term. Note that when you first run 'Everything' it takes time to index your drive(s). After that though it is a nearly instantaneous start.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • I updated my iPhone 5 and restored it to my iPod settings. can i retrieve the old data?

    i plugged in my iphone 5 and wanted to update my ipod settings to my phone. i accidentally restored it and lost all my phone data and info i had and it restored it to my ipod settings which had none of the phone into on it.  can i retrieve the lost iphone info?

    Check and see if you have a backup of the iPhone's stuff. If the updating was done thru iTunes (the safe recommended way), it would have created a backup automatically. Look in iTunes / Preferences / Devices. "Hovering" the cursor over each of the backups listed there will open a popup that displays the IMEI/Serial Number/etc., so you can identify which belongs to what.
    Having located a suitable backup, simply Restore the iPhone with it and it should regain its iPhone-ish personality.

  • How can i retrieve the vallue of a component's attribute while enhancing?

    Hi...
    I am new to SAP...and am working with WEB UI Enhancement...
    Can anyone help me to know how can i retrieve the value of the Opportunity status in the component of survey ICCMP_SURVEY?
    And also, which is the field taht i need to change to make the survey non editable?
    I came across an attribute CHANGEABLE in method IS_CHANGEABLE which is being checked before the survey template is opened up..But is it possible to update this field?
    Any helpful pointers would be rewarded...
    Thanks....

    Thanks for the quick replies guys, I will work on that. Wish I could have thought of that before haha, well the only thing that I will need to check later on is gathering all the file paths within one array. Since the main gets called several times with each file selected, I have to gather them all with the serversocket and then when they are all gathered I can begin another piece of code. Dunno if that will be doable. Since I don't know if the user selects 5 or 400 at the same time, I think the serversocket will append to an arraylist every incoming file paths and the UI viewing the file paths will update itself if other file paths are appended.
    Thanks a lot, I will return on that as soon as I am finished.

  • How can I retrieve the inbound XML messages (invoices) by ABAP program?

    Where are the inbound XML messages (invoices) saved in XI box?
    How can I retrieve the inbound XML invoices in XI box by ABAP program?
    Is there any method/BADI/function module to retrieve these XML invoices, so I can output these XML invoices in an ABAP report?
    Thanks in advance for your help!

    Hello Fisher,
    This Webblog will help you.
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    From this blog you will understand the code behind SXMB moni .. which performs the selection from database. You can write a report as well.
    Cheers,
    Himadri

Maybe you are looking for

  • Problem in stock maintenance--% wise ---with variants-----urgent

    hi gurus, I have created material using t.code [MM01] Industry sector: steels and mining Material type: configurable material steels and mines Basic data 1: Item category group:  0002-configuration Classification: Class: IRON_GRADES Characteristics:

  • Deploying pinned service to Managed Server in a cluster

    Hi:           WLS8.1 SP4           I have a cluster of 4 managed servers.           I deploy a pinned service (in an EAR) to one of the cluster members.           Usign weblogic.Deployer:           weblogic.Deployer -adminUrl .. -name ExampleMDB -nos

  • Error message in EWM- Doing Physical inventory

    I get the error message "Could not determine ERP stockdata for :1001 EWM1001 F2" message nr /scwm/ERPINTEGRATION105. I can tell that 1001 is our warehouse, EWM1001 is our party entiteld to dispose and F2 is stock type. I guess that its either the EWM

  • Unable to connect to service on OVI store...

    so i'm trying to download some apps for my N8, i was able to download 1 app and after that it won't connect at all. it says, "unable to connect service..." i have no problem going to other sites... RANDi

  • OTA Server emulator and other tools

    Greetings, Some months ago i was developing smart cards aplications, using NetBeans as my IDE, and Axalto VIEWS Tools (ME simulator and OTA Manager) for the simulating these services. ME Simulator -> Simulated the SIM card menus on the mobile device.