RE: good way of writing xs:any

2005-05-23 Thread Cezar Andrei
XmlCursor's copy and move methods can be used for this. -Original Message- From: Ali, Haneef [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 5:38 PM To: user@xmlbeans.apache.org Subject: RE: good way of writing xs:any Hi Steven, This is one area where the functionality of

XMLBeans Survey

2005-07-02 Thread Cezar Andrei
We are surveying XMLBeans users to help us decide what to focus on for v3. Here's a chance to tell us whats important to you. Please help us improve XMLBeans by answer the following questions: 1) How did you hear about XMLBeans? [ ] conference [ ] internet articles or web logs [ ]

RE: Creating complexType objects...

2005-07-27 Thread Cezar Andrei
Kent, The XmlObject interface always represents the content, it does not represent the node itself as in DOM. There are three different types of XmlObject: 1) content of an element: i.e. attributes, inner elements and inner text, without the element name. 2) simple type content: i.e. text, can

RE: Creating complexType objects...

2005-07-27 Thread Cezar Andrei
to insert and where to read these 'extrinsically' typed elements. One could imagine an extension to support this idiom - sort of like JAXB's support. Thanks for listening, and helping, --Kent Cezar Andrei wrote: Kent, The XmlObject interface always represents the content, it does

RE: Jar file internals?

2005-08-02 Thread Cezar Andrei
The directory schema/src is not needed for validation or parsing, but the .xsb files are needed. The src is included because there are applications that need the source file of a given schema type. If you don't use SchemaComponent.getSourceName() you probably don't use the files in schema\src.

RE: XmlBeans V2 and Piccolo

2005-08-19 Thread Cezar Andrei
Title: Message By default, XMLBeans synchronizes all required entrances per store, unless you use XmlOptions.setUnsynchronized() when creating a new store with Factory.parse() or Factory.newIstance(). Cezar From: Radu Preotiuc-Pietro Sent: Friday, August 19, 2005 3:15 PM

RE: pretty print and ampersands

2005-09-02 Thread Cezar Andrei
This sure seems like a bug, would you open up a bug in JIRA so we can track it. Also if you have a patch for it, it would be very much appreciated. Cezar -Original Message- From: Christopher Lamey [mailto:[EMAIL PROTECTED] Sent: Friday, September 02, 2005 2:19 PM To:

RE: Re-Generating schema from the generated code

2005-10-21 Thread Cezar Andrei
Actually there is a nicer way to get to the schema source: SchemaType type = GeneratedXMLBean.type; InputStream is = type.getTypeSystem(). getSourceAsStream(type.getSourceName()); Cezar -Original Message- From: Cezar Andrei Sent: Tuesday, October 04

FW: Legal issue: jsr173 API jar licensing

2005-10-25 Thread Cezar Andrei
Since revision 312915, XMLBeans uses a new jsr173 bundle containing only the jsr173 API, this bundle is licensed under an Apache ASF license. In order to pick up and build with the new bundle, please execute: ant clean.jars clean deploy Many thanks to Lawrence Jones and Cliff Schmidt,

RE: nilable and validate()

2005-10-25 Thread Cezar Andrei
There is an earlier discussion on this topic, please see: http://www.mail-archive.com/user@xmlbeans.apache.org/msg00512.html Cezar From: Samuel B. Quiring [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 25, 2005 3:10 PM To: user@xmlbeans.apache.org Subject: nilable and

RE: enumeration values that begin with X

2005-11-07 Thread Cezar Andrei
Looks like a bug, will you file a JIRA bug? Please attach a small example if you have one. Cezar -Original Message- From: Cory Bestgen [mailto:[EMAIL PROTECTED] Sent: Monday, November 07, 2005 9:33 AM To: user@xmlbeans.apache.org Subject: enumeration values that begin with X

RE: Jar Naming

2005-12-05 Thread Cezar Andrei
You're right, we should move to xmlbeans-xxx.jar naming in the next release. Also the xbean_xpath.jar should be renamed to xmlbeans_xpath.jar. It would avoid any naming confusion. Cezar -Original Message- From: Dan Diephouse [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005

RE: XmlCursor - equivalent setObject() method?

2005-12-05 Thread Cezar Andrei
Title: XmlCursor - equivalent setObject() method? The equivalent of XmlObject setXXX method in the XmlCursor world is copy/moveXmlContents(). From: Jones, Damon [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 1:27 PM To: user@xmlbeans.apache.org Subject: XmlCursor

RE: Saxon 8.1.1 dependency saxon namespaces

2006-01-05 Thread Cezar Andrei
Marius, See a previous answer on this topic: http://www.mail-archive.com/user@xmlbeans.apache.org/msg00836.html We're still committed to have XMLBeans working with a 1.4 JDK, so we cannot apply your patch right now. But starting with v3 we'll most probably drop this requirement and your patch

RE: Change generated XSB files with xsdconfig

2006-01-16 Thread Cezar Andrei
Use the xsdconfig file to change package names. See the following: http://wiki.apache.org/xmlbeans/XmlBeansFaq#configPackageName . But keep in mind that XmlBeans doesnt support using two or more sets of java classes (in different packages) mapped to schema type/elements that have the same

RE: Extending generated XMLBeans classes without 'Extensions'

2006-01-20 Thread Cezar Andrei
You should be using the Interface Extension Feature: http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature This way the custom code lives in a separate file that will not be lost when you regenerate the sources when you change the schema. Cezar -Original Message- From: Edward

RE: Help in Converting JAXB schema to XMLBeans schema

2006-02-01 Thread Cezar Andrei
Im not an expert in JAXB but here it is my take on it: 1) When compiling with XMLBeans the schema files, one can customize the package names and the class names through .xsdconfig file, but it doesnt allow changing the property name. If you really care about the property name you can use

RE: off-topic: substitutiongroups and inheritance

2006-03-10 Thread Cezar Andrei
No problem, I'm sure it will be quite useful for other readers. Will you post the working schema? Thanks, Cezar -Original Message- From: Erik van Zijst [mailto:[EMAIL PROTECTED] Sent: Friday, March 10, 2006 11:06 AM To: user@xmlbeans.apache.org Subject: Re: off-topic:

RE: QName to package

2006-03-22 Thread Cezar Andrei
Pat, I'm assuming you want to find out the java name for a corresponding to the top level element name of a document, if that is the case first you have to find the SchemaType describing that document type XMLBeans.findDocumentType(QName topLevelElementName) (or XMLBeans.findType(QName) if you

RE: alternate representations of collections in XMLBeans??

2006-03-28 Thread Cezar Andrei
Tim, I would recommend using the extensions, otherwise modifying the generated code is definitely possible but missing even a small thing would break the code. Back to using extensions, if one wants to store a state he can do it by using XmlBookmark which stays with the xml entity

RE: alternate representations of collections in XMLBeans??

2006-03-28 Thread Cezar Andrei
- is this the latest-and-greatest, or is there a better and/or more current reference available? Tim From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 2:29 PM To: user@xmlbeans.apache.org Subject: RE: alternate representations of collections in XMLBeans?? Tim, I would

RE: XMLBookmark question...

2006-03-29 Thread Cezar Andrei
a newCursor() every time? Or is it OK to run newCursor() dozens or hundreds of times without risk of performance or memory problems? Am I missing something? Tim From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 4:33 PM To: user@xmlbeans.apache.org Subject: RE

RE: selectPath with FilterExpression using $this

2006-03-29 Thread Cezar Andrei
Hi Siegfried, I'm not an expert in xpath/xquery but I'm pretty sure that $this doesn't represent the internal current node that is processed by the engine. So you'll probably want to rewrite the expression to something like this: xo.selectPath(.//[EMAIL PROTECTED]//@id]); As for $this, it's

RE: inheritance: I m I allowed to subClass an XmlMyGeneratedObjectImpl

2006-04-28 Thread Cezar Andrei
Ben, Take a look at extensions, it's probably what you're looking for: http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature Cezar -Original Message- From: Ben Jelloul Marouane [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 7:32 AM To: xmlbeans user mailing list

RE: SV: xml-fragment containing well formed XML Documents

2006-04-28 Thread Cezar Andrei
This is a case where you have to use the XmlCursor API to copy/move the two documents into the right place. Cezar -Original Message- From: jadiyo [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 3:34 AM To: user@xmlbeans.apache.org Subject: Re: SV: xml-fragment containing well

RE: Replacement for QNameHelper.updateWellKnownPrefixes?

2006-04-28 Thread Cezar Andrei
Did you try XmlOptions setSaveSuggestedPrefixes() ? From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] Sent: Friday, April 28, 2006 1:30 PM To: user@xmlbeans.apache.org Subject: Replacement for QNameHelper.updateWellKnownPrefixes? I have some old code that uses 1.0.2

RE: inheritance: I m I allowed to subClass anXmlMyGeneratedObjectImpl

2006-05-01 Thread Cezar Andrei
be possible. If some of the developer of xmlBeans see this can you tell me if there is a chance to do that (or not at all). Thanks, Marouane On Fri, 2006-04-28 at 18:51, Cezar Andrei wrote: Ben, Take a look at extensions, it's probably what you're looking for: http://wiki.apache.org

RE: inheritance: I m I allowed to subClassanXmlMyGeneratedObjectImpl

2006-05-02 Thread Cezar Andrei
to inherit at all. Thanks for the answers. Marouane On Mon, 2006-05-01 at 21:03, Cezar Andrei wrote: In the early days of XMLBeans we implemented something very similar to what you describe, but it was failing to work when schema types where using inheritance. The solution implemented

RE: SV: xml-fragment containing well formed XML Documents

2006-05-06 Thread Cezar Andrei
In my example the namespaces seem to work: XmlObject xo = XmlObject.Factory.parse(r:a xmlns:r='a_uri'r:bsome text/r:b/r:a); XmlCursor xc = xo.newCursor(); xc.toFirstChild(); XmlObject aContent = xc.getObject(); System.out.println(aContent: +

RE: Question concerning advanced XPath support

2006-05-06 Thread Cezar Andrei
There isn't a way currently to bind other variables except for the current node, but this is something that we'll be looking into. As for the XPath extension functions, I'm not familiar how they work. Do you have a use case? Do you know if and how Saxon is supporting them? Cezar -Original

SVN service

2006-05-11 Thread Cezar Andrei
In case youre using the SVN service and you didnt know already the service is down at the moment. The guys from infrastructure are working on it, rebuilding the server. The status can be found here: http://monitoring.apache.org/status/ . Cezar

RE: SOAP encoding question

2006-06-08 Thread Cezar Andrei
I believe you need to include the SOAP schema file when compiling it, or at least have a previously compiled jar on the classpath. The xsd should be found at the following location: http://schemas.xmlsoap.org/soap/encoding/ . Cezar From: Maya Dahan [mailto:[EMAIL

RE: xmlbeans 2.1.0 NOT WORKING!!! on windows ?

2006-06-12 Thread Cezar Andrei
Make sure you have javac on the path and JAVA_HOME is pointing to its jdk install dir. Cezar From: Ziv Zeira [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 1:59 PM To: user@xmlbeans.apache.org Subject: xmlbeans 2.1.0 NOT WORKING!!! on windows ? Hi everybody,

RE: New release: v2.2

2006-06-12 Thread Cezar Andrei
From: Cezar Andrei Sent: Wednesday, June 07, 2006 5:11 PM To: dev@xmlbeans.apache.org Subject: New release: v2.2 Hi all, Its been a while since last release, there have been quite a few bug fixes and some new features in the meantime. If there are no objections in the next few days Ill make

RE: New release: v2.2

2006-06-12 Thread Cezar Andrei
If you find issues with the release candidate bits please send them to the dev@xmlbeans.apache.org list. For other kind of bugs, please file them under JIRA. (I just added version 2.2). Cezar -Original Message- From: cbryant [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 5:47

RE: Can I stream XMLBeans to disk in a way that saves memory?

2006-06-16 Thread Cezar Andrei
Hi Brian, We've been thinking of adding something on these lines to XMLBeans but I couldn't find the time for it. We've been thinking to use the pull parser model of Stax and to be able to filter (custom or XPath) small pieces in and out of an XmlObject. This should be working for both reading

RE: Feature request: Array Reordering

2006-06-19 Thread Cezar Andrei
This is already possible using the XmlCursor API. Check out XmlCursor's moveXml() and moveXmlContents() methods. Cezar -Original Message- From: Ole Matzura [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 5:53 PM To: user@xmlbeans.apache.org Subject: Feature request: Array

[VOTE] Release of XMLBeans 2.2.0

2006-06-19 Thread Cezar Andrei
Please send your vote for the release of XMLBeans version 2.2.0, as it currently exists on http://xmlbeans.apache.org/dist/ (xmlbeans-2.2.0-RC1*). The files have been available for the last few days, they have been checked and tried out on different environments. If the vote closes positive the

RE: Base64 Decoding

2006-07-06 Thread Cezar Andrei
Did you try using XmlCursor? Cezar -Original Message- From: Satish Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 06, 2006 12:42 AM To: user@xmlbeans.apache.org Subject: Base64 Decoding Hi, Need some clarifactions ! XSD contains an element whcih is of type base64Binary.

RE: schema jars

2006-07-20 Thread Cezar Andrei
You have to compile base.xsd alone first, than compile schema1.xsd having the first generated jar on classpath. scomp out base.jar base.xsd scomp cp base.jar out schema1.jar schema1.xsd scomp cp base.jar;schema1.jar out schema2.jar schema2.xsd Cezar From: sri

RE: Parsing problem

2006-07-28 Thread Cezar Andrei
If your message is indeed the one expected, this seems to be a bug in AXIS2. The error is quite clear, in order for XMLBeans to instantiate an object of this type com.example.transfer_xsd.AnyXmlTypeInputParamDocument it has to have an xml that has a top level element called [EMAIL

RE: Fatal errors with the Piccolo parser and invalid xml header

2006-08-03 Thread Cezar Andrei
Ken, There isn't a public API to reset the context piccolo instance. Please do file a bug with a repro in the JIRA so we can take a look at it. In the meantime, you can use XmlOptions setLoadUseXMLReader (XMLReader xmlReader) to use your own instance of Piccolo or any other SAX parser. Cezar

RE: Parsing large file

2006-08-09 Thread Cezar Andrei
There isnt a chunking mechanism in XMLBeans, but I pretty sure you can write a Stax or SAX wrapper (Stax should be easier) to split the big stream into smaller ones, and you can load a small subtree into an XMLBean, one at a time. Would this work for you? What kind of operations do you

RE: JDK 1.5 Generics rsp. Enumerations in generated java-code?

2006-10-10 Thread Cezar Andrei
Did you try using scomp script directly; it might be a bug in the ant task implementation. Cezar From: Siegfried Baiz [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 10:54 AM To: user@xmlbeans.apache.org Subject: Re: JDK 1.5 Generics rsp. Enumerations in

RE: Updating source doc after XPath search

2006-10-10 Thread Cezar Andrei
Robert, .selectPath returns live objects from the original tree which was executed on. .execPath will always return new documents, sometimes copies of the original. In order to avoid loosing the results once you modify the document you should: 1. run select path with a cursor:

RE:

2006-11-16 Thread Cezar Andrei
Anshul, The latest release compatible with JDK1.3.1 is xmlbeans-1.0.4-jdk1.3. You can find it in the download section of the project: http://xmlbeans.apache.org/sourceAndBinaries/index.html#Current+Release Since v2, XMLBeans is only compatible with jdk1.4 or higher. Cezar

RE: how to define an interface extension for all created java-Types rsp. all schema-elements

2006-12-08 Thread Cezar Andrei
Have you tried using: xb:extension for=* ? Cezar -Original Message- From: Siegfried Baiz [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 4:07 PM To: user@xmlbeans.apache.org Subject: how to define an interface extension for all created java-Types rsp. all schema-elements

RE: Error Duplicate attribute group

2006-12-14 Thread Cezar Andrei
There is a -cp switch for this. If a schema is split in two: s1 and s2, where s1 is stand alone (i.e. doesn't have references to items in s2) and s2 uses item from s1 by reference so that there will not be multiple definitions of the same name in the s1 + s2 union, they can be compiled separately

RE: Missing the XML header

2006-12-14 Thread Cezar Andrei
The xml declaration is not used when saving to a text or Writer, but it will be used when saving into an OutputStream. Cezar -Original Message- From: kris16 [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 7:07 AM To: user@xmlbeans.apache.org Subject: Missing the XML

RE: namespace problem

2007-01-24 Thread Cezar Andrei
Assuming that all your schema that you used to generate these Xbeans from is in urn:xsd:$pacs.002.002.02 namespace, it is strange that this happens. But there is MsgIdDoc:MsgId/MsgId in both messages, which looks like a QName. Maybe the schema you're using isn't free of namespace

RE: Howto get name of tag in XMLError

2007-02-05 Thread Cezar Andrei
Use boolean validate(XmlOptions options); method and check out it's javadoc on how to get details about errors. Cezar From: Fredrik Petersson (Kentor) [mailto:[EMAIL PROTECTED] Sent: Monday, February 05, 2007 7:57 AM To: user@xmlbeans.apache.org

RE: xmlbeans-2.2.0 and error running XQueryXPath sample

2007-03-02 Thread Cezar Andrei
) [java] Exception in thread main [java] Java Result: 1 But the saxon8.jar (taken from http://easynews.dl.sourceforge.net/sourceforge/saxon/saxonb8-8j.zip) contains this class, maybe it is not compatible with xmlbeans-2.2.0. Regards Patrizio -Original Message- From: Cezar

RE: Set() of a nil element leaves element in invalid state

2007-03-02 Thread Cezar Andrei
Joseph, Do I understand correctly that when running with asserts disabled it works fine? Please file a bug in JIRA to track of it, and if you can include a small repro would be even better. Cezar From: Joseph Campolongo [mailto:[EMAIL PROTECTED]

RE: XMLBeans and XmlCursor

2007-04-06 Thread Cezar Andrei
Hi Patrizio, execQuery() methods return new documents (there are queries that construct new documents), so the modifications on results will not affect the original. In your case, you should be better off using XMLCursor.selectPath(). This method will set a selection on the original document,

RE: XMLBeans and XmlCursor

2007-04-10 Thread Cezar Andrei
Hi Patrizio, Depending on how complex you xpath will be executed by an internal XMLBeans engine or Saxon engine. The XMLBeans xpath engine is usually much faster but supports a very limited subset of xpath. Saxon on the other hand is more complete but since it uses XMLBeans store as a DOM it

RE: Next stable release?

2007-05-01 Thread Cezar Andrei
Hi Linton, We're very close to cut a release candidate. Wing Yew found a bug for dates with year zero or less and we think we have a fix for it. This is the latest planned fix before the release candidate. Other than this, we think the current SVN trunk is stable and ready for production. If no

RE: Validating an atomic type

2007-05-02 Thread Cezar Andrei
I don't know of any public way to do exactly what you want, but you can quickly put something together by looking at the implementation of: Src/typeimpl/org/apache/xmlbeans/impl/validator/Validator.java:74 validateAtomicType(ScemaType, String, Event) I hope this helps, Cezar -Original

RE: [VOTE] XmlBeans 2.3.0 Release

2007-05-18 Thread Cezar Andrei
[X] +1 - I am in favor of this release, and can help Cezar -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Thursday, May 17, 2007 3:26 PM To: [EMAIL PROTECTED]; user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: [VOTE] XmlBeans 2.3.0 Release Please

RE: [VOTE] XmlBeans 2.3.0 Release

2007-05-23 Thread Cezar Andrei
[X] +1 - I am in favor of this release, and can help Cezar -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 22, 2007 7:29 PM To: [EMAIL PROTECTED]; user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: [VOTE] XmlBeans 2.3.0 Release

RE: [RESULTS] [VOTE] XmlBeans 2.3.0 Release

2007-06-04 Thread Cezar Andrei
I updated the maven repository http://people.apache.org/repo/m1-ibiblio-rsync-repository/xmlbeans/ with the latest 2.3.0 binaries and poms for 2.2.0 and 2.3.0 as per JIRA-227. If somebody would try it out and let us know if it works or not would be great. Cezar -Original Message- From:

RE: Forcing namespace prefixes

2007-06-13 Thread Cezar Andrei
XmlBeans has to store and preserve the prefixes wherever possible, because this is the only way to preserve the qname values inside a document that has an unknown schema. Don't forget that uris and prefixes have meanings outside of element and attribute names, but also inside attribute values and

RE: object oriented persistence layer?

2007-07-31 Thread Cezar Andrei
Gustavo, Can you tell us a little more about your solution, maybe show us a little bit of the interceptor? Thanks, Cezar From: Gustavo Aquino [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 31, 2007 11:29 AM To: user@xmlbeans.apache.org Subject: Re:

RE: Problem with output through a weblogic webservice.

2007-08-13 Thread Cezar Andrei
Hi Knut-Erik, The best way to solve this is to open a customer request through BEA support on WLS. Cezar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 3:28 PM To: user@xmlbeans.apache.org Subject: Problem with output

RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread Cezar Andrei
Bob, The wipkeys array returned from selectPath() method is just a copy, it's not a live object in XMLBeans structures, so modifying it will not change the original document. You should call wipkeys[0].set(keys.getWIPKEYS()); or locate it's parent and call

RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread Cezar Andrei
Message From: Cezar Andrei [EMAIL PROTECTED] To: user@xmlbeans.apache.org Sent: Wednesday, August 15, 2007 3:40:33 PM Subject: RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject Bob, The wipkeys array returned from selectPath() method is just

RE: xsdconfig

2007-08-22 Thread Cezar Andrei
Does the file have the xsdconfig extension? I.e. is called somename.xsdconfig? Also make sure it's in the list of files to be compiled. Cezar From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 8:49 AM To:

RE: xsdconfig revisited

2007-08-27 Thread Cezar Andrei
Check out the wiki page http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature and the tests http://svn.apache.org/viewvc/xmlbeans/trunk/test/cases/xbean/extensions/ interfaceFeature/ As it's described in the wiki page: The for attribute can accept a list of xbean java interfaces

RE: How to select the root element

2007-10-05 Thread Cezar Andrei
Patrizio, There are a number of ways to find out the name of the document root or return the object that represents its content, but the first that comes to mind is using the cursor: XmlCursor xc = document.newCursor(); xc.toFirstChild(); QName nameOfTopLevelElement = xc.getName(); XmlObject

RE: Réf. : RE: Problem with boolean type

2007-10-10 Thread Cezar Andrei
It is not a bug, as Dennis said in a previous email, XMLBeans and binding tools in general, try to do the right thing in many cases, but this is not one of them. Even if this Boolean restriction seems simple enough, to support all restrictions is impossible. Check out the following example

RE: xmlbeans beginner - help

2007-11-06 Thread Cezar Andrei
It is possible, but a little less forward that using schema. Just use XmlObject, it handles all un-typed XML in XMLBeans. Use XmlObject xo = XmlObject.Factory.parse(xmlText) to load the xml into XmlObject. And String xmlText = xo.xmlText() to get back to xml. To navigate/read/modify the

RE: Import schema for schema aware XQuery

2007-11-14 Thread Cezar Andrei
What query engine are you using? From what I know, Saxon's free implementation doesn't support schema aware XQuery. On the other hand, BEA's products do support schema aware XQuery based on XMLBeans schema type systems. Cezar From: Paul Hepworth

RE: Which ORM and XML binding

2007-11-14 Thread Cezar Andrei
I haven't play with Hibernate and XMLBeans myself, but earlier this year a few people reported success using XMLBeans at the XML level and Hibernate for saving the state into DB. From what I remember, they had to use Hibernate interceptors to make things work. There are advantages of using

RE: How to generate XPath for XMLObject/XMLCursor?

2007-11-21 Thread Cezar Andrei
Unfortunately, from what I know, there isn't an API to get an XPath. It shouldn't be very hard to implement using a cursor. Cezar -Original Message- From: Willis Morse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 2:14 PM To: user@xmlbeans.apache.org Subject: How to

RE: Upgrading XMLBeans questions

2007-11-21 Thread Cezar Andrei
to the documentation on how I can specify which xml parser to use? Thanks, Monica --- Cezar Andrei [EMAIL PROTECTED] wrote: There is also a very slight change on how Cursors work when copying/moving a sub-tree from a document to another. Most likely you don't use this feature. You

RE: type and Java Class

2007-11-30 Thread Cezar Andrei
It seems that you have 2 sets of the same classes in different jars. Make sure that when you compile the extension xsd you use the base.jar on the classpath so that you have only one set of compiled schema types on the classpath. See archives at

RE: Large xmldocuments and namespace declarations

2007-12-12 Thread Cezar Andrei
at createInstance time, so that i don't need to run this method to change them afterwards. mvh Knut-Erik Johnsen Cezar Andrei [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 12.12.2007 21:07 Please respond to user@xmlbeans.apache.org To user@xmlbeans.apache.org cc Subject RE: Large

RE: Using cursor to ierate and adding to map

2007-12-12 Thread Cezar Andrei
Zapo, cursor.getName() returns the name of the current token. You need to make sure you move the cursor on the right element to get the text and move back to the parent Testcase and call toNextSibling(). -Original Message- From: Zapo [mailto:[EMAIL PROTECTED] Sent: Tuesday, December

RE: Large xmldocuments and namespace declarations

2007-12-12 Thread Cezar Andrei
Knut, did you try using the following save option? /** * Causes the saver to reduce the number of namespace prefix declarations. * The saver will do this by passing over the document twice, first to * collect the set of needed namespace declarations, and then second

RE: newbie--override schemaorg_apache_xmlbeans prefix

2007-12-12 Thread Cezar Andrei
Richard, It isn't supposed to work like this. The XMLSchema spec assumes that everybody is using namespaces and that the QNames for different types and elements do not collide. This is the model that XMLBeans uses, which is the same as java packages and classes work. In the rare cases when

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

2008-01-11 Thread Cezar Andrei
Running scomp will include schema sources in the output jar. You can get to the name of the resource by calling getSourceName() on a SchemaType for example or any SchemaComponent. Cezar From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, January

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: 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 Cezar Andrei
Beans 2.2 ? 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

RE: ClassCastException when migrating to xmlbeans 2.2.9

2008-06-04 Thread Cezar Andrei
When old xmlbeans jars were compiled, the user may have been used an .xsdconfig file that modified the generated package of the xbean classes and interfaces. You should use the same .xsdconfig file, or modify the code that references those intf/classes to match the ones in the new xbean jars.

RE: NoClassDefFoundError in Eclipse Plugin IDE

2008-06-19 Thread Cezar Andrei
There were a couple of emails from people having problems with classloaders in Eclipse. This seems to be in the same class. Check the archives. Cezar -Original Message- From: Ronald Becher [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 5:28 AM To: user@xmlbeans.apache.org

RE: [VOTE RESULT] XMLBeans 2.4.0 Release

2008-07-17 Thread Cezar Andrei
Distribution files and website is updated. Please let me know if I missed anything. Cezar From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 10:51 AM To: user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: [VOTE RESULT] XMLBeans

RE: question on security..

2008-09-24 Thread Cezar Andrei
From what I remember, you're the first to bring this up. I guess this is a good sign. If I understand correctly this question applies more to the applications that use XMLBeans. For XML, XMLBeans uses a standard compliant XML parser, which can be replaced using options with any other SAX

RE: get_store() throws NullPointerException.

2008-09-24 Thread Cezar Andrei
Srijith, from your info, it seems that you should address this question to Axis project. If you can get an XMLBeans stand alone repro, will look at it. Cezar From: Srijith Kochunni [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 8:03 AM

RE: XMLStreamReader namespace handling

2008-09-24 Thread Cezar Andrei
Gordon, The two methods are not designed to return exactly the same info. While xmlText() has to always return a valid XML document with more flexible options, the newXMLStreamReader() is designed for speed to transfer the contents of the XML store. Cezar -Original Message- From:

FW: Travel Assistance to ApacheCon US 2008 - 3 days to apply!

2008-09-29 Thread Cezar Andrei
-Original Message- From: Gav... [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2008 5:10 AM To: [EMAIL PROTECTED] Subject: Travel Assistance to ApacheCon US 2008 - 3 days to apply! *- Apologies to those PMCs that already got this email. The first attempt I made was rejected by

RE: Substitution Groups and Abstract Types

2008-10-03 Thread Cezar Andrei
Jamie, Indeed there is a problem in your scenario. The problem is because of the substitution group uses and not because of type derivation. You can have base types and in your first schema and derived types in the second one, and you can compile them separately. Everything should work

RE: Multiple output files with inst2xsd?

2008-10-24 Thread Cezar Andrei
You can run inst2xsd on multiple xml files. See inst2xsd -h for usage. int2xsd file1.xml file2.xml Cezar -Original Message- From: Ferry, Jeremy [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 10:26 AM To: user@xmlbeans.apache.org Subject: Multiple output files with

RE: Huge .java get from huge xsd, compilation time 10min

2008-10-24 Thread Cezar Andrei
Bartolomeo, Did you try using XMLBeans's scomp tool outside of Eclipse, from the command line? Eclipse might detect all the generated java files and it would spend CPU cycles indexing them. Cezar -Original Message- From: Bartolomeo Nicolotti [mailto:[EMAIL PROTECTED] Sent:

RE: XmlBeans and Synchronization

2008-10-24 Thread Cezar Andrei
Hi Paul, When doing local updates a simple synchronization is done on the synchronization domain of that XMLObject, we call it Locale. By default, each new document XMLObject is created with a new Locale. But when there is an update operation involving XMLObjects from two Locale-s,

RE: Xml Element Insertion - Updating Dom Tree

2008-11-03 Thread Cezar Andrei
Tim, A good start would be the following documentation page: http://xmlbeans.apache.org/docs/2.0.0/guide/conIntroToTheSchemaTypeSystem.html You should check the SchemaType interface and using getContentModel() method to check for the required particles. Cezar

FW: [Urgent] Please help promote ApacheCon video streaming!

2008-11-04 Thread Cezar Andrei
FYI -Original Message- From: Lars Eilebrecht [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 10:27 AM To: [EMAIL PROTECTED] Subject: [Urgent] Please help promote ApacheCon video streaming! Importance: High Hi, please help promote the ApacheCon live video streaming by

RE: OutOfMemoryError receiving Soap Responses using Axis2 and XMLBeans

2009-02-26 Thread Cezar Andrei
Hi, I don't think the change is related to the problem you're describing, this fix is related to the compiled xpath/xquery cache. Can you try using only XMLBeans to parse that document and compare the memory usage? All you need to do is: XmlObject xo = XmlObject.Factory.parse(new

RE: Navigating Untyped XmlObject with XmlCursor

2009-03-12 Thread Cezar Andrei
Kapil, You don't need to create a new cursor, if the item your cursor points to has a name (i.e. element/attribute/pi) just call getName() on it. Check out the javadoc of XmlCursor http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlCursor.html and XmlObject

[POOL] jdk 1.4 support in next of XMLBeans

2009-05-11 Thread Cezar Andrei
XMLBeans in a project running on: [ ] jdk 1.3 [ ] jdk 1.4 [ ] jdk 1.5 [ ] jdk 1.6 My project will update to jdk 1.5 or newer in: [ ] less than 6 month [ ] less than 1 year [ ] more than 1 year Any other suggestions or features are welcome. Thank you, Cezar

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

  1   2   >