Re: Conflict When Having Two XMLBean Generated classes for the same Schema...

2011-06-23 Thread Kevin Krouse
If you have schemas that define components in the same namespace you'll need
to isolate the generated schema jars using classloaders.  The issue is
similar to trying to load two different java classes with the same name.

Kevin


On Thu, Jun 16, 2011 at 7:35 AM, Horst Heistermann 
horst.heisterm...@oracle.com wrote:

 Hi,

  I am having an issue in my environment because I have two XMLBean
 generated classes pointing to the same schema. Sometimes when I use the
 factory of one class
 it tries to create an instance of the other XMLBean class (even though I am
 using the factory of the class I want to create!).  This causes a
 classcastexeception

 Is there a way to avoid this? The issue is indeterminate because it works
 fine most of the time but once in a while this issue crashes the program

 Thanks,

 Horst


 --**--**-
 To unsubscribe, e-mail: 
 user-unsubscribe@xmlbeans.**apache.orguser-unsubscr...@xmlbeans.apache.org
 For additional commands, e-mail: user-h...@xmlbeans.apache.org




Re: How to add standalone attribute

2011-05-12 Thread Kevin Krouse
Here is a rough patch.  I haven't tested it extensively.  There is a bug in
loading a document the standalone decl as can be seen in the output from
running test.java:


Original xml:
hello/

Default:
?xml version=1.0 encoding=UTF-8?
hello/

set standalone=true:
?xml version=1.0 encoding=UTF-8 standalone=yes?
hello/

set standalone=false:
?xml version=1.0 encoding=UTF-8 standalone=no?
hello/

remove standalone
?xml version=1.0 encoding=UTF-8?
hello/


Original xml:
?xml version='1.0' standalone='yes'?
hello/

Default:
?xml version=1.0 encoding=UTF-8?
hello/

set standalone=true:
?xml version=1.0 encoding=UTF-8 standalone=yes?
hello/

set standalone=false:
?xml version=1.0 encoding=UTF-8 standalone=no?
hello/

remove standalone
?xml version=1.0 encoding=UTF-8?
hello/




On Thu, May 12, 2011 at 5:12 AM, pgillen paul.d.gil...@gmail.com wrote:

 I tried that without effect. Be interested to hear others experience.
 -paul-

 -
 Paul Gillen
 --
 *From: * Jacob Danner jacob.dan...@gmail.com
 *Date: *Wed, 11 May 2011 18:24:34 -0700
 *To: *user@xmlbeans.apache.org
 *ReplyTo: * user@xmlbeans.apache.org
 *Subject: *Re: How to add standalone attribute

 Take a look at XmlDocumentProperties.setstandalone(...)
 -jacobd
 On May 10, 2011 11:47 AM, Roman Kashitsyn romankashi...@gmail.com
 wrote:
 
  How can I add standalone=yes attribute to xml processing instruction
 when
  saving xmlbean? Suppose I had an xmlbean and I want to save it in the
  following way:
 
 
  XmlOptions xmlOptions = new XmlOptions();
  xmlOptions.setSaveOuter();
  xmlOptions.setSaveSyntheticDocumentElement(new QName(NAMESPACE_URI,
  TAG_NAME, PREFIX));
 
  /* some magic happens here */
 
  bean.save(anOutputStream, xmlOptions)
 
 
  Now I get the following result:
 
  lt;?xml version=1.0 encoding=utf-8?gt;
  lt;!-- perfectly well xml file --gt;
 
 
  How can I get the following result:
 
  lt;?xml version=1.0 encoding=utf-8 standalone=yes?gt;
  lt;!-- perfectly well xml file --gt;
 
  ???
  --
  View this message in context:
 http://old.nabble.com/How-to-add-standalone-attribute-tp31586761p31586761.html
  Sent from the Xml Beans - User mailing list archive at Nabble.com.



standalone.patch
Description: Binary data


test.java
Description: Binary data

-
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Re: xmlbeans ant task

2005-11-30 Thread Kevin Krouse

A few other online archives exist:

http://marc.theaimsgroup.com/?l=xmlbeans-user
http://news.gmane.org/gmane.text.xml.xmlbeans.user

Kevin

Radu Preotiuc-Pietro wrote:

About searching the mail archives: no, the mod_mbox ones don't have
search on them, which is really a shame but that's life, keeping in mind
that the people who are maintaining them are doing so on their own free
time

Radu 



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



Re: [Vote] Release of XmlBeans 2.1.0

2005-11-11 Thread Kevin Krouse

+0

Radu Preotiuc-Pietro wrote:

Please vote on the release of XmlBeans 2.1.0 as it currently exists on
http://xmlbeans.apache.org/dist as xmlbeans-2.1.0-rc1*. If the vote
turns out positive, these archives are going to become the final release
and be renamed to xmlbeans-2.1.0*, then signed and uploaded to the
download servers.

Everyone is welcome to make their opinion heard, however the only
binding votes are those of commiters and PMC members. In order for the
vote to pass, we need a majority approval and at least three binding +1
votes.

This vote will end Tuesday, Nov 15th, 2005 at 5:00PM PST, so make sure
to cast your vote by then as follows:

[ ] +1  -  I am in favor of this release, and can help 
[ ] +0  -  I am in favor of this release, but cannot help 
[ ] -0  -  I am not in favor of this release 
[ ] -1  -  I am against this proposal (must include a reason)



+1

Radu


-
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]