Re: What's wrong with the following XML??

2008-03-19 Thread Jacob Danner
I can see why inst2xsd tool is doing that. The tools sees: and ... As 2 different types, if you want to correct that, you can try making them both subComponent Elements as ... HTH, -jacobd On Wed, Mar 19, 2008

RE: Algorithm for saving CDATA blocks in XML Beans 2.2 ?

2008-03-19 Thread Cezar Andrei
Indeed the options weren't available but the algorithm and default values are the same. Cezar > -Original Message- > From: Steve Davis [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 19, 2008 3:49 PM > To: user@xmlbeans.apache.org > Subject: RE: Algorithm for saving CDATA blocks in XML

What's wrong with the following XML??

2008-03-19 Thread Dan Hwang
Hello, I've beening using inst2xsd script to generate xsd from xml. I added block to add some new features. After regenerating the xsd, I noticed that has been changed. before ... ... after ..

RE: Algorithm for saving CDATA blocks in XML Beans 2.2 ?

2008-03-19 Thread Steve Davis
Cezar, If I am not mistaken, the older XML Beans version 2.2 does not does not support these options. Please clarify. Thanks, Steve -Original Message- From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 4:38 PM To: user@xmlbeans.apache.org Subject: RE: Algorithm

RE: Algorithm for saving CDATA blocks in XML Beans 2.2 ?

2008-03-19 Thread Cezar Andrei
Steve, The javadoc for setSaveCDataLengthThreshold and setSaveCDataEntityCountThreshold seems to be quite clear: * CDATA will be used if the folowing condition is true: * textLength > cdataLengthThreshold && entityCount > cdataEntityCountThreshold * The default value of cdataLength

Algorithm for saving CDATA blocks in XML Beans 2.2 ?

2008-03-19 Thread Steve Davis
I see that XML Beans 2.3 provides some control over when the saver generates CDATA. The XML Options setSaveCDataLengthThreshold and setSaveCDataEntityCountThreshold allow any of the following configurations: Every text is CDATA Only text that has an entity is CDATA Only text longer than x chars is

RE: Imported, included schemas

2008-03-19 Thread Wing Yew Poon
Denis, when you compile your schema in xmlbeans (using scomp), you get a jar. Inside this jar, there will be a copy of the xsd file containing your schema. SchemaType.getSourceName() returns a string which is the path to this file in the jar. One of the points Radu was making is that you should not

RE: Imported, included schemas

2008-03-19 Thread Denis.Sitnitsa
"returns the path to the Schema file inside the jar that it came from" I don't use jar files. I open my xsd schemas with my types, elements, etc -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 12:49 AM To: user@xmlbeans.apache.

RE: Imported, included schemas

2008-03-19 Thread Denis.Sitnitsa
What is this? I mean method getResourceByName(). What is it belong to? Which class? -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 12:49 AM To: user@xmlbeans.apache.org Subject: Re: Imported, included schemas I think that this has

RE: java.lang.IllegalStateException: Cursor has been disposed

2008-03-19 Thread Chris Snow
I've found it... selectPath( instructionXpath ); returns void! From: Chris Snow [mailto:[EMAIL PROTECTED] Sent: 19 March 2008 10:02 To: user@xmlbeans.apache.org Subject: java.lang.IllegalStateException: Cursor has been disposed I have a message

java.lang.IllegalStateException: Cursor has been disposed

2008-03-19 Thread Chris Snow
I have a message that is throwing java.lang.IllegalStateException: Cursor has been disposed I can't see what I am doing wrong. Any help would be most appreciated. Thanks in advance ... public Instruction fromMessage(Message msg) throws MessageConversionException {

RE: Imported, included schemas

2008-03-19 Thread Denis.Sitnitsa
getResourceByName. What is this? Method of what? -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2008 12:49 AM To: user@xmlbeans.apache.org Subject: Re: Imported, included schemas I think that this has been covered, but getSourceName()