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
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
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
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
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
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,
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’
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---
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.
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
Federico,
The schema looks fine, if you look closely at SubInfo type def:
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
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
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
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
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
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,
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
__
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
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
___
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
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
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
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
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
-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
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:
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:
>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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 215 matches
Mail list logo