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

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

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

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

2008-03-19 Thread Jacob Danner
I can see why inst2xsd tool is doing that. subComponents subComponent/ subComponent sequence/ /subComponent /subComponents The tools sees: subcomponent / and subComponentsequence / ... As 2 different types, if you want to correct that, you can

Re: compiled schema beans not backwards compatible?

2008-03-18 Thread Radu Preotiuc-Pietro
It does say exactly that, if you are trying to use them at runtime say. But if you are trying to compile a new Schema with dependencies in jars with an incompatible version number, there is something about that case that makes it ignore that jar rather than report an error. I am not sure if it is

Re: Imported, included schemas

2008-03-18 Thread Radu Preotiuc-Pietro
I think that this has been covered, but getSourceName() returns the path to the Schema file inside the jar that it came from, there is no guarantee that decoding it returns anything meaningful. What you can do is use getResourceByName() to get to the text of the Schema file. But the original

Re: compiled schema beans not backwards compatible?

2008-03-17 Thread Radu Preotiuc-Pietro
They are backwards compatible, but they are not forwards compatible. What I mean by that is that a newer version of XmlBeans (say 2.3.0) can read jars compiled with an older version (say 2.2.0). But XmlBeans 2.2.0 can't read jars compiled with XmlBeans 2.3.0. That would be a much stronger

Re: compiled schema beans not backwards compatible?

2008-03-17 Thread Radu Preotiuc-Pietro
Actually, since you are interested in XMLBeans 2.2.0 and 2.3.0, those numbers are 23 for XMLBeans 2.2.0 and 24 for XMLBeans 2.3.0. Radu On Mon, 2008-03-17 at 15:08 -0700, Radu Preotiuc-Pietro wrote: They are backwards compatible, but they are not forwards compatible. What I mean by that is

Re: How2 Generate XSD from XML that can have variable content

2008-03-17 Thread Radu Preotiuc-Pietro
That's an interesting problem to solve, but it is above and beyond what XMLBeans has been designed for. Radu On Fri, 2008-03-14 at 08:32 -0700, joeweder wrote: I am trying to generate XSDs for our project. I have XML that comes from a search engine which, depending on the query

Re: scomp error - incompatible return type

2008-03-14 Thread Ash Lux
Thank you Jacob and Radu for the help. Unfortunately I'm not the one who controls the schema - it's one of define a schema by a large committee thing. I'm sure that explains a lot. :-) I'll certainly try and get the schema fixed, but I don't want to accuse them of having a bad schema when

Re: scomp error - incompatible return type

2008-03-14 Thread Ash Lux
it makes sense. Hope this helps, Radu -- *From:* Ash Lux [mailto:[EMAIL PROTECTED] *Sent:* Friday, March 14, 2008 6:14 PM *To:* user@xmlbeans.apache.org *Subject:* Re: scomp error - incompatible return type Thank you Jacob and Radu for the help. Unfortunately

Re: found bug minOccures=0 ignored for xs:any

2008-03-13 Thread Stefan Lischke
I filed this bug to Axis2 [1] But i want to investigate further, where do i find the schema information that is used for validation? is it inside the generated classes or inside the xsb files? i noticed that there is a small difference in the cadataf932elemtype.xsb file ---plain xmlbeans

Re: XMLBEANS 2.3.0 and CDATA issue

2008-03-13 Thread Alex Florentino
any idea ? On Wed, Mar 12, 2008 at 11:40 AM, Alex Florentino [EMAIL PROTECTED] wrote: I am using the xmlbeans 2.3.0 I have a document that have another xml document sample: OTAHotel Message !-- another xmldocument -- CONFIRMMESSAGE /CONFIRMMESSAGE /Message /OTAHotel the problem is

Re: found bug minOccures=0 ignored for xs:any

2008-03-13 Thread Radu Preotiuc-Pietro
The Schema information used for validation is indeed in the .xsb file. If you want to look into the issue further, look under the bin/ directory in the distribution and you will see a dumpxsb script. Do dumpxsb type.xsb to get the content of the xsb file in a human-readable form (and look at the

Re: scomp error - incompatible return type

2008-03-13 Thread Radu Preotiuc-Pietro
Having an element called description of type int does sound fishy to me, so I suggest you change that to string. I seem to vaguely remember that there is a Schema rule according to which you can't remove an element by restriction and then in a subsequent derivation step, add it back by extension,

Re: XMLError - Navigating CursorLocation to element when attribute missing

2008-03-13 Thread Radu Preotiuc-Pietro
I haven't gotten the chance to reproduce this, but it looks very much like an XMLBeans bug. If the cursor is not positioned in the right place, I don't think that you, as the caller can do anything to position it right. But you could look at the XMLBeans validation code and see why is it not

Re: Scientific notation decimal type

2008-03-13 Thread Radu Preotiuc-Pietro
That is very strange. Are you setting the value as a BigDecimal? Some sample code would help. Radu On Wed, 2008-03-12 at 10:46 -0600, Joe White wrote: I have a very simple schema that I would like to return a price from (below). However when I generate output the prices are returned in

Re: XMLBEANS 2.3.0 and CDATA issue

2008-03-13 Thread Radu Preotiuc-Pietro
These are the right options, can you post the exact code you're using? Radu On Thu, 2008-03-13 at 08:32 -0300, Alex Florentino wrote: any idea ? On Wed, Mar 12, 2008 at 11:40 AM, Alex Florentino [EMAIL PROTECTED] wrote: I am using the xmlbeans 2.3.0 I have a

Re: XMLBEANS 2.3.0 and CDATA issue

2008-03-13 Thread Alex Florentino
Radu, today I started my computer and it was working(weird) , the cdata was removed, but now the xml string content was replace with xml entity = lt; . Now I need fix it... (I think that is xml problem and not xmlbeans problem, but is not sure about it.) anywhere you could find my sample

Re: found bug minOccures=0 ignored for xs:any

2008-03-12 Thread Stefan Lischke
Hi, I found out, that it works great if i compile the beans with XMLBeans 2.3.0 only. But when i use Axis2 with XMLBeans the validation fails. I even tried the xmlbeans version that is deliverd with Axis2 with the xmlbeans generated classes and it validates fine. It must be something at the bean

Re: found bug minOccures=0 ignored for xs:any

2008-03-12 Thread Radu Preotiuc-Pietro
In this case, I am afraid I am not very familiar with how Axis2 packages XmlBeans, but it does sound surprising that they would change the result of compilation in this way. You are going to have to bring this up on Axis' mailing list. Radu On Wed, 2008-03-12 at 19:18 +0100, Stefan Lischke

Re: How to remove an object

2008-03-12 Thread Radu Preotiuc-Pietro
If the element has minOccurs=0 in the Schema, you should see a method like: businessDescription.unsetBS7666Coordinate() If your minOccurs is 1, then you can still remove it, but you will need to use XmlCursor to do that. Anyway, IMO is better to change the existing element to what you want it to

Re: XmlBeans - Maven2

2008-03-11 Thread David Jencks
On Mar 10, 2008, at 8:39 PM, P.Sathish Kumar wrote: Hi David, Thanks for your reply. In my project, I have one pom.xml to build, in this pom.xml, I included the xmlbean-maven-plugin to compile xsds and to generate jar file. The maven-xmlbeans-plugin does not generate a jar file

Re: (maybe ot) allow text or xs:any

2008-03-11 Thread Psoroulas John
Stefan, you can use a mixed content type. In the definition of your element in XSD, declare the attribute mixed as true. Regards, John On Mon, March 10, 2008 13:10, Stefan Lischke wrote: Hi, It may be OT, but maybe you can help me, i need an xsd expression to allow text-content or any

Re: (maybe ot) allow text or xs:any

2008-03-11 Thread Radu Preotiuc-Pietro
Are you sure you are not running off of a stale version of your Schema (maybe one where you don't have the minOccurs=0)? Or that you don't have multiple definitions for CAdata? The way you posted this example, validation is passing for me. Radu On Tue, 2008-03-11 at 11:02 -0700, Stefan Lischke

Re: found bug minOccures=0 ignored for xs:any

2008-03-11 Thread Radu Preotiuc-Pietro
This one too works for me. Only if I change minOccurs on the any to 1, I get the error that you are getting. Use the validate script (under bin/) to easily check this. Radu On Mon, 2008-03-10 at 13:42 +0100, Stefan Lischke wrote: hi, XMLBeans seems to ignore the minOccurs=0 attribute on

Re: Parsing DOM-Node to specific XMLBean delivers always the root-node twice

2008-03-11 Thread Radu Preotiuc-Pietro
I have been meaning to answer this... XmlOptions.SET_SAVE_INNER inside the parse() method won't help of course, because it is a SAVE option. It doesn't even get looked at for parse. What you need to make sure is that the node parameter looks like: subjectConfirmation/subjectConfirmation (or

Re: [is this a bug?] Re: xs:string - Isn't whitespaces preserved by default?

2008-03-11 Thread dave
I do setSave** (prettyPrint/PrintIndent) on XmlOptions object passed to xmlText(). The api doc clearly states that it'll reformat WhiteSpace chars. Shouldn't these apis honor the contract of underlying type definitions (like preserve WS chars for xs:string type,etc) irrespective of these Pretty

[is this a bug?] Re: xs:string - Isn't whitespaces preserved by default?

2008-03-10 Thread dave
Isn't it a bug with XmlBeans in that xs:string type have whitespace chars removed when written using xmlText/other means? As per w3c standard, xs:string should have whitespace chars preserved by default. We don't need to define 'preserve' facets for this situation. -D --- Jacob Danner [EMAIL

Re: XmlBeans - Maven2

2008-03-10 Thread David Jencks
I don't understand. If you use the xmlbeans plugin in an existing project the generated classes get compiled and included in the project's jar If you have a separate project that just compiles the schemas you get a jar with just the compiled classes that you can then use as a dependency in

Re: XmlBeans - Maven2

2008-03-10 Thread P.Sathish Kumar
Hi David, Thanks for your reply. In my project, I have one pom.xml to build, in this pom.xml, I included the xmlbean-maven-plugin to compile xsds and to generate jar file. My problem is I want to include this generated jar to the dependecy of the same project. For dependencies maven will

Re: Help - Maven2 with XMLBean Integration

2008-03-07 Thread David Jencks
That's the maven 1 xmlbeans 2 plugin. The maven 2 xmlbeans 2 plugin is at codehaus. Docs are: http://mojo.codehaus.org/xmlbeans-maven-plugin/ thanks david jencks On Mar 6, 2008, at 9:27 PM, Jacob Danner wrote: This is documented in the src. You can access it online at:

RE: Special character issues

2008-03-06 Thread Wing Yew Poon
quot; is a predefined entity reference in XML. It is equivalent in XML to the character in character data. That is the whole point of the entity. If you want the literal quot; then you should escape it as amp;quot;. - Wing Yew From: Roch B [mailto:[EMAIL

Re: Help - Maven2 with XMLBean Integration

2008-03-06 Thread Jacob Danner
This is documented in the src. You can access it online at: http://svn.apache.org/viewvc/xmlbeans/trunk/maven-plugin/INSTRUCTIONS.txt?revision=220227view=markup -jacobd On Thu, Mar 6, 2008 at 9:05 PM, [EMAIL PROTECTED] wrote: Hi Friends, I am using XMLBeans to parse some XML Documents

Re: saving xml withour namesapce

2008-03-03 Thread Youssef
Wing Yew Poon wrote: Namespaces are your friends. Why do you want to get rid of them? *From:* temp temp [mailto:[EMAIL PROTECTED] *Sent:* Friday, February 29, 2008 3:03 PM *To:* user@xmlbeans.apache.org *Subject:* saving

RE: saving xml withour namesapce

2008-02-29 Thread Wing Yew Poon
Namespaces are your friends. Why do you want to get rid of them? From: temp temp [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 3:03 PM To: user@xmlbeans.apache.org Subject: saving xml withour namesapce Xml Beans saves xml with the namespace.

RE: how to restrict validation to part of the W3C schema?

2008-02-28 Thread Radu Preotiuc-Pietro
problem. - Wing Yew -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 12, 2008 1:00 PM To: Henry S. Thompson Cc: user@xmlbeans.apache.org Subject: Re: how to restrict validation to part of the W3C schema? is there a way to instruct

Re: endElement in XmlCursor??

2008-02-27 Thread dave
for e.g. am trying to construct a simple example below using XmlCursor: root a b=x/ z ver=4 d test=yes e/ /d /z /root I could only use push/pop along with other regular apis to construct this instance using Cursor. Push/Pop for each element construction looks

Re: xs:string - Isn't whitespaces preserved by default?

2008-02-27 Thread Jacob Danner
How are you generating the XML. I'm not positive its whitespace is preserved if something like xmlText() is used. I might try something like an xs:normalizedString and the whitespace=preserve. -jacobd On Wed, Feb 27, 2008 at 4:57 PM, dave [EMAIL PROTECTED] wrote: I have an xs:string type

Re: Applying XPath to an XML with or without namespace

2008-02-25 Thread Pascal Maugeri
, February 22, 2008 11:11 AM To: user@xmlbeans.apache.org Subject: RE: Applying XPath to an XML with or without namespace Pascal, in a xmlns=mynamespace b/ /a what you have is every element within and including a being qualified as having the namespace mynamespace. Thus, the XPath

Re: Applying XPath to an XML with or without namespace

2008-02-25 Thread Pascal Maugeri
[mailto:[EMAIL PROTECTED] *Sent:* Friday, February 22, 2008 11:11 AM *To:* user@xmlbeans.apache.org *Subject:* RE: Applying XPath to an XML with or without namespace Pascal, in a xmlns=mynamespace b/ /a what you have is every element within and including a being qualified as having

Re: Applying XPath to an XML with or without namespace

2008-02-25 Thread Psoroulas John
AM To: user@xmlbeans.apache.org Subject: RE: Applying XPath to an XML with or without namespace Pascal, in a xmlns=mynamespace b/ /a what you have is every element within and including a being qualified as having the namespace mynamespace. Thus, the XPath must qualify the elements too

RE: Applying XPath to an XML with or without namespace

2008-02-23 Thread Psoroulas John
. From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 11:11 AM To: user@xmlbeans.apache.org Subject: RE: Applying XPath to an XML with or without namespace Pascal, in a xmlns=mynamespace b/ /a what you have is every element within and including a being

Re: How to apply an xpath query to a document ?

2008-02-22 Thread Pascal Maugeri
*To:* user@xmlbeans.apache.org *Subject:* Re: How to apply an xpath query to a document ? Hi Jacob Is this from the plain XPath/Xquery sample? If so I'm not getting the same issue, which makes me wonder if its something in your environment. well I don't know. Actually I've followed

RE: Applying XPath to an XML with or without namespace

2008-02-22 Thread Wing Yew Poon
Pascal, in a xmlns=mynamespace b/ /a what you have is every element within and including a being qualified as having the namespace mynamespace. Thus, the XPath must qualify the elements too. This is only logical. There are a couple of ways you can qualify the elements in the XPath. You can

Re: saving and getting back XMLBeans

2008-02-21 Thread Jacob Danner
Try the save(file) method on the xmlobject. -jacobd On Thu, Feb 21, 2008 at 7:07 AM, Dário Abdulrehman [EMAIL PROTECTED] wrote: Hi, I'd like to save a XMLBean with the declaration and encoding and read it back (using parse?). The method xmlText just saves a xmlfragment with no declaration

Re: saving and getting back XMLBeans

2008-02-21 Thread Dário Abdulrehman
Problem solved, thanks. I noticed that when using save with a StringWriter the XML declaration is not written whereas if I use a File it is. On Thu, Feb 21, 2008 at 3:33 PM, Jacob Danner [EMAIL PROTECTED] wrote: Try the save(file) method on the xmlobject. -jacobd On Thu, Feb 21, 2008 at

Re: [trying again] why validate text inside xs:documentaion

2008-02-21 Thread Jacob Danner
Hi Dave, everything inside and xsd:documentation needs to be well:formed xml. This means any elements declared in the documentation should be declared properly. I believe its actually the rules of XML that require prefixes to be defined. In other words you will have this problem when you do

Re: element default value in generated classes

2008-02-21 Thread Radu Preotiuc-Pietro
In XMLSchema, there is a difference between the element not being there and the element being present, but with the default value. If your application needs to perform the same action for both cases, you would have to code this decision in your application. You can avoid maintaining a separate

Re: Int/ Integer java types for xs:int schema type

2008-02-20 Thread Jacob Danner
Hi Ihab, Take a peek at http://xmlbeans.apache.org/docs/2.0.0/guide/conXMLBeansSupportBuiltInSchemaTypes.html otherwise you will need to declare teh type with nillable=true, etc. HTH, -jacobd On Wed, Feb 20, 2008 at 6:57 PM, Ihab EL-ALAMI [EMAIL PROTECTED] wrote: Hi, How can I generate the Java

Re: Int/ Integer java types for xs:int schema type

2008-02-20 Thread Ihab EL-ALAMI
Thanks Jacob for your quick and precise answer, I tried what you saif by adding nillable=true to the schema, but that did not change anything. The java type is still int. Any other ideas? Thanks again On 2/20/08, Jacob Danner [EMAIL PROTECTED] wrote: Hi Ihab, Take a peek at

RE: SchemaType.getSourceName()

2008-02-15 Thread Wing Yew Poon
, then trying to decode the paths to the xsd's using the strings may no longer work correctly. Just so you're warned. - Wing Yew -Original Message- From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 11:56 PM To: user@xmlbeans.apache.org Subject: Re

RE: SchemaType.getSourceName()

2008-02-15 Thread Cezar Andrei
Denis, SchemaType.getSourceName() returns a name of a resource that represents the original xsd file from which the type came from. You can get to the resource by using a SchemaTypeLoader that has access to it. See the following example on how to use it: static void

RE: how to restrict validation to part of the W3C schema?

2008-02-15 Thread dave
Subject: Re: how to restrict validation to part of the W3C schema? is there a way to instruct the validator to ignore namespace as well for this 'noValidation' element's children? Thanks -D --- Henry S. Thompson [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: SchemaType.getSourceName()

2008-02-14 Thread Jacob Danner
Hi Denis, From what I remember, SchemaComponent.getSourceName() will return the path/location of the xsd used to create the type system. http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/SchemaComponent.html#getSourceName() If the schema was built from a string, this method

RE: How to apply an xpath query to a document ?

2008-02-14 Thread Wing Yew Poon
@xmlbeans.apache.org Subject: Re: How to apply an xpath query to a document ? Hi Jacob Is this from the plain XPath/Xquery sample? If so I'm not getting the same issue, which makes me wonder if its something in your environment. well I don't know. Actually I've followed

RE: SchemaType.getSourceName()

2008-02-14 Thread Denis.Sitnitsa
@xmlbeans.apache.org Subject: Re: SchemaType.getSourceName() Hi Denis, From what I remember, SchemaComponent.getSourceName() will return the path/location of the xsd used to create the type system. http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/Sche maComponent.html#getSourceName

Re: SchemaType.getSourceName()

2008-02-14 Thread Jacob Danner
: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 14, 2008 8:32 PM To: user@xmlbeans.apache.org Subject: Re: SchemaType.getSourceName() Hi Denis, From what I remember, SchemaComponent.getSourceName() will return the path/location of the xsd used to create the type system

Re: How to apply an xpath query to a document ?

2008-02-13 Thread Pascal Maugeri
Jacob I get the following error when I try to run the sample: [echo] == running XQueryXPath [java] Running ExecQuery.selectEmpsByStateCursor [java] [java] Exception in thread main java.lang.NullPointerException [java] at

Re: Help with integrating maven2 plugin and apache

2008-02-13 Thread Todd Nine
Hi guys, I wanted to thank everyone for their help. I finally got it working. Basically, I used the plugin and dependencies below only. Then I just added the jar that is generated by the plugin to the eclipse classpath manually. Once I did that, everything worked! plugin

RE: how to restrict validation to part of the W3C schema?

2008-02-12 Thread Wing Yew Poon
, February 12, 2008 1:00 PM To: Henry S. Thompson Cc: user@xmlbeans.apache.org Subject: Re: how to restrict validation to part of the W3C schema? is there a way to instruct the validator to ignore namespace as well for this 'noValidation' element's children? Thanks -D --- Henry S. Thompson [EMAIL

Re: how to restrict validation to part of the W3C schema?

2008-02-12 Thread dave
is there a way to instruct the validator to ignore namespace as well for this 'noValidation' element's children? Thanks -D --- Henry S. Thompson [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 dave writes: 1. How would I specify in the Schema that

Re: Trouble generate java file with multiple xsd files

2008-02-11 Thread Alex Florentino
the command: scomp -out myjar.jar -allowmdef http://www.opentravel.org/OTA/2003/05; *.xsd it is work fine. thanks On Feb 6, 2008 4:03 PM, Jacob Danner [EMAIL PROTECTED] wrote: Hi Alex, You are getting an error because 2 of your schemas have the same type (in this case, attribute group)

Re: How to apply an xpath query to a document ?

2008-02-10 Thread Jacob Danner
Take a peek at http://xmlbeans.apache.org/samples/XQueryXPath.html -jacobd On Feb 10, 2008 7:56 AM, Pascal Maugeri [EMAIL PROTECTED] wrote: Hi I need to do this simple operation: having a XML document (as a String for instance) I want to apply to it an XPath query and to get the XML fragment

Re: Help with integrating maven2 plugin and apache

2008-02-10 Thread Todd Nine
Bump, I've been struggling with this for 2 days. Note that my title is incorrect, is should say integrating maven 2 plugin and Eclipse. I've tried downgrading xmlbeans.xbean from 2.2.0 to 2.1.0, which didn't fix my issue. If I choose a version less than 2.1.0, the plugin completely blows up

Re: Help with integrating maven2 plugin and apache

2008-02-10 Thread Jacob Danner
Hi Todd, I'm not an eclipse user (IntelliJ IDEA), but I'll give it a try. Which maven plugin are you using, which version of eclipse? Have you queried the maven or eclipse projects for similar issues? -jacobd On Feb 10, 2008 6:21 PM, Todd Nine [EMAIL PROTECTED] wrote: Bump, I've been

Re: Help with integrating maven2 plugin and apache

2008-02-10 Thread David Jencks
I don't use eclipse. Apparently the eclipse doesn't work well with maven plugins that generate binary code that eclipse is supposed to recognize but not compile itself. In geronimo we've written a plugin that IIUC copies the generated code to a location that eclipse can find. A typical

RE: search and replace kind of operations with XML

2008-02-07 Thread Radu Preotiuc-Pietro
To: user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: Re: search and replace kind of operations with XML Am already using XmlBeans. I would need to see how I can integrate VTD-XML with XMLBeans. I agree with you that VTD-XML is an ideal match for what I want to accomplish. I would still

Re: Trouble generate java file with multiple xsd files

2008-02-06 Thread Jacob Danner
Hi Alex, You are getting an error because 2 of your schemas have the same type (in this case, attribute group) defined in them. You'll want to make sure the types are in fact the same, rather than just having the same name first. After that, there are a couple of things you can do here: 1) move

Re: search and replace kind of operations with XML

2008-02-06 Thread jimmy Zhang
I think you may find VTD-XML ideally suited for this (better than any other technologies AFAIK ) because of its incremental update capability and built-in XPath http://www.javaworld.com/javaworld/jw-07-2006/jw-0724-vtdxml.html http://www.devx.com/xml/Article/36379 - Original Message

Re: search and replace kind of operations with XML

2008-02-06 Thread dave
Am already using XmlBeans. I would need to see how I can integrate VTD-XML with XMLBeans. I agree with you that VTD-XML is an ideal match for what I want to accomplish. I would still prefer if XmlBeans offers anything on this line. Thanks Jimmy. dave --- jimmy Zhang [EMAIL PROTECTED] wrote:

RE: Name/Value Pair Issue.

2008-02-01 Thread Radu Preotiuc-Pietro
[mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 5:34 PM To: user@xmlbeans.apache.org Subject: RE: Name/Value Pair Issue. Yes, you can send it to me in private and I will take a look at it. Radu On Mon, 2008-01-28 at 17:29 -0800, Muthu Ramaswamy wrote: Well, I used the same

RE: Name/Value Pair Issue.

2008-02-01 Thread Muthu Ramaswamy
Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 3:24 PM To: user@xmlbeans.apache.org Subject: RE: Name/Value Pair Issue. Well, the namespace URI is part of the name of the element, so really it is an error on the part of the sender to send a document

RE: Name/Value Pair Issue.

2008-01-31 Thread Muthu Ramaswamy
@xmlbeans.apache.org Subject: RE: Name/Value Pair Issue. Yes, you can send it to me in private and I will take a look at it. Radu On Mon, 2008-01-28 at 17:29 -0800, Muthu Ramaswamy wrote: Well, I used the same schema file to generate the java classes using scomp and the same schema to generate a sample

RE: Whitespace is not preserved

2008-01-28 Thread Wing Yew Poon
. So you haven't lost the original whitespace. -Original Message- From: ravikumar [mailto:[EMAIL PROTECTED] Sent: Sunday, January 27, 2008 10:35 AM To: user@xmlbeans.apache.org Subject: RE: Whitespace is not preserved Hi I am running into the same issue. setSavePrettyPrint() is trimming

Re: null on attribute setter

2008-01-28 Thread Radu Preotiuc-Pietro
Right now, the more verbose code that you posted is the only way to get what you want. Radu On Mon, 2008-01-28 at 21:06 +0100, Veit Guna wrote: Hi all. I'm encountering the same problem explained in here: http://www.mail-archive.com/user@xmlbeans.apache.org/msg00541.html As soon as I

Re: Name/Value Pair Issue.

2008-01-28 Thread Radu Preotiuc-Pietro
Most likely, this is because your Schema (that you generated the Java classes from) doesn't match your payload. Check that the namespace URIs match. Radu On Mon, 2008-01-28 at 17:19 -0800, Muthu Ramaswamy wrote: Hi All- I am new to XMlBeans. When I tried to use a sample XML file that

RE: Name/Value Pair Issue.

2008-01-28 Thread Muthu Ramaswamy
: Monday, January 28, 2008 5:22 PM To: user@xmlbeans.apache.org Subject: Re: Name/Value Pair Issue. Most likely, this is because your Schema (that you generated the Java classes from) doesn't match your payload. Check that the namespace URIs match. Radu On Mon, 2008-01-28 at 17:19 -0800, Muthu

Re: XMLBeans is removing my CDATA!

2008-01-28 Thread Radu Preotiuc-Pietro
XMLBeans doesn't preserve CDATA sections currently, it only preserves the XML Infoset. Radu On Mon, 2008-01-28 at 15:06 -0800, bob bob wrote: Here is the original data; CONFIG NAME=WORDISSUANCE LIBRARY=Word Issuance DYNAMICJAVASCRIPTALLCAPS/DYNAMICJAVASCRIPT

RE: Name/Value Pair Issue.

2008-01-28 Thread Radu Preotiuc-Pietro
you my xsd files for you to review? Thanks. -Muthu -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 5:22 PM To: user@xmlbeans.apache.org Subject: Re: Name/Value Pair Issue. Most likely, this is because your Schema (that you

RE: Name/Value Pair Issue.

2008-01-28 Thread Muthu Ramaswamy
-Pietro [mailto:[EMAIL PROTECTED] Sent: Monday, January 28, 2008 5:34 PM To: user@xmlbeans.apache.org Subject: RE: Name/Value Pair Issue. Yes, you can send it to me in private and I will take a look at it. Radu On Mon, 2008-01-28 at 17:29 -0800, Muthu Ramaswamy wrote: Well, I used the same schema

RE: Whitespace is not preserved

2008-01-27 Thread ravikumar
the sender and delete all copies. We may monitor email to and from our network. *** -- View this message in context: http://www.nabble.com/RE%3A-Whitespace-is-not-preserved-tp383871p15122329.html Sent

Re: user@xmlbeans.apache.org and complex schema

2008-01-18 Thread Jacob Danner
:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* 17 January 2008 18:24 *To:* user@xmlbeans.apache.org *Subject:* Re: user@xmlbeans.apache.org and complex schema Hi Pierre, How are you creating your schema jar. It appears as though you might have a jar that only contains the java src

RE: {Disarmed} Re: user@xmlbeans.apache.org and complex schema

2008-01-18 Thread Pierre De Leusse
: 18 January 2008 17:06 To: user@xmlbeans.apache.org Subject: {Disarmed} Re: user@xmlbeans.apache.org and complex schema Hi Pierre, I'm not sure why the pathing to the type system holder class is different. Were there modifications to the jar after

Re: user@xmlbeans.apache.org and complex schema

2008-01-17 Thread Jacob Danner
Hi Pierre, How are you creating your schema jar. It appears as though you might have a jar that only contains the java src and not the .xsb (xml schema binary files), etc. Can you crack your jar and verify the xsbs and the file mentioned in the stacktrace exist? Can you also let us know how you

Re: XSDL 1.1 support in XmlBeans..

2008-01-16 Thread dave
So, what is the best available option outside XMLBeans in this situation? --- Jacob Danner [EMAIL PROTECTED] wrote: Thats correct, Schematron, RelaxNg, etc. are not supported. Only XML Schema 1.0 is supported. -jacobd On Jan 14, 2008 9:48 PM, dave [EMAIL PROTECTED] wrote: just to

Re: XSDL 1.1 support in XmlBeans..

2008-01-16 Thread Jacob Danner
I'm not sure about those other technologies. I've had some luck in the past searching sourceforge/freshmeat or just looking on Google for technology programming language. Best of luck, -jacobd On Jan 16, 2008 10:51 PM, dave [EMAIL PROTECTED] wrote: So, what is the best available option outside

Re: Tracking the source of beans, to make writing out easier?

2008-01-15 Thread Nick Burch
On Thu, 10 Jan 2008, Jacob Danner wrote: I'm not sure I completely understand the issue, are you trying to write out many standalone xml instances that all comprise a larger xml instance? Sort of. You basically have a zip file which contains a dozen or so inter-related xml files, and some

Re: XSDL 1.1 support in XmlBeans..

2008-01-14 Thread Radu Preotiuc-Pietro
Only W3C XMLSchema 1.0 is supported. Radu On Sat, 2008-01-12 at 22:31 -0800, dave wrote: Does XmlBeans 2.3.0 support validation of XSDL 1.1 based XML? Also, does XmlBeans Support a schema written using multiple langauges- W3C XSDL 1.x, Schematron, RelaxNg? By Support, I mean the support

Re: XSDL 1.1 support in XmlBeans..

2008-01-14 Thread Jacob Danner
Thats correct, Schematron, RelaxNg, etc. are not supported. Only XML Schema 1.0 is supported. -jacobd On Jan 14, 2008 9:48 PM, dave [EMAIL PROTECTED] wrote: just to double confirm- XMLBeans doesn't support other schema languages like Schematron,etc? -D --- Radu Preotiuc-Pietro [EMAIL

RE: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-12 Thread Paul French
To: user@xmlbeans.apache.org Subject: Re: [newbie] difference between addNew and (Factory.newInstance + set) Hi Paul, This is actually working as expected :) I just spaced and missed it the first time around. try something like: BusinessDescription.Contact contact

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-12 Thread Srinath C
:[EMAIL PROTECTED] *Sent:* 12 January 2008 02:19 *To:* user@xmlbeans.apache.org *Subject:* Re: [newbie] difference between addNew and (Factory.newInstance+ set) Hi Paul, This is actually working as expected :) I just spaced and missed it the first time around. try something like

RE: is XSD text file stored at all in XMLBeans output?

2008-01-11 Thread Cezar Andrei
10, 2008 4:17 AM To: user@xmlbeans.apache.org Subject: Re: is XSD text file stored at all in XMLBeans output? Hi Dave, In most cases, running scomp will create a jar that includes the schemas in at schemaorg_apache_xmlbeans\src in the java archive. If you need direct access to it, you can

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
Hi Paul, Can you do a System.out.println(contact.xmlText()); in each of the scenarios below? How is Address defined in the schema? Thanks, -jacobd On Jan 11, 2008 9:29 AM, Paul French [EMAIL PROTECTED] wrote: Hello, I have created a library using scomp from an xml schema. I am building a

RE: is XSD text file stored at all in XMLBeans output?

2008-01-11 Thread dave
. Cezar From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 4:17 AM To: user@xmlbeans.apache.org Subject: Re: is XSD text file stored at all in XMLBeans output? Hi Dave, In most cases, running scomp will create a jar

RE: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Paul French
this must be due to XMLBeans passing back a copy of the Calendar object when calling contact.getDateTime() _ From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 11 January 2008 17:52 To: user@xmlbeans.apache.org Subject: Re: [newbie] difference between addNew

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
be due to XMLBeans passing back a copy of the Calendar object when calling contact.getDateTime() -- *From:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* 11 January 2008 17:52 *To:* user@xmlbeans.apache.org *Subject:* Re: [newbie] difference between addNew

Re: [newbie] difference between addNew and (Factory.newInstance + set)

2008-01-11 Thread Jacob Danner
snippet but couldn't see how Have a good weekend!! -- *From:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* 11 January 2008 18:56 *To:* user@xmlbeans.apache.org *Subject:* Re: [newbie] difference between addNew and (Factory.newInstance+ set) Thought I

Re: is XSD text file stored at all in XMLBeans output?

2008-01-10 Thread Jacob Danner
Hi Dave, In most cases, running scomp will create a jar that includes the schemas in at schemaorg_apache_xmlbeans\src in the java archive. If you need direct access to it, you can always try accessing it via resources and/or classloaders. AFAIK, xmlbeans does not provide any methods for direct

Re: Tracking the source of beans, to make writing out easier?

2008-01-10 Thread Jacob Danner
Hi Nick, I'm not sure I completely understand the issue, are you trying to write out many standalone xml instances that all comprise a larger xml instance? Wouldn't this be made simpler by keeping a reference to the 'parent' instance around? -jacobd On Jan 4, 2008 7:44 AM, Nick Burch [EMAIL

<    3   4   5   6   7   8   9   10   11   12   >