RE: Encoded string too long

2009-09-17 Thread Hildegunde Weinzierl
Hi, can anybody help me to solve this problem? Because I need the solution urgently. Is there an error in scomp or did I make a mistake? Thanks! Best regards Hildegunde _ ESG

Re: scomp fails trying javac

2009-09-16 Thread Jerry Brown
As I said this is an 'old' error. A response is in the FAQ. I looked up where the error occured in the java code statements 373, 1154, and 231, It is trying to compile but can't. There is no javac program in directory xmlbeans-2.4.0; it is in %JAVA_HOME%\bin where it is supposed to be.

Re: heap error

2009-09-15 Thread Jozef Aerts - XML4Pharma
Did you increase the heap size before starting anyway ? Something like -Xmx1024M -Xms1024M The default is 160K or something like that, which is not much ... - Original Message - From: Jason Berk jb...@purdueefcu.com To: user@xmlbeans.apache.org Sent: Tuesday, September 15, 2009 3:01

RE: heap error

2009-09-15 Thread Jason Berk
] Sent: Tuesday, September 15, 2009 9:23 AM To: user@xmlbeans.apache.org Subject: Re: heap error Did you increase the heap size before starting anyway ? Something like -Xmx1024M -Xms1024M The default is 160K or something like that, which is not much ... - Original Message - From: Jason

RE: scomp fails trying javac

2009-09-14 Thread Strong.James
Jerry, Not sure if you actually had a problem with scomp.cmd or are reading documentation that indicates Java 1.5. Either way, if you have the JDK installed, a PATH setting to include your JDK\bin and a JAVA_HOME environment variable defined, you should not really have any problem with scomp.cmd

RE: java.lang.OutOfMemoryError: Java heap space

2009-09-14 Thread Jason Berk
FYI: the xml is 1MB is size and is different for each account. Jason -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Monday, September 14, 2009 4:16 PM To: user@xmlbeans.apache.org Subject: java.lang.OutOfMemoryError: Java heap space I have an xml clob and

Re: java.lang.OutOfMemoryError: Java heap space

2009-09-14 Thread Jacob Danner
Hmm, are you putting 30K of xml into memory? or only parsing the results as they are needed? In other words, are there references left around that is causing the heap to grow? -jacobd On Mon, Sep 14, 2009 at 1:16 PM, Jason Berk jb...@purdueefcu.com wrote: I have an xml clob and account in a DB.

RE: java.lang.OutOfMemoryError: Java heap space

2009-09-14 Thread Jason Berk
From: Jacob Danner [mailto:jacob.dan...@gmail.com] Sent: Monday, September 14, 2009 4:27 PM To: user@xmlbeans.apache.org Subject: Re: java.lang.OutOfMemoryError: Java heap space Hmm, are you putting 30K of xml into memory? or only parsing the results

Re: Cannot load SchemaTypeSystem

2009-09-13 Thread Jacob Danner
If the file is present as a result of the ant build, I'd say the issue lay somewhere in your netbeans configuration. Is there a reason you need the xmlbeans sources? From your ant task it looks like you want the task to generate source (srcOnly) and a jar (destFile). I've only used the task with

Re: scomp fails trying javac

2009-09-12 Thread Jacob Danner
I'm not sure of the question, but I've been using scomp with JDK 1.6 version 04, 10 and now 14 without problems for many months. HTH, -jacobd On 9/12/09, Jerry Brown jbr...@dvierow.com wrote: I am a newbie and this is an 'old' error. But I have the JDK ahead of the JRE on my PATH. It is Java

RE: [xmlbeans] Dynamically renaming an element in XmlObject?

2009-09-10 Thread sol myr
Thanks so much, that's just what I was looking for :) --- On Wed, 9/9/09, Cezar Andrei cezar.and...@oracle.com wrote: From: Cezar Andrei cezar.and...@oracle.com Subject: RE: [xmlbeans] Dynamically renaming an element in XmlObject? To: user@xmlbeans.apache.org Date: Wednesday, September 9, 2009

RE: [xmlbeans] Dynamically renaming an element in XmlObject?

2009-09-09 Thread Cezar Andrei
Hi, Take a look at the XmlCursor interface, with it you have low level access to the xml representation, you can create/modify instances that don't have a schema definition. Renaming elements is not possible, but in your case, you can create a new doc with one element AAA and than copy

RE: xml parsing issue, xmlbeans version 2.4

2009-09-09 Thread Kristen Roth
[mailto:cezar.and...@oracle.com] Sent: Wednesday, September 09, 2009 5:08 PM To: user@xmlbeans.apache.org Subject: RE: xml parsing issue, xmlbeans version 2.4 Hi Kristen, The in-memory representation of the text after XMLBeans parsing is with all entities decoded, when you save it back

Re: locale issue: translating xmlbean error texts

2009-09-02 Thread vinc.turco
Hi Jacob, thanks for replying I would like to change the error messages directly in the jar, without recompiling everything from source. Which one is that? Thanks, regards Vincenzo Jacob Danner-2 wrote: The properties file containing the resource strings is located at

Re: locale issue: translating xmlbean error texts

2009-09-02 Thread Jacob Danner
The properties file is just a resource bundle so I think adding your own properties file for your locale should work. Here is a link that may help http://java.sun.com/docs/books/tutorial/i18n/resbundle/index.html -jacobd On Wed, Sep 2, 2009 at 1:53 AM, vinc.turco vinc.tu...@gmail.com wrote: Hi

Re: locale issue: translating xmlbean error texts

2009-09-01 Thread Jacob Danner
The properties file containing the resource strings is located at src\xmlpublic\org\apache\xmlbeans\message.properties (for EN) -jacobd On Tue, Sep 1, 2009 at 8:42 AM, vinc.turco vinc.tu...@gmail.com wrote: Hi developers, I need to translate xmlbeans error messages from english, how can I do

Re: Illegal XML character: 0x1c inside CDATA

2009-08-25 Thread Bartolomeo Nicolotti
Hi, if you open the attached file with an editor that let you see the hex code of the files, for example ghex2 in linux, you'll see that before the string denominaciones de origen espa there's a 0x1c byte that's the one that causes the exception. Removing this byte there's a further failure

RE: Illegal XML character: 0x1c inside CDATA

2009-08-25 Thread Wing Yew Poon
encoding just because you demarcate some block of characters inside a CDATA section. - Wing Yew -Original Message- From: Bartolomeo Nicolotti [mailto:bnicolo...@siapcn.it] Sent: Tuesday, August 25, 2009 2:15 AM To: user@xmlbeans.apache.org Subject: Re: Illegal XML character: 0x1c inside

Re: Illegal XML character: 0x1c inside CDATA

2009-08-24 Thread Bartolomeo Nicolotti
Hi, we do the same, we use have the attached file in a string, having POSTed it with int org.apache.commons.httpclient.HttpClient.executeMethod(HttpMethod method) throws IOException, HttpException and then we do XMLObject.parse, as you can see also from the call stack:

Re: Illegal XML character: 0x1c inside CDATA

2009-08-21 Thread Jacob Danner
I've seen similar when working with content retrieved from URLs. What I found was the problem wasn't in the content of the xml, but in some additional data that was passed along prior to the xml payload I wanted. My workaround to this was to use some IO Stream APIs to read the content into a

Re: AW: ClassCastException when parsing using SchemaTypeLoader

2009-08-14 Thread haddati
, if you want to have the source code of our XmlBeanFactory. Best wishes, Andreas -Urspr?ngliche Nachricht- Von: haddati [mailto:hadd...@gmail.com] Gesendet: Donnerstag, 13. August 2009 18:51 An: user@xmlbeans.apache.org Betreff: RE: ClassCastException when parsing using

RE: Maven and XMLBeans, not best friends??

2009-08-14 Thread hannehomuth
Did you look at using the maven-plugin that's in XMLBeans tree? http://svn.apache.org/viewvc/xmlbeans/trunk/maven-plugin/ No not yet, I only tried the plugin which lies in the central maven repository. But this didn't work, as I said already. We are using an ant task now, which will be executed

RE: ClassCastException when parsing using SchemaTypeLoader

2009-08-13 Thread haddati
Hi folks, Hope this topic will be read. I'm getting a similar problem but using newIstance instead of parse. Here is my code: code SchemaTypeLoader stl = XmlBeans.typeLoaderUnion( new SchemaTypeLoader[] { x.y.MyPrefixEventNameDocument.type.getTypeSystem(),

RE: Maven and XMLBeans, not best friends??

2009-08-06 Thread Cezar Andrei
Did you look at using the maven-plugin that's in XMLBeans tree? http://svn.apache.org/viewvc/xmlbeans/trunk/maven-plugin/ Cezar -Original Message- From: hannehomuth [mailto:hannehomu...@gmx.de] Sent: Wednesday, July 22, 2009 5:22 AM To: user@xmlbeans.apache.org Subject: Maven and

Re: Maven and XMLBeans, not best friends??

2009-08-05 Thread Jacob Barde
hannehomuth, Might want to try a more recent version of the mojo xmlbeans plugin. It's currently up to version 2.3.2, and it supports XMLBeans 2.4.0, located on http://repository.codehaus.org/. I use the following to generate source and compiled jars with success. One thing though, if you

Re: Maven and XMLBeans, not best friends??

2009-08-05 Thread Andreas Loew
Jacob Barde schrieb: Might want to try a more recent version of the mojo xmlbeans plugin. It's currently up to version 2.3.2, and it supports XMLBeans 2.4.0, located on http://repository.codehaus.org/. ... and - just in case - please be aware of the fact that you still have the full

Re: CDATA Bookmark problem, xmlbeans version 2.4

2009-08-05 Thread _Felix_
I have the same problem and couldn't make it work. Basically I'm doing the same: - Give value to the field I want as a CDATA - Define the CDATA bookmark for that field - Use setUseCDataBookmarks in the XmlOptions used when saving the document. My code is basically the same: DayType day =

Re: Suppress prefix validation in the XML -Message

2009-07-25 Thread Jacob Danner
from what you describe it sounds like you might have a validation issue with the instance. Have you tried validating and seen if there are errors? This: responsexmlns=http://kkk/schema/xsxs; xmlns:ns1=http://kkk/xsx.org/; ns1:something ns1:mn and so on/ns1:mn /ns1:something

Re: Suppress prefix validation in the XML -Message

2009-07-25 Thread Henry A
from what you describe it sounds like you might have a validation a) The only message after validating of response i get is a boolean value:false //hier is the validation responseDoc.Factory.parse(respons_decoded).validate(); Are there other options to get more validation data from the xmlbean!?

Re: Suppress prefix validation in the XML -Message

2009-07-25 Thread Pete Cordell
Subject: Re: Suppress prefix validation in the XML -Message from what you describe it sounds like you might have a validation a) The only message after validating of response i get is a boolean value:false //hier is the validation responseDoc.Factory.parse(respons_decoded).validate

Re: Suppress prefix validation in the XML -Message

2009-07-25 Thread Jacob Danner
A) Take a peek at http://xmlbeans.apache.org/docs/2.0.0/guide/conValidationWithXmlBeans.html#validation_apis you can set an error listener on the XMLOptions you pass into the validate method and get much more useful information. The value of false means the instance is not valid according to the

RE: ID and IDREF validation error

2009-07-01 Thread Wing Yew Poon
Bala, can you please post your schema, xml instance, and java code? Thanks, Wing Yew _ From: bchalla [mailto:balu_cha...@yahoo.co.in] Sent: Wednesday, July 01, 2009 10:04 AM To: user@xmlbeans.apache.org Subject: ID and IDREF validation error Hi, I am getting a strange problem saying

RE: ID and IDREF validation error

2009-07-01 Thread bchalla
Wing Yew, Schema: --- xsd:import namespace=http://www.xmllegal.org/Schema/Court/US/California/2GEFS/BuildingBlocks/Attributes/03/; schemaLocation=../../../../../../../../../Schema/Court/US/California/2GEFS/BuildingBlocks/Attributes/03/Attributes.xsd / xsd:complexType name=Role

RE: Getting schema attributes from generated XMLBean.

2009-06-26 Thread Strong.James
Paul, thank you for finding this. I appreciate the quick response. I had spent a while trying to search through the javadocs and google for the concept of a SchemaDocument but with no luck. With the research I had done before, I have been able to add to the code to remove the implementation

RE: Getting schema attributes from generated XMLBean.

2009-06-25 Thread Gillen, Paul
Found this link: http://markmail.org/message/4dpjccm5k5sgit3i Hacked it a bit. Looks very implementation dependent but it works. Paul -- package com.corp.demo; import java.io.File; import noNamespace.FubarDocument; import org.apache.xmlbeans.impl.xb.xsdschema.SchemaDocument;

RE: How creating an XmlObject only knowing the name of the generated document class?

2009-06-22 Thread Gillen, Paul
Sorry for the late reply; been on vacation. This may have been answered but this is what worked for me (if I understood your question correctly): public String validateXml(String aClassName, String aXml) { outputXml = null; try { Class

Re: Parsing the soap request with Xmlbean

2009-06-22 Thread Prasad Iyer
(XmlException e) { e.printStackTrace(); } } } From: Krishna Gopal Binyala kgbiny...@gmail.com To: user@xmlbeans.apache.org Sent: Sunday, June 21, 2009 8:21:08 PM Subject: Re: Parsing the soap request with Xmlbean Hello Prasad, I am also

Re: Parsing the soap request with Xmlbean

2009-06-21 Thread Krishna Gopal Binyala
Hello Prasad, I am also doing something similar to thiscan you pls post your code. I was also not able to parse the SOAP Envelope. I created the DOM and then from the SOAP Body, i had taken my my business objects and mapped with XMLBeans objects. It will be great if you can post the

Re: removing nil tags from response

2009-06-19 Thread Krishna Gopal Binyala
Hello Jeff, Thanks for reply. The code works fine with small correction . cursor.removeXml() ; cursor.toPrevToken(); // to be added // if the toPrevToken() is not used, it will not remove two consecutive nil elements. // because removeXml() will set the

RE: How to get required vs optional from a schema?

2009-06-19 Thread Radu Preotiuc-Pietro
Hi Adam, There is no API to get that directly, but it is easy to get the info using SchemaType.getProperties(). Then, iterate over all properties, checkin for those that have .getMinOccurs() 0. You get both elements and attributes, aggregated. Radu -Original Message- From: Adam

Re: Parsing the soap request with Xmlbean

2009-06-19 Thread Prasad Iyer
I got it I was importing a wrong class file. thanks From: Prasad Iyer prasadi...@ymail.com To: user@xmlbeans.apache.org Sent: Friday, June 19, 2009 2:22:16 PM Subject: Parsing the soap request with Xmlbean Hi, I am a newbie to XMLBean. I need help parsing

Re: removing nil tags from response

2009-06-18 Thread Jeff Lusted
Hi Krishna! On Thu, 2009-06-18 at 18:15 +0530, Krishna Gopal Binyala wrote: I am using XMLBeans 2.2.0 for data binding in my web service; i.e. request and response. If for some of the values in my response are null/ nil.. the response tag is coming as Data xsi:nil=true

Re: Adding/Removing xml documents as xs:any

2009-06-17 Thread Kapil Anand
as xsd:any inside the parent, the following code re-creates the XML document from this xs:any without knowing its actual type) SchemaTypeLoader typeLoader = XmlBeans.getContextTypeLoader(); XmlObject[] anyChildren = parent.selectPath(./*); XmlObject anyChild = anyChildren[0]; XmlCursor

Re: Adding/Removing xml documents as xs:any

2009-06-17 Thread Kapil Anand
I found a way in the API to circumvent the Java reflection code i posted earlier. SchemaTypeLoader.newInstance(SchemaType, XmlOptions) creates the empty typed XmlObject hope this helps others. regards kapil Kapil Anand wrote: hi I am running into problem while trying to extract an xs:any

RE: XmlBeans scomp to compile a WSDL

2009-06-17 Thread Radu Preotiuc-Pietro
...@nscorp.com] Sent: Monday, June 08, 2009 1:28 PM To: user@xmlbeans.apache.org Subject: RE: XmlBeans scomp to compile a WSDL If I said what I've been tasked with doing it might help. The system logs all XML in/out, some from web services, some from other sources. Each XML document can be viewed

RE: Question about XML generation

2009-06-17 Thread Radu Preotiuc-Pietro
In theory, you could have a tool to insert those automatically, and it would not be too difficult to write, but we don't have it yet (I was just about to start working on it at some point :-) Thanks, Radu -Original Message- From: minifreak [mailto:seniledemen...@gmail.com] Sent:

RE: Schema weirdness running in ant task vs main

2009-06-17 Thread Radu Preotiuc-Pietro
Subject: Schema weirdness running in ant task vs main Dear All, Using the latest greatest XMLBeans I have re-written the : org.apache.xmlbeans.impl.xsd2inst.SchemaInstanceGenerator as an ant task. When running the code as a std java app e.g. public static void main(String args

RE: Antwort: Re: How creating an XmlObject only knowing the name of the generated document class?

2009-06-17 Thread Radu Preotiuc-Pietro
Just making sure you have seen Kapil Anand's post earlier today (Wed). I think that's what you are looking for also. Radu _ From: Hildegunde Weinzierl [mailto:hildegunde.weinzi...@esg.de] Sent: Tuesday, June 16, 2009 4:07 AM To: user@xmlbeans.apache.org Subject: Antwort: Re: How

Re: How creating an XmlObject only knowing the name of the generated document class?

2009-06-16 Thread Jacob Danner
Have you tried XmlObject xmlobject = XmlObject.Factory.newInstance()? -jacobd On Tue, Jun 16, 2009 at 12:01 AM, Hildegunde Weinzierlhildegunde.weinzi...@esg.de wrote: Hi, how can I get the XmlObject  like I would get with the following call         XmlObject xmlobject =

Antwort: Re: How creating an XmlObject only knowing the name of the generated document class?

2009-06-16 Thread Hildegunde Weinzierl
Hi, yes, but I need the SchemaType of the corresponding MyReportDocument. Best regards Hildegunde Weinzierl

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
I don't use maven and it's too hard for me to read the classpath you include, but you not only need saxon9.jar and saxon9-dom.jar, you need xbean_xpath.jar. The xbean_xpath.jar comes with the XMLBeans 2.4.0 binary distribution. And yes, it is a classpath issue. - Wing Yew _ From:

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
and 9.1.0.6 saxon jars. A 2.3.0 xbean.jar is not going to recognize the glue code in a 2.4.0 xbean_xpath.jar, nor Saxon 9. _ From: Wing Yew Poon Sent: Monday, June 15, 2009 10:42 AM To: user@xmlbeans.apache.org Subject: RE: Xpath/Saxon classpath issue? I don't use maven and it's too

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Christopher Hunt
Hi Wing Yew, On 16/06/2009, at 3:42 AM, user-digest-h...@xmlbeans.apache.org wrote: I don't use maven and it's too hard for me to read the classpath you include, but you not only need saxon9.jar and saxon9-dom.jar, you need xbean_xpath.jar. The xbean_xpath.jar comes with the XMLBeans

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
P.S. I find it a little bewildering that xmlbeans doesn't utilise Maven given its Apache status. There is no law that says that Apache projects must use Maven. Ant is an Apache project too. XMLBeans has been using Ant for years, and it serves its purpose just fine.

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
...@internode.on.net] Sent: Monday, June 15, 2009 4:26 PM To: Wing Yew Poon Cc: user@xmlbeans.apache.org Subject: RE: Xpath/Saxon classpath issue? Hi Wing Yew, On 16/06/2009, at 3:42 AM, HYPERLINK mailto:user-digest-h...@xmlbeans.apache.orguser-digest-h...@xmlbeans.apache.org wrote: I don't use maven

RE: Escaped characters problem

2009-06-10 Thread Wing Yew Poon
In XML, the character data inside an element must not contain a raw unescaped open angle bracket (); this character is always interpreted as the start of a tag. If you need to use this character, you can escape it using the built-in entity reference lt; (or the numeric or hexadecimal numeric

RE: XmlBeans scomp to compile a WSDL

2009-06-08 Thread Gillen, Paul
, Axis2, or any other software? Paul -Original Message- From: Jacob Danner [mailto:jacob.dan...@gmail.com] Sent: Monday, June 08, 2009 12:25 PM To: user@xmlbeans.apache.org Subject: Re: XmlBeans scomp to compile a WSDL RequestMessage would only be created if it was defined in any

RE: XML validation not showing element name in error

2009-06-04 Thread Gillen, Paul
to the problem. Paul -Original Message- From: Radu Preotiuc [mailto:radu.preotiuc-pie...@oracle.com] Sent: Wednesday, June 03, 2009 4:50 PM To: user@xmlbeans.apache.org Subject: Re: XML validation not showing element name in error No, not currently. There is definitely room for improvement as far

Re: How can I get the annotation of a choice?

2009-06-03 Thread Radu Preotiuc
Schema annotations on choice, (sequence and all) is not implemented. Schema annotations on the extension and restriction elements are not supposed to be accessible as far as I understand the specification, because annotations are accessed via the component, and there is no extension or

Re: XML validation not showing element name in error

2009-06-03 Thread Radu Preotiuc
No, not currently. There is definitely room for improvement as far as this error message is concerned. Hopefully, the message is pretty clear though and allows you to do a quick search in the document for the offending element instance. Radu On Wed, 2009-06-03 at 15:10 -0400, Gillen, Paul wrote:

Re: the default namespace when write a xml

2009-05-28 Thread Jacob Danner
Wasn't this message already posted and answered on the 25th? The link works for me. Here are the contents of the relevant FAQ How can I influence the namespace prefix used when saving/printing out my XML? XMLBeans does not keep the prefixes when the original XML is loaded into the underlying XML

RE: xpath on copy of an object fails

2009-05-22 Thread Wing Yew Poon
in JIRA. Thanks, Wing Yew -Original Message- From: Worrell, Bryan A. [mailto:bworr...@mitre.org] Sent: Friday, May 22, 2009 11:24 AM To: user@xmlbeans.apache.org Subject: RE: xpath on copy of an object fails Hi, I made a mistake in my email--I was using Saxon 9.0.0.4 along with XMLBeans

Re: Problem accessing child attributes

2009-05-19 Thread pattabi
I found that get_store().find_element_user is returning null. I even tried setLoadSubstituteNamespaces but with no luck. pattabi wrote: Hi, I am populating my Xmlbean as follows: ReqPayLoadType pyload = ReqPayLoadType.Factory.parse(payload); When I save the bean to the outputstream,

Re: simple example not working

2009-05-19 Thread David McReynolds
Thanks. That was the problem. I just removed my made up namespace, regenerated and it started working. On Mon, 2009-05-18 at 14:03 -0400, Radu Preotiuc wrote: When you used XmlOptions.setLoadSubstituteNamespaces(), the elements have been moved to the http://xml.report.nexpose.rapid7.net;

Re: Problem accessing child attributes

2009-05-19 Thread Christian Kaltepoth
Hi, you could try to use the corresponding document class for parsing the document instead of ReqPayLoadType. Something like this: ReqPayLoadDocument doc = ReqPayLoadDocument.Factory.parse(payload); DecisionServiceReqType decReq = doc.getReqPayLoad().getDecisionServiceRq(); The exact class

RE: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-18 Thread Cort, Tom
I'm using XMLBeans in a project running on: [ ] jdk 1.3 [ ] jdk 1.4 [X] jdk 1.5 [ ] jdk 1.6 My project will update to jdk 1.5 or newer in: [ ] less than 6 month [X] less than 1 year [ ] more than 1 year -Original Message- From: Cezar Andrei

Re: How can I get the annotation of an enumeration?

2009-05-18 Thread Radu Preotiuc
Unfortunately, no news. Let me check if there is a JIRA issue for this and add one if there isn't. Radu On Mon, 2009-05-18 at 17:24 +0200, Hildegunde Weinzierl wrote: Hi, I want to get the annotation of an enumeration-value. There is already an old thread with subject Extracting

Re: simple example not working

2009-05-18 Thread Radu Preotiuc
When you used XmlOptions.setLoadSubstituteNamespaces(), the elements have been moved to the http://xml.report.nexpose.rapid7.net; namespace. Try instead XmlObject.selectChildren(new QName(http://xml.report.nexpose.rapid7.net;, scan) HTH, Radu On Mon, 2009-05-18 at 18:17 +0100, David McReynolds

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-17 Thread Christian Kaltepoth
I'm using XMLBeans in a project running on: [ ] jdk 1.3 [ ] jdk 1.4 [ ] jdk 1.5 [X] jdk 1.6 Kinds regards Christian On Monday 11 May 2009 22:58:37 Cezar Andrei wrote: Thinking on the features for a new XMLBeans release, a question came on how important is for our community support

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Michael Xenakis
Jacob Danner wrote: What do you mean by to change sth on the namespaces ? When i parse ( with WSDL4J ) a WSDL document from a specified URL i copy the namespaces from WSDL definitions because some of the prefixes that are used in the xsds encapsulated in types are not resolved...So, i

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Jacob Danner
This new error means something the references are now being resolved properly. You'll have to find out why you are getting this new error, but it looks like 2 of your artifacts are compiling/referencing WS-ResourceProperties.wsdl Best of luck, -jacobd On Wed, May 13, 2009 at 12:31 AM, Michael

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Michael Xenakis
Do you mean by that , that the problem is in the wsdl document or the code? Also yesterday i've tried to find where is this WS-ResourceProperties.wsdl and i couldn't find it in their server thanks again Jacob, Michael Jacob Danner wrote: This new error means something the references are

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Jacob Danner
If I'm following whats happening, the issue is actually in how you are compiling all of the schemas together. You probably have several schemas that include the contents of WS-ResourceProperties.wsdl I would imagine the issue is now in your code. As a simple workaround, you might be able to

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-13 Thread Michael Xenakis
Yes, most probably you are right, that's what is happeningi have to skip imports/includes if have already imported/included. The method |XmlOptions http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html| |*setCompileMdefNamespaces

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Kai Ludwig
I’m using XMLBeans in a project running on: [x] jdk 1.5 My project will update to jdk 1.6 or newer in: [x] less than 1 year Kai Ludwig - To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org For additional commands,

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hi Jacob and thanks for the reply, Let's start from scratch. I have WSDL files with WSDL imports. I use WSDL4j to parse the wsdl files...so, when i get the types section of the WSDL document i hold on a Xmlobject array all the XSDs from the types element. After doing this procedure to store

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Maarten Bosteels
I’m using XMLBeans in several projects running on: [X] jdk 1.6 Maarten

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Jeff Lusted
Hi everyone! I'm using XMLBeans in a project running on: [X] jdk 1.5 We have no firm plans for an upgrade to 1.6, but I suspect within the next year. Jeff -- Jeff Lusted tel: +44 (0)116 252 3581 Astrogrid Project mob: +44 (0)7941 599062 Dept Physics Astronomy email:

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Hes Siemelink
I’m using XMLBeans in a project running on: [x] jdk 1.5 [ ] jdk 1.6 We're on WebSphere 6.1 -- no plans to migrate yet. Thanks, Hes.

RE: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Dennis Sherman
I'm using XMLBeans in a project running on: [X] jdk 1.5 No current firm plans to upgrade the jdk. -- Dennis R. Sherman Development Team Leader Ex Libris Group 847-227-2976 dennis.sher...@exlibrisgroup.com http://www.exlibrisgroup.com http://www.exlibrisgroup.com/

RE: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Tim Dilks
We're using XMLBeans in a project running on: [ ] jdk 1.3 [ ] jdk 1.4 [ ] jdk 1.5 [X] jdk 1.6 1.4 support is not required for us. From: Cezar Andrei [mailto:cezar.and...@oracle.com] Sent: Monday, May 11,

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
Hmm, I think you are making it too hard on yourself with all of the WSDL4J to pull out the types element. XMLBeans' scomp tool can be run on wsdls. Have/can you give this a try? I ran the following from the command line without much of a problem. # scomp

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hi Jacob and thank you for your answer, The think is that i can't pull out the WSDL4j from my code because my work is a part of a bigger project that uses WSDL4j. Could you tell me please the way to convert the relative URLs on the imports to absolute URLs?I hope u did that by xmloptions or

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
Hi Michael, I did just convert the wsdl imports by hand because it was the quickest and easiest way for me to. There shouldn't be a problem using the relative URLs so long as the schemaLocation values are all correct (point to proper files) once the scomp is run. Are you doing your compilation

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hey Jacob, Yes, i'm doing the compilation programmatically with compileXSD method...and that was a compileXSD error apparently. I've checked the xmloptions to find a way to skip this error but nothing. Jacob Danner wrote: Hi Michael, I did just convert the wsdl imports by hand because

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-12 Thread Christopher . Mathrusse
in next of XMLBeans Thinking on the features for a new XMLBeans release, a question came on how important is for our community support for jdk 1.4. If you?re using XMLBeans, please let us know what version of jdk are you using in your project and also if you have a target date for a jdk

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
You can't skip an error like this. It's valid. If I'm understanding your case properly, the error message is telling you the imported schemas cannot be found. I would start by looking at how you are creating your XMLObject array. What is the value of

Re: isAbstract returning wrong value

2009-05-12 Thread Matthew Young
worked perfect: System.out.println(XmlBeans.getContextTypeLoader().findElement( new QName(http://www.klistret.com/cmdb/element/logical;, Collection)).isAbstract()); -- View this message in context:

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Hi Jacob, You were right, every single xmlobject (schema) has source name null... What i should do now? Jacob Danner wrote: You can't skip an error like this. It's valid. If I'm understanding your case properly, the error message is telling you the imported schemas cannot be found. I would

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
If been a while since I've tinkered with these APIs, but I would try setting the sourceName value to the value of the schemaLocation ie, setSourceName(../foo.xsd); Let the list know how this turns out. -jacobd On Tue, May 12, 2009 at 10:34 AM, Jacob Danner jacob.dan...@gmail.com wrote: You

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Ok, but the schemaLocations are attributes of the import elements...how could i manipulate every import and correct it , in order to compile? Every import could have different namespace and schemaLocation fields With setSourceName you just set the url of the whole schema... Could you

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
Okay, taking your example from above import namespace=http://blahblahzdoing.com; SchemaLocation=./../X/Y/Z/SchemaExample.xsd/ You are probably doing something like this to load SchemaExample.xsd XMLObject xo = XMLObject.Factory.parse(StringOfSchemaExample.xsd); you might be able to do something

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Michael Xenakis
Actually, i am going to tell you exactly what i do... compilationObject is ArrayListXmlObject and contains all my schemas, but before adding all the schemas to the ArrayList i take the string representation of every xmlobject (schema) to change sth on the namespaces section and again parse

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-12 Thread Jacob Danner
What do you mean by to change sth on the namespaces ? Okay so a couple of things... -You are parsing String representations of schemas which is why you are having trouble resolving references. If you parsed the files, this probably wouldn't be an issue. -You are having these troubles because

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-11 Thread Syed Ali
...@xmlbeans.apache.org; user@xmlbeans.apache.org Subject: [POOL] jdk 1.4 support in next of XMLBeans Thinking on the features for a new XMLBeans release, a question came on how important is for our community support for jdk 1.4. If you¹re using XMLBeans, please let us know what version of jdk

Re: error: URL ../X/Y/SchemaExample.xsd is not well-formed

2009-05-11 Thread Jacob Danner
Maybe I'm missing something in your scenario, but whenever I've seen that error it has meant something is wrong with something in my XML. With your error message, I'd suggest looking at ../X/Y/SchemaExample.xsd as a starting point. Is this file well-formed? What makes you think its an issue that

Re: isAbstract returning wrong value

2009-05-11 Thread Radu Preotiuc
The Schema snippet doesn't say that the type is abstract, but that the element Collection is abstract, so you should check the value on SchemaGlobalElementImpl._abs. Radu On Sun, 2009-05-10 at 07:51 -0700, Matthew Young wrote: using XMLBeans 2.4 the _abs property with the schema Type

Re: [POOL] jdk 1.4 support in next of XMLBeans

2009-05-11 Thread Israel Rivera Jr
I’m using XMLBeans in a project running on: [X] jdk 1.5 Regards, Israel Rivera On Mon, May 11, 2009 at 6:46 PM, Jacob Danner jacob.dan...@gmail.comwrote: I’m using XMLBeans in a project running on: [X] jdk 1.5 [X] jdk 1.6 -jacobd On Mon, May 11, 2009 at 1:58 PM, Cezar Andrei

RE: Comparing enums

2009-05-08 Thread Radu Preotiuc-Pietro
XMLBeans-generated Enums are indeed singletons, so == is safe. Radu From: Hes Siemelink [mailto:hesn...@gmail.com] Sent: Friday, May 08, 2009 5:14 AM To: user@xmlbeans.apache.org Subject: Comparing enums

Re: Substitution groups and class loaders

2009-04-27 Thread Radu Preotiuc
What I think happens is that your main program and your plugin use different instances of the XMLBeans library. In particular, I don't think that substitution groups play any important role here, even though I would warn you that if the substitution group member elements are compiled in a

<    1   2   3   4   5   6   7   8   9   10   >