Pojo-xml mapping..

2006-10-14 Thread Mert Çalışkan
Does XMLBeans have the capability to map java classes to xml by only using the pojo's?I was using xmlBeans for marshal/unmarshaling but it needs an xsd to generate the domain classes. Castor does the mapping I mentioned but it doesn't have much control, like it maps list or sets as the Object

RE: XML Schema evolution forward and backwards compatibility

2006-10-14 Thread Radu Preotiuc-Pietro
Hi Ruben, I think this is handled quite nicely by XmlBeans, within the context set by the XMLSchema spec. Assuming you have a backwards-compatible Schema on the server and an older version of that on the client you can either have extra elements sent by the server, which will of course be

RE: Xmlbeans and Xinclude

2006-10-14 Thread Radu Preotiuc-Pietro
Well, it looks to me that this is a little beyond XMLBeans. Can you try just using Xerces without XMLBeans to parse the same document? If you have the same error, then you'll obviously have to fix that before you can expect that it will work with XMLBeans, if not, then we have to figure out

RE: XMLBeans generated inner class names too long for Windows platforms.

2006-10-14 Thread Radu Preotiuc-Pietro
We have a JIRA issue opened on this, XMLBEANS-282. I have added a comment on that, the fact that more and more people are hitting this ismotivation forus to give it higher priority. Radu From: Vines, Herbert [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 11:37 AMTo:

RE: Memory problem

2006-10-14 Thread Radu Preotiuc-Pietro
The SAXParser definitely doesn't maintain references to the XMLBeans impl classes, if that's what you mean. It's very difficult to diagnosticate memory problems over e-mail, but obviously what I suggest is running your app through a memory profiler and see what is actuallyholding

RE: Problem with recursive xpath

2006-10-14 Thread Radu Preotiuc-Pietro
Well, what I can say is that the fact that you have XMLBeans gen'd for some elements and not for others doesn't make a difference. I am not familiar with the path engine that you are using (is it Xalan?). XmlBeans uses Saxon by default (if you have it on the classpath that is, see

RE: Validation problem

2006-10-14 Thread Radu Preotiuc-Pietro
Well, it is because the tag names in your XML document have to match element declarations in your Schema. Then, each element has a type, which is used to validate that element's content. The names of the types themselves don't correspond to tags in the instance document. You can read the first

RE: Default namespace and serialization

2006-10-14 Thread Radu Preotiuc-Pietro
Setting XmlOptions.setUseDefaultNamespace() on save() or xmlText() should accomplish exactly what you need. Is that what you have tried? Radu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 29, 2006 2:19 AM To: user@xmlbeans.apache.org

RE: reading xml elements names

2006-10-14 Thread Radu Preotiuc-Pietro
If object.getDefaultEmailAddress() is what you use to get the value of the DataObject, then object.newCursor().getName() will return the name of the element (defaultEmailAddress). Radu -Original Message- From: Siva [mailto:[EMAIL PROTECTED] Sent: Friday, September 22, 2006 2:35 AM To: