RE: SchemaProperty returning null for maxOccurs = unbounded

2008-09-12 Thread Ole Matzura
SchemaProperty.getIntMaxOccurs() which will indeed return MAX_INT for the unbounded case. Fair enough? Radu _ From: Ole Matzura [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2008 2:31 AM To: user@xmlbeans.apache.org Subject: SchemaProperty returning null for maxOccurs

Re: error: Unexpected element: CDATA

2007-10-08 Thread Ole Matzura
Hi, we had this error under jdk 1.6.0_02 and got around it by putting xerces 2.9.1 in the classpath (instead of using the built-in xerces version) maybe you have a similar setup!? /Ole eviware.com [EMAIL PROTECTED] wrote: Hi All, I get following Exception on parsing my XML file.

remove unused namespaces?

2007-08-20 Thread Ole Matzura
Hi! Is there any way to remove unused namespaces from an XmlObject when it is being saved? My situation is the following: 1) Parse a document with a large number of namespaces 2) Change the content of the document so that many of the namespaces are not used anymore 3) Save the document Now

Re: remove unused namespaces?

2007-08-20 Thread Ole Matzura
On 8/20/07, Ole Matzura [EMAIL PROTECTED] wrote: Hi! Is there any way to remove unused namespaces from an XmlObject when it is being saved? My situation is the following: 1) Parse a document with a large number of namespaces 2) Change the content of the document so that many of the namespaces

Re: remove unused namespaces?

2007-08-20 Thread Ole Matzura
if you are going to be doing this a lot -Jacobd On 8/20/07, Ole Matzura [EMAIL PROTECTED] wrote: Hi Jacob, Thanks for answering.. unfortunately this didn't work.. I tried a number of combinations with different XmlOptions etc without any luck.. Should I file a bug report somewhere? anyhow, I

Re: int 0..1 in my xsd is generated as int in Java instead of Integer

2007-06-07 Thread Ole Matzura
Hi Michael, XmlBeans usually also generates an unsetXXX method in these situations which you can use to it to null.. regards, /Ole eviware.com Michael Mattox wrote: Pim, I expect Integer because I have specified that the parameter is optional (0..1). Usually in SOAP when it's optional,

Re: int 0..1 in my xsd is generated as int in Java instead of Integer

2007-06-07 Thread Ole Matzura
Hi Michael, you should be able to use the isSetXXX method to do something like Integer intValue = myXmlBeansObj.isSetXXX() ? myXmlBeansObj.getXXX() : null; Hope this helps! regards, /Ole eviware.com Michael Mattox wrote: XmlBeans usually also generates an unsetXXX method in these

how to find derived types..

2007-03-21 Thread Ole Matzura
Hi all, I have a schematype in my schematypesystem and now want to find all other types (both anonymous and not) that extend that type.. what is the best way to do this? thanks for any help! regards, /Ole eviware.com - To

Re: Feature request: Array Reordering

2006-06-20 Thread Ole Matzura
---- From: Ole Matzura [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 5:53 PM To: user@xmlbeans.apache.org Subject: Feature request: Array Reordering Hi all! this may be a little late for the upcoming release, but it would be great if a future release had support for reordering th

selecting text nodes with xpath..

2006-05-05 Thread Ole Matzura
Hi! a small issue; I need to select text nodes with xpath, for example //myelement/text(). The XmlObject.selectPath method unfortunately returns the containing element instead, which gives me problems when I want to change the selected value since I only want to modify at the text-node level,

Reordering array problem

2005-08-11 Thread Ole Matzura
Hi all! I'm trying to change the order of the items in an array generated for an unbounded element of a complex type in my schema... ie my schema contains sequence element name=Foo type=tns:FooType minOccurs=0 maxOccurs=unbounded/ /sequence and the XmlBeans object for the containing complex