JXB2.0 Anntotion generation for XMLElement

Hi
I tried to genrate a java class wich has the following snippet inside
I need after the APPLE list a LEMON ELEMENT and the unfortunatly again a APPLE Element.
<xs:element name="FRUITSTRUCT">
          <xs:complexType>
               <xs:sequence> <! attention it is a sequence -->
                    <xs:element ref="Orange"/>
                    <xs:element ref="Apple" maxOccurs="unbounded"/>
                    <xs:element ref="Lemon"/>
                    <xs:element name="*AppleX*" type="xs:string"/>
               </xs:sequence>
          </xs:complexType>
     </xs:element>
This worked fine and the class generated by jaxb's xjc converter is ok .
But the annotation for the Element AppleX should be Apple not AppleX
Is there a way to customize the generation of the @XMLElement annotion in the java file.
I am familiar with customization of the accessor property.
Thanks for any help
Andy
Switzerland

If you don't mind SY, need to follow up.
Perhaps you could explain how this is different:
SQL> alter session set nls_date_format = 'dd.mm.yy
  2  /
Session altered.
SQL> select xmlelement("Now",sysdate) from dual
  2  /
XMLELEMENT("NOW",SYSDATE)
<Now>2012-11-20</Now>
SQL> alter session set nls_date_format = 'hh24:mi'
  2  /
Session altered.
SQL> select xmlelement("Now",sysdate) from dual
  2  /
XMLELEMENT("NOW",SYSDATE)
<Now>2012-11-20</Now>
SQL>Reading docs on XMLELEMENT, I don't think it is absolutely clear that value_expr is a string ?
BR
Peter
Edit: Think you already answered above :)
But when I read the first docs I pointed to, my feeling is it should have been the same too, for numbers.
Edited by: Peter on Nov 20, 2012 1:08 PM
Edit, Edit: more dohs, reading that doc for fourth or fith time, I now see that it DOES NOT MENTION NUMBERS :(
Edited by: Peter on Nov 20, 2012 1:18 PM

Similar Messages

  • Error in code generation for deleting table BUT000_TD

    Hi,
    Did anyone encounter this error while working on EEWB ?
    I created the project extension via EEWB and completed the wizard setting with the package (dev. class) value as $temp as I wanted to test it locally.
    One of the errors, that I got is:
    Error in code generation for deleting table BUT000_TD
        Message no. DA464
    Diagnosis
        This error message indicates that internal inconsistencies exist.
    Procedure
        Please consult SAP.

    Hi,
    As I mentioned in my previous post kindly check the consistency of the structure BUT000_TD.
    Regards,
    Sudheer.

  • Is it possible to trade in a ipod 4th generation for one of the new ones?

    Is it possible to trade in an ipod 4th generation for one of the new ones?

    If you purchased it within the last 14 days you can return it for a full refund and then purchase the 5G. Otherwise Apple will only give you a 10% recycling discount if you turn in an old iPod and purchase a new one.

  • 請問在NI網站上有NI LabVIEW Report Generation for microsoft office V 1.1.2

    NI 網站上提供Report Generation for microsoft office 版本為1.1.3
    可是我用的Lab View是8.0版,不適用。
    找了許久都沒看到有1.1.2。

    舊的正版軟體不會放在網站上,請洽業務部

  • I just got an iPod touch 4th generation for my daughter. I already have a iPhone 5 setup with iTunes. All I want to put on her iPod is music and apps. How do I set the iPod to only get that information using my iTunes?

    I just got a new iPod Touch 4th generation for my daughter. I have a iPhone 5 that is already set up on iTunes. The only thing I want on her iPod from my iTunes is music and apps. How do I set her iPod up so that it only gets that information? Do I set it up as a new device? If so will that alter my iTunes?
    Thanks.
    llfit

    You can set up more than one device on your computer, and iTunes will remember the settings for each of them:
    How to use multiple iPods, iPads, or iPhones with one computer
    But you'll have to use your Apple ID to sync bought media to her device. Disable all other things you don't want to sync like photos, contacts, etc.

  • Can i connect a external hard drive to apple tv 3 generation, for see my movies itunes with out use streaming or icloud?

    can i connect a external hard drive to apple tv 3 generation, for see my movies itunes with out use streaming or icloud?  in apple tv 3 and 2?
    That  i want to know is i can connect a external hard drive to apple tv, for see my movies that i keep in my external hard drive,  i dont want to see then  whit the streaming and icloud, or used my  laptop o pc for access de movies and stuff.
    i put iny spanish to, because i feel my english is not so good, but i hope you understand me.
    if i can´t  connect a external hard  drive, wich others media players divices you know that can see itunes movies?
    ¿quisiera saber si se puede conectar una memoria externa al apple tv, para ver el contenido de itunes que tengo guardado en esa memoria como peliculas, ect?
    lo que no quiero es usar  la icloud, o el servicio streamig para ver mi contenido, ni tener que usar la computadora para ver mi contenido el la tv?
    y de no poderse conectar  que otros dispositivos media pleyer conoces para ver peliculas de itunes  en la tv?

    Welcome to the Apple Community.
    can i connect a external hard drive to apple tv 3 generation
    Unfortunately not.

  • I've had my ipod shuffle (2nd generation) for a long time now and after a year and a bit of not being in use it doesn't work. When I connect it to the computer it doesn't come up. Can my ipod be charged or fixed?

    I've had my ipod shuffle (2nd generation) for a long time now and after a year and a bit of not being in use it doesn't work. When I connect it to the computer it doesn't come up. Can my ipod be charged or fixed? Please help!

    That is about normal. You can maximize battery life by changing some settings. See:
    Apple - Batteries - iPod
    Apple will exchange your iPod for a refurbished one for with a new battery for $79. They do not fix yours.
    Apple - iPod Repair price                       
    A third-party place like the following will replace your battery for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the battery yourself if you are up to it. You can purchase a replacment for about $10
    iPod Touch Repair – iFixit                  

  • Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message

    Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message.
    Using win 7 and latest iTunes [10.6.3]. Have already gone through below links and did not find any solution.
    http://support.apple.com/kb/HT2292
    http://support.apple.com/kb/TS1369
    http://support.apple.com/kb/HT1923
    http://en.kioskea.net/forum/affich-17997-ipod-not-detected

    I was hoping it would be something like a USB device conflict, but now the shuffle is the only thing connected...
    This article was one of the ones you linked to above in your initial post
    http://support.apple.com/kb/TS1369
    Under Part 9. Verify that USB drivers are installed, did you try the steps in If only "Unknown Device" appears?  That appears to be your situation.
    Also, you said that the shuffle initially worked well enough to do a sync, then it had the same problem again.  If you can get it to work again initially, before doing anything else, try the following.  Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, go to the Summary tab.  By default, the checkbox for Enable disk use should be unchecked.  If so, check it and Apply the change.  See if that makes any difference. 
    (If Enable disk use was already checked, try unchecking it and Apply the change.  Basically, set it the "other way" and see if there is any improvement.)
    NOTE:  When disk use is enabled, you have to eject the iPod in iTunes before disconnecting it physically.
    If the disk use change makes a difference, that may provide a clue about the actual cause.

  • So, I have had the Ipod 4th generation for about a year now, and I have never had any trouble adding music onto my ipod until this latest version of itunes came out. Now, I cannot add any more music onto my ipod! I Have grayed out songs that I can't play

    So, I have had an Ipod touch (fourth generation) for a little less than a year now, and I have never had any problems with it until the latest version of itunes came out. Now, my ipod never can sync (I left it up for an hour before and it only got to step 2 out of 7), and I can't add any more music to my ipod! To make it worse, about 100 songs that I had deleted off my ipod, but could still be found in my itunes library, appeared again on my ipod! But, they are grayed out and I can't listen to them so they just take up space.
    Any help would be very much appreciated. Thank you!

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.

  • I bought my little brother an iPod touch 2nd generation for Xmas so we could text since we love states away but it won't verify and complete updating so I can download the texting apps required by iOS 4 or later can someone tell me how to update it please

    I bought my little brother an iPod touch 2nd generation for Xmas so we could text since we love states away but it won't verify and complete updating so I can download the texting apps required by iOS 4 or later can someone tell me how to update it please

    What exactly happens when you try to update the iPod? What does the error message say?
    Also, are you sure yo have a 2G iPod?
    See:
    Identifying iPod models
    I ask since a 1G can only go to iOS 2.x via iTunes and highest is 3.1.3 via
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

  • Default Code Generation for a Custom Class for an Application Module

    hi all
    Oracle® Fusion Middleware
    Fusion Developer’s Guide for Oracle Application Development
    Framework
    11g Release 1 (11.1.1)
    with Jdeveloper TP3 ,
    By default, the application module Java class will look similar to what you see in
    Example below when you've first enabled it. Of interest, it contains:
    ■ Getter methods for each view object instance in the data model
    ■ A main() method allowing you to debug the application module using the
    Business Components Browser
    [package devguide.model;
    import devguide.model.common.StoreServiceAM;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class StoreServiceAMImpl extends ApplicationModuleImpl {
    /** This is the default constructor (do not remove) */
    public SRServiceImpl() { }
    /** Sample main for debugging Business Components code using the tester */
    public static void main(String[] args) {
    launchTester("devguide.model", /* package name */
    "SRServiceLocal" /* Configuration Name */);
    /** Container's getter for YourViewObjectInstance1 */
    public ViewObjectImpl getYourViewObjectInstance1() {
    return (ViewObjectImpl)findViewObject("YourViewObjectInstance1");
    // ... Additional ViewObjectImpl getters for each view object instance
    // ... ViewLink getters for view link instances here
    when i try this i didn't find the default generation for main method
    have i do something before enable custom java file for Application module
    hope to hear from you soon

    hi nonStop
    Since you are using Jdeveloper TP3, this might be a better place to ask your question:
    "JDeveloper and OC4J 11g Technology Preview"
    JDeveloper and OC4J 11g Technology Preview
    success
    Jan Vervecken

  • How should I charge my iPod touch 4th generation for the first time?

    How should I charge my iPod touch 4th generation for the first time?

    Charge to 100% ...
    Read here > Apple - Batteries - iPod
    And here > Accurately determine your iPod battery life
    Save this link in case it needs service in the future >  Apple - Support - iPod - Service FAQ

  • Can I trade in my ipod touch 5th generation for an iphone 5c?

    Can I trade in my ipod touch 5th generation for an iphone 5c?

    Sure.  Sell the iPod, and trade that money and additional money for an iPhone 5c.
    Unless you purchased the iPod from an Apple store within the last 14 days and you can return it to buy the iPhone.

  • LOADING x12 834 data into database and 999 generation for received x12 file

    Hi All,
    I'm New to BizTalk, Im using BizTalk 2010 developer edition....I need to load the x12 834 enrollment data (few details) into database. I want to know the step by step procedure to do this. kindly help me.
    Also i need to know the 999 ackknowledgement generation for the received x12 file
    Thanks in advance.
    Rengaraj

    You need to Generate individual 834 enrollment message through de batching in EDIReceive pipeline .
    Once you get disassembled message you need map it with   insert stored procedure schema for inserting data in to SQL .
    For this first you need to create a table in SQL server with required columns and create a simple stored procedure to insert  data in to Table . Use Add Generate Item --> consume adapter service-->SQL binding -->Outbound operation and then
    select the Stored Procedure created to generate schema for it . Use the same schema while mapping from Debatched EDI message to SQL stored Procedure request.
    Thanks
    Abhishek

  • 9.7.3 Default Code Generation for a Custom Class for an Application Module

    hi all
    Oracle® Fusion Middleware
    Fusion Developer’s Guide for Oracle Application Development
    Framework
    11g Release 1 (11.1.1)
    with Jdeveloper TP3 ,
    By default, the application module Java class will look similar to what you see in
    Example below when you've first enabled it. Of interest, it contains:
    ■ Getter methods for each view object instance in the data model
    ■ A main() method allowing you to debug the application module using the
    Business Components Browser
    [package devguide.model;
    import devguide.model.common.StoreServiceAM;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    import oracle.jbo.server.ViewObjectImpl;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class StoreServiceAMImpl extends ApplicationModuleImpl {
    /** This is the default constructor (do not remove) */
    public SRServiceImpl() { }
    /** Sample main for debugging Business Components code using the tester */
    public static void main(String[] args) {
    launchTester("devguide.model", /* package name */
    "SRServiceLocal" /* Configuration Name */);
    /** Container's getter for YourViewObjectInstance1 */
    public ViewObjectImpl getYourViewObjectInstance1() {
    return (ViewObjectImpl)findViewObject("YourViewObjectInstance1");
    // ... Additional ViewObjectImpl getters for each view object instance
    // ... ViewLink getters for view link instances here
    when i try this i didn't find the default generation for main method
    have i do something before enable custom java file for Application module
    hope to hear from you soon

    hi nonStop
    Since you are using Jdeveloper TP3, this might be a better place to ask your question:
    "JDeveloper and OC4J 11g Technology Preview"
    JDeveloper and OC4J 11g Technology Preview
    success
    Jan Vervecken

Maybe you are looking for

  • Error while migrating business rules

    While trying to use the export/import option in EAS to migrate business rules, we have run into an error. The export itself is fine. When trying to import, it says this:(even though it lets me select the proper xml file for importing) Error while mig

  • Weird colors, mouse moves whole screen... what?

    my niece got on my mac and started hitting buttons. before i could stop her she did something that i've, so far, not been able to un-do. all of the colors are different, almost inverted-like. the icons seems a little bit bigger, and when i move my mo

  • Unstructured user interface template substitution tags

    Does anyone know where I can find a full list of substitution tags. An example of the tags I am talking about would be #BODY#

  • How to use 'build array' (concatenate) to create a array horizontally?????HELP

    I want to link nine arrays whose dimension is 2*2 horizontally,but the function 'build array' (concatenated way) made them vertically.........help me please..........maybe this is too simple.........since I am only a students who learnd labview only

  • Button label property changes

    The buttons I have built work fine when I test them in flash catalyst but once I deploy it to the server they do funny things. In some browsers the font on the button changes when rolled over or clicked on. In other browsers the bold property changes