Re: Wrong namespace prefix in generated documents?

2014-08-04 Thread Cezar Andrei
oming more than just an annoying problem. XPath statements are now broken since they employ the *xxx* prefix. I'm not sure where to start tracking down the issue. Both the guidance and the docs seem straightforward to me, yet I can't get it to work properly. Any guidance is appreciated

Re: Wrong namespace prefix in generated documents?

2014-08-01 Thread Cezar Andrei
If you don't provide a prefix, XmlBeans will automatically pick a prefix, and it tries to pick one that is part of the URI. Cezar On 07/28/2014 01:27 PM, Michael Bishop wrote: Hello all. I've recently changed the namespace of my schema. Now I'm getting the wrong prefix name and I'm not sure w

Re: XmlCursor tutorial

2014-07-11 Thread Cezar Andrei
This document is probably the closest you're looking for. http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html Cezar On 06/24/2014 03:00 PM, jgagnon wrote: Does anyone know of any tutorials about using the XMLBeans XmlCursor? I've looked at the little bit on the XMLBea

Re: Dynamic generation of XML object hierarchy using schema

2014-05-06 Thread Cezar Andrei
Joseph, Best way to learn for what you need to is to look at the implementation of xsd2inst tool: http://svn.apache.org/viewvc/xmlbeans/trunk/src/tools/org/apache/xmlbeans/impl/xsd2inst/SchemaInstanceGenerator.java?view=markup Cezar On May 6, 2014, at 11:19 AM, jgagnon wrote: > I am working

Re: Duplicate complex types with mixed elements

2014-03-17 Thread Cezar Andrei
Narayan, It's probably a bug that the node1Type is not removed but this doesn't affect the rest since it's not used elsewhere. As you can see in personType, node1 element is defined as mixed content. Cezar On 03/11/2014 12:20 AM, Parvatikar, Narayan wrote: Hi , I am trying to generate a x

Re: question about namespace

2014-02-18 Thread Cezar Andrei
m calling that already, but it doesn't seem to > work for my desired effect. > > Does the order of the options make any difference? > > Thanks, > > Ted Slusser > Java Developer > Vanderbilt Informatics > 615-420-7326 > > > On Feb 17, 2014, at 4:44 PM,

Re: question about namespace

2014-02-17 Thread Cezar Andrei
Ted, Give a try to XmlOptions.setSaveAggressiveNamespaces() it might get closer to the form you want. http://xmlbeans.apache.org/docs/2.6.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveAggressiveNamespaces%28%29 Cezar On Mon, 2014-02-17 at 13:36 -0800, Ted Slusser wrote: > Hello, > > I’

RE: Handling namespaces in xsd

2014-01-28 Thread Cezar Andrei
ion to generate like this ? > > I tried xmloptions. setLoadAdditionalNamespaces() but it dint help. > > Also, I noticed that there are no import statements added in schema you sent > , Is there a way to do that ? > > Thanks > Narayan > > -Original Message---

Re: Handling namespaces in xsd

2014-01-27 Thread Cezar Andrei
Narayan, It seems correct to me. Each namespace is defined by a separate schema file. And there is a definition in the last schema for abc element: Cezar Here are the generated schema files: http://www.w3schools.com/furniture"; xmlns="http://www.w3.org/2001/XMLSchema";> http://www.w3schools.

Re: Prevent Ampersand Escaping

2014-01-14 Thread Cezar Andrei
Michelle, You're right, XML content that contains & and < needs to be escaped and XmlBeans does that even if you try to escape it beforehand, which is not right. You're also right that using XmlOptionCharEscapeMap doesn't affect them, if you know what you're doing you can look at the code that doe

Re: Problem about generating Java Source Code with XMLBeans from xsd

2013-11-05 Thread Cezar Andrei
Federico, The schema looks fine, if you look closely at SubInfo type def:

Re: XMLBeans Project Reboot Proposal - Volunteers Needed

2013-10-25 Thread Cezar Andrei
It's great to see the interest in the project, I'll be on the list and help with answering questions. Cezar Andrei On Thu, 2013-10-24 at 05:16 -0700, Nick Burch wrote: > Hi All > > As many of you will know, the Apache XMLBeans project is currently > destined for the Apach

XmlBeans Wiki

2013-08-21 Thread Cezar Andrei
Several people tried to edit the XMLbeans wiki pages. Only the people in ContributorsGroup are allowed to edit because of spam reasons. Please respond to this thread if you want to be added to the this list. Cezar - To unsubscr

Re: Add to XmlBeans FAQ re orphaned objects and XmlValueDisconnectedException

2013-08-21 Thread Cezar Andrei
I added the new question and answer to the Faq page. XmlObject.copy() should be much more efficient than toString() and parse(). Cezar On Tue, 2013-08-20 at 07:10 -0700, Lott, Christopher M wrote: > I would like to suggest an addition to page > http://wiki.apache.org/xmlbeans/XmlBeansFaq but I

Re: MyDocument can't be cast to MyDocumentImpl?

2013-01-30 Thread Cezar Andrei
Hi Michael, To me it seems you might have 2 different jars around for the same schema or some classloader issue. I would just make sure first it does run correctly from command line. Cezar On Tue, 2012-12-11 at 13:39 -0800, Michael Bishop wrote: > Hello all, > > I'm experiencing a weird issue

Re: Converting from using scomp to SchemaTypeLoader.parse(...)

2013-01-30 Thread Cezar Andrei
Hi, This is supported, but it's on the advanced list of usages of XmlBeans. Your best option is to parse the schema files and corectly create the SchemaTypeSystem. See documentation http://xmlbeans.apache.org/docs/2.0.0/guide/conIntroToTheSchemaTypeSystem.html and previous discussions on this l

Re: XmlBeans dependency for XMLBeans-XPath

2012-10-31 Thread Cezar Andrei
Central Repository > - And another one where the latest release is the 2.5.0: > http://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans MVN > Repository > > Regards, > Cyrille Peninou > > > Cezar Andrei-3 wrote: > > > > Cyrille, > >

Re: XmlBeans dependency for XMLBeans-XPath

2012-10-29 Thread Cezar Andrei
Cyrille, You found a bug, the correct dependency is xmlbeans 2.6.0. I'll fix it. Cezar On Thu, 2012-10-25 at 06:47 -0700, Cyrille P. wrote: > Hi, > > Using XmlBeans on a Maven project, I would like to know if it's correct that > xmlbeans-xpath 2.6.0 , has xmlbeans 2.4.0 in dependency and not th

[VOTE RESULT] XMLBeans v2.6.0-RC3 to become official release

2012-08-14 Thread Cezar Andrei
With 8 positive votes: 3 binding and 5 non -binding, RC3 files will become XMLBeans 2.6.0 official release. Release files and website will become available in the next few of days. Thanks for the support and effort of everyone involved, Cezar

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-13 Thread Cezar Andrei
of > Saxon-HE (particularly now that the package is publicly available > through Maven)? > best > *P > > On 8/10/12 2:02 PM, Cezar Andrei wrote: > > Pascal, > > > > Thanks for the support, the list of changes can be found in CHANGES.txt: > > http://svn.a

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-10 Thread Cezar Andrei
pdate. This > definitely has my vote (but it's non-binding) > BTW, is there a full list of changes available? > thanks > *P > > On 8/8/12 8:33 PM, Cezar Andrei wrote: > > Because I didn't receive any votes, I'm extending the vote period until > > end of next

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-08 Thread Cezar Andrei
Because I didn't receive any votes, I'm extending the vote period until end of next Monday, August 13. Cezar On Wed, 2012-08-08 at 17:07 -0700, Cezar Andrei wrote: > The files are now up at http://xmlbeans.apache.org/dist/ please do send > your votes. > > Thanks, > Ceza

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-08 Thread Cezar Andrei
The files are now up at http://xmlbeans.apache.org/dist/ please do send your votes. Thanks, Cezar On Thu, 2012-08-02 at 11:04 -0700, Cezar Andrei wrote: > The files are not here: http://xmlbeans.apache.org/dist/ yet, they > should get sync-ed soon. I'll send an update when they

Re: [VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-02 Thread Cezar Andrei
The files are not here: http://xmlbeans.apache.org/dist/ yet, they should get sync-ed soon. I'll send an update when they're up. In the meantime, you can find the same files here: http://apache.org/~cezar/xmlbeans-2.6.0/ Cezar On Thu, 2012-08-02 at 10:46 -0700, Cezar Andrei wrote

[VOTE] XMLBeans v2.6.0-RC3 to become official release

2012-08-02 Thread Cezar Andrei
Please cast your vote for the XMLBeans v2.6.0-RC3, as published at http://xmlbeans.apache.org/dist/ to become XMLBeans v2.6.0 official release. The vote will be open until end of day Monday, August 6. Anyone is allowed to show support or lack of it, but only XMLBeans committer votes are binding

Re: XMLBeans 2.6.0-RC3

2012-08-02 Thread Cezar Andrei
Thanks Jerry. I'll send out a vote momentarily to make RC3 the final 2.6.0 release. Cezar On Mon, 2012-07-30 at 08:47 -0700, jerry...@oracle.com wrote: > Hi Cezar, > > rc3 passed all WLS tests. > > Jerry > > On 07/23/2012 01:48 PM, Cezar Andrei wrote: > > RC

XMLBeans 2.6.0-RC3

2012-07-23 Thread Cezar Andrei
RC3 is now up at the same location. Please send your comments. Cezar On Thu, 2012-07-19 at 13:00 -0700, Cezar Andrei wrote: > Hello everybody, > > RC2 is up, please give it a try and let us know if you find any problems: > http://people.apache.org/~cezar/xmlbeans-2.6.0

Re: Insert xml contents from one xml to another

2012-02-07 Thread Cezar Andrei
Looks like you need to read this: http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html Cezar On Wed, 2012-01-04 at 11:22 -0800, Account forum wrote: > Hi All, > I have a requirement where in I need to read a xml file (file 1) and > insert somewhere in the middle of anothe

Re: EntityResolver not getting called...?

2012-02-07 Thread Cezar Andrei
David, This sounds strange, I checked the code, the resolver is used. Just make sure you don't have XmlOptions.setLoadUseDefaultResolver (). You can also give a try using ResolverUtil.resolverForCatalog(). Cezar On Wed, 2012-01-04 at 01:29 -0800, David Svanberg wrote: > Hi, my problem is that I

Re: Using "get" after "set"

2011-09-16 Thread Cezar Andrei
Jason, If you're schema contains 'myCustomNumber' element that your Book class should have get/add/set methods for it and you just use them accordingly. If it doesn't you can still add it, it's a little more complicated, you need to use the XmlCursor interface. See following link for how to use X

Re: Docs for 2.5.0 not (yet?) hosted on xmlbeans.apache.org

2011-06-24 Thread Cezar Andrei
Jeff, maybe I'm wrong but there were no public API changes in 2.5.0, so the 2.5.0 docs would be the same as 2.4.0. Cezar On Jun 24, 2011, at 1:40 PM, Jeff Martin wrote: > The latest hosted docs are http://xmlbeans.apache.org/docs/2.4.0/. But > 2.5.0 was released Dec 2009. Will xmlbeans.apache

Re: Conflict When Having Two XMLBean Generated classes for the same Schema...

2011-06-23 Thread Cezar Andrei
Best way to avoid this problem is to have different target namespaces for your schemas, or same target namespace but without conflicts. If you can't do that next is to manage the jars/classes in different classloaders like Kevin suggested. If this is not possible, at least use different java pa

Re: Why is scomp trying to access remote url without -dl option set?

2011-06-23 Thread Cezar Andrei
aybe the issue has > nothing to do with the -dl option? Could scomp be "hardcoded" such > that scomp always try to fetch http://www.w3.org/2001/xml.xsd > regardless of the -dl option? > > I'm still concerned that if www.w3.org returns 503 during a build, > my build w

Re: Why is scomp trying to access remote url without -dl option set?

2011-06-22 Thread Cezar Andrei
Jeff, This looks like a bug if it really happens, can you please make a small repro which shows the problem all the time and file it under Jira? Cezar On Jun 22, 2011, at 12:21 PM, Jeff Martin wrote: > I've been using scomp successfully for years (currently XMLBeans 2.4.0). > > Recently I g

Re: execQuery: No query engine found

2011-06-22 Thread Cezar Andrei
Henrique, The main problem is that Saxon is changing the API quite often, this implies that without a lot of sustained effort we can't follow all versions. To find out the exact combination of Saxon and XMLBeans versions the best way is to check the XMLbeans svn log. Also look into XMLBeans' bu

Re: How can I replace to my own value like

2011-03-11 Thread Cezar Andrei
Shadab, You are using an instance of an xmlschema type to serialize your data. You can try serializing an instace of a global schema element, i.e. a *Document class. Or you can use the setSaveSyntheticDocumentElement() http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptio

Re: Tips for debugging XML beans - newbie

2011-02-02 Thread Cezar Andrei
Nicholas, Did you try error.getObjectLocation()? Do you have any more details about the error? Cezar On Fri, 2011-01-28 at 15:48 +0100, Nicholas W wrote: > Hi All, > I am having some trouble unmarshalling data generated by a remote > REST web service (for which I have the XSD. > > I have set

RE: XMLBeans enforcement of xs:pattern in simple type?

2010-12-14 Thread Cezar Andrei
Chris, If you check the XMLSchema spec: http://www.w3.org/TR/xmlschema-2/#dateTime 3.2.7.1 explains the lexical representation of datetime. This '-'? '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zz)? is the production that you can restrict in a derived restriction. If you don't r

RE: running all junit test

2010-12-13 Thread Cezar Andrei
Raghvendra, You should do: ant checkintest ant detailed And you should also check the test/docs/BuildingAndRunningTests.txt for more details. Cezar -Original Message- From: Raghvendra Singh [mailto:rsi...@terracottatech.com] Sent: Monday, December 13, 2010 3:16 AM To: d...@xmlbean

RE: XmlCursor.toChild() Ignore Namespace?

2010-12-08 Thread Cezar Andrei
Paul, It looks that you have 3 options: 1) somehow get the new namespace uri and pass it as parameter - this would be the preferred way because namespaces do usually change for a reason usually to indicate that they are not backwards compatible 2) or use the XmlCursors methods t

RE: java.lang.OutOfMemoryError: PermGen space

2010-08-24 Thread Cezar Andrei
Michael, The permgen memory contains the class definitions, since you're probably using a big number of classes they get loaded into permgen. You can optimize the size by using custom classloaders with XMLBeans, which most likely is more complicated than increasing the permgen size and depen

RE: [ANN]VTD-XML 2.9

2010-08-24 Thread Cezar Andrei
Jimmy, This is not the right list for these kind of announcements, we're not enforcing it, but please have respect for all the people subscribing. Thanks, Cezar _ From: jimmy Zhang [mailto:jzh...@ximpleware.com] Sent: Thursday, August 12, 2010 9:33 PM To: user@xmlbeans.apach

RE: Removing namespaces at the element level

2010-08-06 Thread Cezar Andrei
Mark, Please take a look at using the save aggressive option when printing/saving the document: http://xmlbeans.apache.org/docs/2.4.0/reference/index.html Cezar _ From: mARK aNDREWS [mailto:mraandr...@gmail.com] Sent: Wednesday, August 04, 2010 4:45 AM To: user@xmlbeans.apa

RE: java.lang.RuntimeException: No query engine found

2010-07-28 Thread Cezar Andrei
Anil, You have to make sure that the right jars that implement the XQuery functionality are available on the classpath, Saxon or BEA XQuery impl. Cezar -Original Message- From: akonduru [mailto:anilkond...@gmail.com] Sent: Monday, July 12, 2010 10:35 PM To: user@xmlbeans.apache.org Sub

RE: Bad performance using multiple threads

2010-06-09 Thread Cezar Andrei
Choel, There are two types of locks in XMLBeans: - a global lock that is used only on operations involving two documents in different locales are used - a local lock, per locale, by default each new doc gets its locale, using options same locale can be used for more docs) Even for read opera

RE: problems adding namespace to a schema generated in code

2010-06-09 Thread Cezar Andrei
Hi Alexander, 1) On the schema element, you need to get a cursor: XmlObject.getCursor() and use the method: XmlCursor.insertNamespace ( String prefix, String namespace ) 2) You can allways look at how scomp is implemented: org.apache.xmlbeans.impl.tool.SchemaCompiler which is a now standard way

RE: Cannot get CDATA to work

2010-06-09 Thread Cezar Andrei
Chirstofer, Did you try the example in the javadoc? http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setUseCDataBookmarks() Cezar _ From: Christopher Cheng [mailto:christopher.sw.ch...@gmail.com] Sent: Tuesday, June 01, 2010 4:57 AM To: user

RE: Getting at a schema component's id attribute

2010-04-01 Thread Cezar Andrei
Peter, There is no direct way to find the id of a schema type, but there is a work around: each compiled schema type points to its xsd file (see SchemaComponent.getSourceName()), once you have the file it's possible using xpath to find the type definition and the value of it's id attribute. If

RE: two similar xsd in the same wsdl databinded with xmlbean in axis2

2010-01-20 Thread Cezar Andrei
Bartolomeo, It depends if the schemas collide, i.e. they have the same target namespace and are using the same local names for global types, elements, attributes etc. Maybe _9 version is backwards compatible with _8, i.e. instances of _8 are valid under _9 schema, if this is the case you're luc

RE: Xmlbeans is able to retrieve extra attribute from xml ?

2009-12-23 Thread Cezar Andrei
in thread "main" org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA     at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486)     at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712) 2009/12/23 Cezar Andrei mailto:cezar.and...@oracle.com"cezar.and...@oracle.com&g

RE: Xmlbeans is able to retrieve extra attribute from xml ?

2009-12-23 Thread Cezar Andrei
Sebastien,   It is possible, please check the XmlCursor interface. On the xmlbeans object you have the attributes, call: XmlCursor xc = xobj.getCursor(); . Move the cursor around with xc.toFirstAttribute(); xc.toNextAttribute(); And get info on the current token, in your case the attribute: x

RE: [VOTE RESULTS] XMLBeans v2.5.0-RC1 to become official release

2009-12-21 Thread Cezar Andrei
The release files were uploaded, mirrors should update shortly. Also the maven repo and website was updated. Cezar _ From: Cezar Andrei Sent: Monday, December 14, 2009 1:19 PM To: user@xmlbeans.apache.org; d...@xmlbeans.apache.org Subject: [VOTE RESULTS] XMLBeans v2.5.0-RC1

[VOTE RESULTS] XMLBeans v2.5.0-RC1 to become official release

2009-12-14 Thread Cezar Andrei
to all participants that made this release possible. Cezar Andrei _ From: Cezar Andrei Sent: Wednesday, December 09, 2009 11:23 AM To: d...@xmlbeans.apache.org Cc: user@xmlbeans.apache.org Subject: [VOTE] XMLBeans v2.5.0-RC1 to become official release Please cast your vote

[VOTE] XMLBeans v2.5.0-RC1 to become official release

2009-12-09 Thread Cezar Andrei
Please cast your vote for the XMLBeans v2.5.0-RC1, as published at http://xmlbeans.apache.org/dist/, to become XMLBeans v2.5.0 official release. The vote will be open until end of day Saturday, 12th of December. Anyone is allowed to show support or lack of it, but only XMLBeans committer vote

RE: [Release Candidate] XMLBeans 2.5.0-RC1

2009-12-08 Thread Cezar Andrei
There seems to be no problems, except from the missing src.zip file which I'll copy shortly. I'll follow up with the VOTE email. In the meantime, please do check it in your environment. Thank you, Cezar _ From: Cezar Andrei Sent: Wednesday, November 25, 2009 5:2

RE: Processing schema instances

2009-12-04 Thread Cezar Andrei
David, You're correct the classes in org.apache.xmlbeans.impl.xb.xsdschema are the classes XMLBeans uses internally to load up xsd files. They are just compiled xbeans of schema4schemas xsd, (because of this bootstrap is required) but you can use them directly. Those classes will help you dea

[Release Candidate] XMLBeans 2.5.0-RC1

2009-11-25 Thread Cezar Andrei
Hello everyone, The first release candidate for XMLBeans 2.5.0 is available at: http://xmlbeans.apache.org/dist/ Please give it a try and let us know if there are any problems with it. Thank you, Cezar Andrei

RE: AW: changeType to type with fewer element

2009-11-17 Thread Cezar Andrei
hangeType(Top.type) will cause that the something element will be ignored and not unmarshalled to xml and validation. Regards, Oliver _ Von: Cezar Andrei [mailto:cezar.and...@oracle.com] Gesendet: Montag, 16. November 2009 21:45 An: user@xmlbeans.apache.org Betreff: RE: change

RE: changeType to type with fewer element

2009-11-16 Thread Cezar Andrei
Oliver, I'm not sure what is your question, but you have to keep in mind that validation is run only when validate() method is invoked. Especially when it is structure related operations modifying the document don't keep the document valid. Most of the time a document has to go through a se

RE: ClasscastException - XmlAnyTypeImpl cannot be cast to - Error

2009-11-16 Thread Cezar Andrei
I'm not familiar with Spring Marshaller, but it seems that the source is not parsed in the schema context you expect. Also you can declare your response an XmlObject and use changeType method. Cezar > -Original Message- > From: pattabi [mailto:pattabiraman.meenakshisunda...@aig.com] > S

RE: Output dateTime in canonical form

2009-10-09 Thread Cezar Andrei
Anirban, Did you look at GDateBuilder, specifically at using normalizeToTimeZone methods? Cezar _ From: Anirban Mukherjee [mailto:amukh...@gmail.com] Sent: Saturday, September 12, 2009 3:12 PM To: user@xmlbeans.apache.org Subject: Output dateTime in canonical form I wish t

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 t

RE: xml parsing issue, xmlbeans version 2.4

2009-09-09 Thread Cezar Andrei
Hi Kristen, The in-memory representation of the text after XMLBeans parsing is with all entities decoded, when you save it back XMLBeans has to use CDATA or encoded entities to have a well formed xml representation. By default XMLBeans uses an algorithm to minimize the length of the message,

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 an

[POOL] jdk 1.4 support in next of XMLBeans

2009-05-11 Thread Cezar Andrei
27;m using 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 y

RE: Problems with generating XML

2009-03-12 Thread Cezar Andrei
Philipp, In order to have a valid XML document you need to have some namespace declarations. XMLBeans always tries to create valid documents, that's why you see the xmlns:xsi namespace declaration. If you want valid documents try using the methods that have uri as parameter. For example instea

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 http://xmlbeans

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 File(n

RE: Extension Interfaces without handlers

2009-01-16 Thread Cezar Andrei
Hi Patrick, Your scenario isn't a very common one. The only solution that I see here is to modify the generated sources, which first of all we don't recommend/support at all and secondly it's not straight forward to do if you're not familiar with XMLBeans. Have you thought about using the XMLB

RE: read the tag name text

2008-11-18 Thread Cezar Andrei
Shahzad, XmlCursor API gives access to low lever info/actions on the document. XmlObject xobj = . XmlCursor cursor = xobj.newCursor(); //cursor can be moved to the right place // get name of the current element/attribute QName qname = cursor.getName(); 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 forwardi

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 ___

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, we

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: Frid

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 in

RE: "binding" for xmlbeans

2008-10-03 Thread Cezar Andrei
XMLBeans doesn't help with fully substitute a class with one of your own, but it lets you specify a way to enhance the generated class with your own behavior. For details see the following: http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature http://wiki.apache.org/xmlbeans/PrePostSetFea

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 a

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 at

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:

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 To:

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 pa

RE: xsdConfig general question(Long)

2008-08-05 Thread Cezar Andrei
Hi Peter, I've put together some examples on the following page: http://wiki.apache.org/xmlbeans/XsdConfigFile But as specified the definitive structure is in the file that describes the schema of xsdconfig files: http://svn.apache.org/viewvc/xmlbeans/trunk/src/configschema/schema/xmlcon

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

[VOTE RESULT] XMLBeans 2.4.0 Release

2008-07-08 Thread Cezar Andrei
Cezar From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2008 1:44 PM To: [EMAIL PROTECTED] Cc: user@xmlbeans.apache.org Subject: [VOTE] XMLBeans 2.4.0 Release Given that there are no known problems with RC3, I'm starting a vote for

[VOTE] XMLBeans 2.4.0 Release

2008-07-02 Thread Cezar Andrei
Given that there are no known problems with RC3, I'm starting a vote for declaring RC3 the official XMLBeans 2.4.0 release. Files are still available at this location: http://xmlbeans.apache.org/dist/ Everyone is welcome to vote but only votes from committers and PMC members are binding. In

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.or

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: XMLBeans Events

2008-06-04 Thread Cezar Andrei
The events are triggered only when calling the methods that we generate specific for that type, there are no events generated for any of the XmlComplexContentImpl methods or its baseclasses (XmlComplexContentImpl is the class that almost all generated classes inherit from). Cezar > -Original

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

2008-03-19 Thread Cezar Andrei
ving CDATA blocks in XML 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 PROTECT

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

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 testXbGetSourceName

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 1

RE: handling just the Name changes in XSD..

2008-01-04 Thread Cezar Andrei
Dave, You're right XMLBeans doesn't have support for this. Please let us know if you have something for this. Most of the time schemas don't change, and if they do, usually they are backwards compatible. Probably this is why it's not at the top of requests, but definitely it's a useful feature to

RE: when do you need these jars: resolver.jar,etc..

2008-01-02 Thread Cezar Andrei
Classes in xmlpublic.jar are contained in xbean.jar. xmlpublic.jar can be used for java compilation to make sure an application is not using any private unsupported APIs. Cezar > -Original Message- > From: dave [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 01, 2008 7:42 PM > To: user

RE: Large xmldocuments and namespace declarations

2007-12-12 Thread Cezar Andrei
fixes 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 cc Subject

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, Decemb

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 ther

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 http://www.mail-archive.com/user@xmlbeans.apache.org

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

  1   2   3   >