AW: Regarding JAXB 2.0 ...

2006-09-14 Thread Christoph Kutzinski



Onek.o. criterion for some users (including 
me):
XMLBeans ist still working with Java 1.4 (probably even 
1.2, but I'm not sure)

Christoph

  -Ursprüngliche Nachricht-Von: Christian Blavier 
  [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 14. September 2006 
  15:44An: user@xmlbeans.apache.orgBetreff: Regarding JAXB 
  2.0 ...
  
  Hello,
  
  A simple question: what 
  could encourage me to use xmlbeans rather than 
  Jaxb2.0?
  The initial motivation of xmlbeans 
  is to have a full coverage of XML schema; so do JAXB 
  2.0.
  
  I still see many people prefering 
  xmlbeans to JAXB, and Im just wondering 
  why:)
  
  Thank you for your 
  responses
  Christian


AW: What does XmlOptions.UNSYNCHRONIZED mean?

2006-04-28 Thread Christoph Kutzinski
Hi Cezar,

thank you for the answer.
I have another question:

When I create a XmlObject with options and then add a new subelement to it, 
will the subelement inherit the options?
E.g.

XmlOptions opt = new XmlOptions();
opt.setUnsynchronized();
MyObjectType obj = MyObjectType.Factory.newInstance( opt );
MySubObjectType subObj = obj.addNewSubObjectType();

Will subObj now use the same options? There is no addNewSubObjectType() method 
with a XmlOptions as parameter.


And another one:
What happens when I replace an abstract with a concrete type?

E.g.

MyAbstractSubObjectType abstractObj = obj.addNewAbstractSubObjectType();
MyAbstractSubObjectType concreteObj = getSomehowMyConcreteObject();

abstractObj.set( concretObj );


Will the child of obj now use the options it maybe inherited from obj, or will 
it use the options of the conrete object?


thanks,
Christoph


Ursprüngliche Nachricht
Von: Cezar Andrei [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 27. April 2006 18:16
An: user@xmlbeans.apache.org
Betreff: RE: What does XmlOptions.UNSYNCHRONIZED mean?

 The answer it's b), you have to pass the option when you
 first create a
 new xml store, which happens when you create a new XmlObject, through
 newInstance() or parse(). If unsynchronized option is used, the
 following access to the store will be unsynchronized.
 
 Cezar
 
 -Original Message-
 From: Christoph Kutzinski [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 27, 2006 9:29 AM
 To: user@xmlbeans.apache.org
 Subject: What does XmlOptions.UNSYNCHRONIZED mean?
 
 Hi,
 
 could someone explain what XmlOptions.UNSYNCHRONIZED actually does?
 When do I have to specify this option:
 a) when I compile the schema
 or
 b) when I created new XMLbeans instances. I.e.:
 
 XmlOptions opt = new XmlOptions();
 opt.setUnsynchronized();
 XmlObject obj = MyObjectType.Factory.newInstance( opt );
 
 Is my instance now unsynchronized or not?
 
 
 thanks,
 Christoph
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 __
 _ Notice:  This email message, together with any attachments,
 may contain
 information  of  BEA Systems,  Inc.,  its subsidiaries  and affiliated
 entities,  that may be confidential,  proprietary,
 copyrighted  and/or
 legally privileged, and is intended solely for the use of the
 individual or entity named in this message. If you are not the
 intended recipient, and have received this message in error, please
 immediately 
 return this
 by email and then delete it.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]