Are you looking for some kinf of API from xmlbeans?
When I've wanted this information I've just tossed out some timestamps to
the log pre and post query execution. Will that not work for your case?
-jacobd
On Oct 23, 2011 6:29 PM, tejaswi chennubhotlla tejaswi@gmail.com
wrote:
Hi All
How
Hi Jacob,
Could you elaborate on your comments and perhaps provide a pseudo example to
better understand your point.
Hi Cezar,
did you find a resolution to your issue. If so, can you share it with us.
In my case, we have a long xsd with many definitions. The issue sporatically
occurs in
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
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
If you have schemas that define components in the same namespace you'll need
to isolate the generated schema jars using classloaders. The issue is
similar to trying to load two different java classes with the same name.
Kevin
On Thu, Jun 16, 2011 at 7:35 AM, Horst Heistermann
AM
To: user@xmlbeans.apache.org
Subject: Re: Why is scomp trying to access remote url without -dl option
set?
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
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
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'
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 got
To: user@xmlbeans.apache.org
Subject: Re: Why is scomp trying to access remote url without -dl option
set?
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
I tried that without effect. Be interested to hear others experience. -paul-
-
Paul Gillen
-Original Message-
From: Jacob Danner jacob.dan...@gmail.com
Date: Wed, 11 May 2011 18:24:34
To: user@xmlbeans.apache.org
Reply-To: user@xmlbeans.apache.org
Subject: Re: How to add
to hear others experience.
-paul-
-
Paul Gillen
--
*From: * Jacob Danner jacob.dan...@gmail.com
*Date: *Wed, 11 May 2011 18:24:34 -0700
*To: *user@xmlbeans.apache.org
*ReplyTo: * user@xmlbeans.apache.org
*Subject: *Re: How to add standalone attribute
In general xmlbeans will not throw an exception for instances that are
invalid according to the schema.
If you want to throw an exception on this, try validating the instance with
an xmloptions that includes an error listener. If after checking the error
list for errors you are concerned with
read about xmlbeans validation here
http://xmlbeans.apache.org/docs/2.0.0/guide/conValidationWithXmlBeans.html
I test using this code
String testschema = "?xml version=\"1.0\"
encoding=\"UTF-8\"?\n" +
"xsd:schema\n" +
"
This problem is fixed in revision 959082
http://svn.apache.org/viewvc?view=revisionrevision=959082
I tested using the schema and xml provided in JIRA
XMLBEANS-428 using this code
SchemaTypeSystem sts0 = XmlBeans.compileXsd(new
Could you file a jira issue and attach one of the xml instances you are
seeing this with?
Thanks,
-jacobd
On Apr 29, 2011 2:32 AM, Hugo de Oude hdo...@allshare.nl wrote:
Hello,
We get the error 'Unexcpected element: CDATA' if the length of an xml file
is exactly 8193.
This can be reproduced
What does your Java code look like?
On Thu, Mar 10, 2011 at 3:49 AM, shadab.g...@jktech.com wrote:
Hello All,
Please help me out on my problem.
I am new on xmlbeans. when I get Xml using xmlBeans, I get xml like below-
xml-fragment xmlns: * name space ***
other tag/
other tag/
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()
What does the schema look like? Are the elements and/or anyType?
The majority of times I've hit a similar issue it has to do with an
incorrect namespace or incorrect type.
In the case of incorrect type, it was usually my error using XXDocument when
I needed XXType.
HTH,
-jacobd
On Thu, Feb 3,
Hi Cezar,
Thanks for your reply. errorList is empty, so there are no error objects...
Regards,
Nicholas W.
On Wed, Feb 2, 2011 at 7:19 PM, Cezar Andrei cezar.and...@oracle.com wrote:
Nicholas,
Did you try error.getObjectLocation()? Do you have any more details
about the error?
Cezar
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
Close to what I'm looking for. Except, I want the minimum schema
associated with a type (not an actual instance). Some of the schemas
we're dealing with are large can hard to sift through.
Thanks
On Wed, Jan 19, 2011 at 2:18 PM, Jacob Danner jacob.dan...@gmail.com wrote:
Have you tried the
Have you tried the xsd2inst tool? Thats what I typically use for this sort
of thing.
-jacobd
On Wed, Jan 12, 2011 at 3:06 PM, Curtis Jensen cur...@the-jensens.orgwrote:
After compiling a schema, is it possible to generate a schema for a
given XXXDocument class? ie. I don't want the whole
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
Ah...right...I forgot about that aspect of restrictions. Thanks for the
clarification!
On Tue, Dec 14, 2010 at 3:53 PM, Cezar Andrei cezar.and...@oracle.comwrote:
Chris,
If you check the XMLSchema spec:
http://www.w3.org/TR/xmlschema-2/#dateTime 3.2.7.1 explains the lexical
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:
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
Hi Andy,
Making your method synchronized should take care of thread safety issues.
Kind regards,
Pim
From: Andy [mailto:andrh...@hotmail.com]
Sent: zaterdag 4 december 2010 22:08
To: user@xmlbeans.apache.org
Subject: Thread-safety question
Hi, I have a method below that
Hi Pim,
I I were to leave the method as is, would the method not be thread-safe?
I ask because this method is part of a library I am using.
Thanks-
From: pim.tjeer...@xs4all.nl
To: user@xmlbeans.apache.org
Subject: RE: Thread-safety question
Date: Sun, 5 Dec 2010 15:06:31 +0100
Hi Andy
: zondag 5 december 2010 18:14
To: user@xmlbeans.apache.org
Subject: RE: Thread-safety question
Hi Pim,
I I were to leave the method as is, would the method not be thread-safe?
I ask because this method is part of a library I am using.
Thanks-
_
From: pim.tjeer...@xs4all.nl
Dang. I was hoping XmlObject.Factory.parse() was thread-safe. Maybe a future
enhancement? Thanks-
From: pim.tjeer...@xs4all.nl
To: user@xmlbeans.apache.org
Subject: RE: Thread-safety question
Date: Sun, 5 Dec 2010 22:53:47 +0100
Hi Andy, The method is only thread safe in case you make
Can you post the schema as well?
Thanks
-Duane
From: PhilNad214 PhilNad214 [mailto:philnad...@gmail.com]
Sent: Monday, November 22, 2010 12:17 AM
To: user@xmlbeans.apache.org
Subject: Re: Problems getting started with xmlbeans
As a followup to this, here is an example:
import
@xmlbeans.apache.org
Subject: Re: Problems getting started with xmlbeans
As a followup to this, here is an example:
import org.openuri.easypo.PurchaseOrderDocument;
public class POUpdater {
POUpdater() {
PurchaseOrderDocument pod = PurchaseOrderDocument.Factory.newInstance
the schema as well?
Thanks
-Duane
*From:* PhilNad214 PhilNad214 [mailto:philnad...@gmail.com]
*Sent:* Monday, November 22, 2010 12:17 AM
*To:* user@xmlbeans.apache.org
*Subject:* Re: Problems getting started with xmlbeans
As a followup to this, here is an example:
import
and look into using XMLBeans 2.0+ instead of 1.0.
-Duane
From: PhilNad214 PhilNad214 [mailto:philnad...@gmail.com]
Sent: Monday, November 22, 2010 2:30 PM
To: user@xmlbeans.apache.org
Subject: Re: Problems getting started with xmlbeans
Sure (it's simply the one that comes with the distribution
at
the tutorial he linked and look into using XMLBeans 2.0+ instead of 1.0.
-Duane
*From:* PhilNad214 PhilNad214 [mailto:philnad...@gmail.com]
*Sent:* Monday, November 22, 2010 2:30 PM
*To:* user@xmlbeans.apache.org
*Subject:* Re: Problems getting started with xmlbeans
Sure (it's simply
:* Monday, November 22, 2010 2:30 PM
*To:* user@xmlbeans.apache.org
*Subject:* Re: Problems getting started with xmlbeans
Sure (it's simply the one that comes with the distribution)...
xs:schema
xmlns:xs=http://www.w3.org/2001/XMLSchema;
xmlns:po=http://openuri.org/easypo
...@gmail.com]
Sent: Monday, November 22, 2010 2:58 PM
To: user@xmlbeans.apache.org
Subject: Re: Problems getting started with xmlbeans
Ahhh... ok, I've just been following tutorial right off the front page. Surely
that needs updating then.
Any idea then where I find this tutorial from Wing Yew Poon? I
=
PurchaseOrderDocument.Factory.newInstance();
then you have nothing yet, just an empty document. If you try to output that,
you get an empty xml fragment.
Hope that clarifies things.
- Wing Yew
_
From: Duane Zamrok [mailto:zam...@cubrc.org]
Sent: Monday, November 22, 2010 11:44 AM
To: user@xmlbeans.apache.org
Subject: RE
Poon [mailto:wing.yew.p...@oracle.com]
Sent: Monday, November 22, 2010 3:25 PM
To: user@xmlbeans.apache.org
Subject: RE: Problems getting started with xmlbeans
Duane,
if you did
PurchaseOrderDocument newPODoc =
PurchaseOrderDocument.Factory.newInstance();
PurchaseOrder newPO
@xmlbeans.apache.org
*Subject:* RE: Problems getting started with xmlbeans
Duane,
if you did
PurchaseOrderDocument newPODoc =
PurchaseOrderDocument.Factory.newInstance();
PurchaseOrder newPO = newPODoc.addNewPurchaseOrder();
then you have a purchase-order element.
If you just did
As a followup to this, here is an example:
import org.openuri.easypo.PurchaseOrderDocument;
public class POUpdater {
POUpdater() {
PurchaseOrderDocument pod =
PurchaseOrderDocument.Factory.newInstance();
System.out.println(pod.toString());
}
public static void
Hello Tim, Thanks for your reply.
I'm developing an integration project and I created that xsd file from the
xml file that our client sends us. I tried several different tools but none
of them creates a targetnamespace from the xml file that I attached. When I
try to assign a namespace manually
yes.. it works!! previously i tried with 2.5.0 and 2.0 versions...
thanks a lot!
On Sat, Nov 6, 2010 at 12:17 PM, Paul Gillen paul.d.gil...@gmail.com wrote:
Compiles cleanly with xmlbeans 2.4.0
On 10/27/2010 10:38 AM, Fabiana Nascimento wrote:
hello,
i'm novice in use xmlbeans and when i
This is quite a mess. I'm assuming you have to accept the input as is.
Basically you've got 4 different XML vocabularies active in each xml
instance doc:
* The 1st one, which isn't in any namespace at all, containing
only the {iq} element as well as ALL the attributes in ALL the
I could be wrong, but the odd thing I noticed was that the .xsd doesn't
have a targetNamespace attr. I don't think simply declaring a namespace
in the .xsd makes it part of the xml schema being defined. But maybe I'm
misunderstanding your intent. It looks like you're trying to define a
schema that
Compiles cleanly with xmlbeans 2.4.0
On 10/27/2010 10:38 AM, Fabiana Nascimento wrote:
hello,
i'm novice in use xmlbeans and when i tried to scomp to compile de
mpeg-7 schema (available in
http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-7_schema_files/mpeg7-v1.xsd),
i got the
A quick update re (2), the NPEs, my mistake - turns out I missed a
NoClassDefFound exception in all the logging... once I saw that I searched
deeper and found that although I am using a v2.5.0 xbean.jar, there was an
older 2.2.0 jar in a subfolder from a previous axis2 project. That was
causing
Your XSD doesn't have any elements. Try adding something like:
xs:element name=TestInteractionElement
xs:complexType
xs:sequence
xs:group ref=TestInteraction/
/xs:sequence
/xs:complexType
That did it.
Sorry for the absolutely rookie mistake!
On Fri, Oct 29, 2010 at 11:39, Gillen, Paul paul.gil...@nscorp.com wrote:
xs:element name=TestInteractionElement
xs:complexType
xs:sequence
xs:group ref=TestInteraction/
...@rosettanet.org
Subject: RE: [XMLBean] selectPath() with XMLBeans 2.0.0-beta1
integration with Saxon-B 8.3
Date: Wed, 16 Mar 2005 09:48:27 GMT
http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200503.mbox/prev
?%3c40a8b5912c8b5549a8c8693118390fdae1e...@dyohus05.uccorg.org%3e Prev
http://mail
I had this exact problem but got around it by using JRockit instead of the Sun
JDK. As it was explained to me, JRockit disregards xmx settings. It essentially
rendered my machine useless for about 45 minutes while it churned away but it
did eventually finish.
On Oct 20, 2010, at 7:07 AM,
To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
Not exactly sure what's happening here in terms of procedure. My guess is that
AbstractXmlBuilder (superclass of XmlPrcBuilder?) is calling setters/adders
on the target XmlBean and that XmlPcrBuilder is then calling bean.validate
E19_01_0
E19_032.2468/E19_03
/E19_01_0
/E19
/Record
/Header
/EMSDataSet
From: Paul Cooper [mailto:pcoo...@emspic.org]
Sent: Monday, September 27, 2010 11:24 AM
To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
Tim
Paul,
You're suggesting doing a toString() on the BigDecimal? Hadn't tried
thatlet me test, I'll report back.
Paul
From: Gillen, Paul [mailto:paul.gil...@nscorp.com]
Sent: Monday, September 27, 2010 10:23 AM
To: 'user@xmlbeans.apache.org'
Subject: RE: Error compiling schema
This do
The Procedure seemed to be an essential step. -p2-
-
Paul Gillen
-Original Message-
From: Paul Cooper pcoo...@emspic.org
Date: Mon, 27 Sep 2010 13:29:34
To: user@xmlbeans.apache.orguser@xmlbeans.apache.org
Reply-To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
Yew Poon [mailto:wing.yew.p...@oracle.com]
Sent: Thursday, September 23, 2010 10:26 PM
To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
Paul,
you'll have to explain a bit more what the bug is.
Can you excerpt the part of your schema that defines the type of the E19_03
element
@xmlbeans.apache.org
Subject: RE: Error compiling schema
Paul,
you'll have to explain a bit more what the bug is.
Can you excerpt the part of your schema that defines the type of the
E19_03 element?
Also, how is the value of the element set?
Is the bug that you're setting E19_03
]
Sent: Friday, September 24, 2010 6:20 AM
To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
Intermittent errors usually lead me to suspect a threading issue -- either in
your code or XmlBeans. Is the marshaling in your code being handled in another
thread? Or perhaps
The compilation errors below are also a huge problem, because I cannot
regenerate my schema jar.
From: Paul Cooper [mailto:pcoo...@emspic.org]
Sent: Thursday, September 23, 2010 6:59 PM
To: user@xmlbeans.apache.org
Subject: Error compiling schema
Greetings, list. Longtime user of older versions
if compilation still fails.
- Wing Yew
_
From: Paul Cooper [mailto:pcoo...@emspic.org]
Sent: Friday, September 24, 2010 9:14 AM
To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
The compilation errors below are also a huge problem, because I cannot
regenerate my schema jar
Hmmm. I hadn't thought of that. I'll try it and see what happens! Thanks.
Forest and trees and stuff.
From: Wing Yew Poon [mailto:wing.yew.p...@oracle.com]
Sent: Friday, September 24, 2010 11:10 AM
To: user@xmlbeans.apache.org
Subject: RE: Error compiling schema
Paul,
since it appears
Paul,
what is this BigDecimal truncation bug that you speak of?
- Wing Yew
_
From: Paul Cooper [mailto:pcoo...@emspic.org]
Sent: Thursday, September 23, 2010 6:59 PM
To: user@xmlbeans.apache.org
Subject: Error compiling schema
Greetings, list. Longtime user of older versions of
: RE: Error compiling schema
Paul,
what is this BigDecimal truncation bug that you speak of?
- Wing Yew
From: Paul Cooper [mailto:pcoo...@emspic.org]
Sent: Thursday, September 23, 2010 6:59 PM
To: user@xmlbeans.apache.org
Subject: Error compiling schema
Greetings
For serializing, looks like you could use a SAX approach with the
XmlBean's save(ContentHandler,LexicalHandler) method:
OutputStream out = ...
SAXDocumentSerializer saxOut = new SAXDocumentSerializer();
saxOut.setOutputStream(out);
myXmlBeanDocument.save(saxOut,
That works great. Thanks.
I am getting about 30% reduction in size. I can get another 30% (total
~60%) if I compress the byte[] afterwards.
I know this is highly object dependent, but does these 2 steps sound like
the smallest I can make an object?
Thanks.
Tim Watts-3 wrote:
For
You'll probably get a better size reduction by just compressing the text
XML. Binary XML representations can be faster to process and smaller
than text XML, but they don't compress nearly as well.
- Dennis
Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
You're attempting to parse junk.xml not new File(junk.xml). That is, you're
attempting to parse the file name and not the file.
-Duane
-Original Message-
From: Tim Watts [mailto:t...@cliftonfarm.org]
Sent: Monday, August 30, 2010 7:31 AM
To: user@xmlbeans.apache.org
Subject: parse fails
Ha! Yep, that fixed it. Thanks.
On Mon, 2010-08-30 at 09:51 -0400, Duane Zamrok wrote:
You're attempting to parse junk.xml not new File(junk.xml). That is,
you're attempting to parse the file name and not the file.
-Duane
-Original Message-
From: Tim Watts
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:
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
Did the code execute without issue and just not work, or did it throw an
exception of some sort?
I've never really tried removing an element from my XMLObject hierarchy, but
when I add elements I do the exact same kind of thing. Perhaps you could try
something like the following. (fair warning
I appreciate your kindness.
I did as you'v recommended. but, the result was same.
When I explained my problem, I had one thing that I missed.
Bundle B is http servlet bundle ( imported packages are javax.servlet,
javax.servlet.http, org.osgi.service.http).
If I add Bundle A's method at
myclass should be visible to bundle 'B'. Verify, if you have added it in the
Import-Package header.
Thanks,
Srijith.
chlee le...@etri.re.kr 12/08/2010 12:59
Hello, I'm having a strange problem during developing my osgi bundles in
equinox. When I run the below code within a A bundle,
Thanks for your reply.
I did what you said.
but, unfortunately the result was same.
do you have other solution?
Srijith Kochunni wrote:
myclass should be visible to bundle 'B'. Verify, if you have added it in
the Import-Package header.
Thanks,
Srijith.
chlee le...@etri.re.kr
Hi chlee,
I recommend you try creating an object of myclass in the Bundle 'B'.
Verify that you dont hit across a 'ClassNotFound Error'. Also check whether
Bundle A has myclass in the 'Export-Package' header.
To verify that the wiring has happened correctly, run command packages
I am using xmlbeans with spring and use the Spring xmlbeans marshaller so
don't really have control over this. If there is no setting during the
class generation I may have to write my own marshaller to remove them...
m/|RK aNDREWS
photos: http://www.flickr.com/photos/mraandrews
twitter:
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:
___
Principal Information Architect
Division Sustainability Innovation
Web: www.dnv.com http://www.dnv.com/
From: Scott Hinkelman [mailto:scott.hinkel...@oracle.com]
Sent: 9. juli 2010 13:12
To: user@xmlbeans.apache.org
Subject: RE: XMLBeans does
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
Seems like a poor idea for standards organizations to require that which is
technically arbitrary. Which have done so? Can you supply references?
=p=
From: Scott Hinkelman [mailto:scott.hinkel...@oracle.com]
Sent: Friday, July 09, 2010 1:12 PM
To: user@xmlbeans.apache.org
Subject: RE
.
Thanks,
Scott
---
Scott R. Hinkelman
Software Standards Architect
AIA Standards Architecture and Strategy
Oracle Corporation
Mobile: 512.415.8490
From: Duane Zamrok [mailto:zam...@cubrc.org]
Sent: Thursday, July 08, 2010 6:05 PM
To: user@xmlbeans.apache.org
Subject: RE: XMLBeans
Thanks Peter and Geir for your responses. I apologize for the confusion; it
looks like my email randomly omitted crucial lines of XML in my message. Here
is the missing XSD header, with parentheses instead of angle brackets. (We're
not using example.com; I just did a search replace for our
talking
about and explain it a bit better.
Best Regards
-Duane
From: Justin Bailey [mailto:justinbaile...@yahoo.com]
Sent: Thursday, July 08, 2010 12:13 PM
To: user@xmlbeans.apache.org
Subject: Re: XMLBeans does not correctly propagate namespaces
Thanks Peter and Geir for your responses. I apologize
? :(
Justin
From: Duane Zamrok zam...@cubrc.org
To: user@xmlbeans.apache.org user@xmlbeans.apache.org
Sent: Thu, July 8, 2010 2:48:26 PM
Subject: RE: XMLBeans does not correctly propagate namespaces
One thing that I noticed when reading your schema example
@xmlbeans.apache.org
Subject: RE: XMLBeans does not correctly propagate namespaces
Justin,
as Peter has clearly explained, prefixes are arbitrary; they are not what is
important; namespaces are what matters.
It appears that some people are hung up over the prefixes that get used to
represent
Hi Cezar,
thanks for your reply.
Yesterday I had a closer look into the xmlbean sources and the generated
classes.
I made a small experiment, changing the code generator such that it skipped
the synchronized(monitor()) part and some other minor changes. The result
was the expected performance
Hello,
How about such example:
I want to output very simple XML:
...
logEntry
code![CDATA[ohohod]]/code
logEntry
...
Now I am doing it this way:
...
XmlOptions opts = new XmlOptions();
opts.setUseCDataBookmarks();
final XmlLogEntry xmlEntry = XmlLogEntry.Factory.newInstance(opts);
To: user@xmlbeans.apache.org
Subject: Re: Cannot get CDATA to work
After digging into the codes, I found out that StaxUtils is responsible to
decide whether it's 'CHARACTER' or 'CDATA'. The XMLStreamReader used is
'com.sun.xml.fastinfoset.stax.StAXDocumentParser'.
It looks like that after XMLBeans
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
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
:16
To: user@xmlbeans.apache.org
Subject: RE: Replacing a document element with a fragment
I recently had a similar problem trying to parse fragment documents, and the
response I got indicated that it is not possible. If the schema does not
contain an element definition for the element you're
After digging into the codes, I found out that StaxUtils is responsible to
decide whether it's 'CHARACTER' or 'CDATA'. The XMLStreamReader used is
'com.sun.xml.fastinfoset.stax.StAXDocumentParser'.
It looks like that after XMLBeans passed the XMLDocument
to StAXDocumentParser, at line 381 of
the general idea I think.
Best Regards
-Duane
From: Danieli, Andrew [mailto:andrew.dani...@hp.com]
Sent: Tuesday, June 01, 2010 5:47 AM
To: user@xmlbeans.apache.org
Subject: Replacing a document element with a fragment
Hi,
Sorry to send this again, but I thought my accidental inclusion of RE
Hello all,
sorry, the correct xsd fragment (in the previous message) is:
xs:element name=BuildingElement type=myNS:BuildingType /
xs:complexType name=BuildingType
xs:complexContent
xs:extension base=gml:AbstractGMLType
xs:sequence
xs:element name=someElement
Hi Duane,
In order to have non-empty documents that are valid with respect to an XML
schema, a root element must be defined in the schema. This is not a
limitation of XMLBeans, but an aspect of the way that XML schema works.
If you cannot modify the schema by adding a root element
for the helpful suggestion
-Duane
[1]http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/#conformance
-Original Message-
From: Peter Keller [mailto:pkel...@globalphasing.com]
Sent: Thursday, May 27, 2010 2:53 PM
To: user@xmlbeans.apache.org
Subject: Re: XMLBean Document Objects
Hi Duane
, 2010 2:43:08 PM
Subject: RE: binding int with leading spaces
Duh?
xs:element name=accountNumber
xs:simpleType
xs:restriction base=xs:int
xs:whiteSpace value=collapse /
/xs:restriction
/xs:simpleType
/xs:element
-Original Message
yeah, I solved it with a restriction
-Original Message-
From: Soumya [mailto:soumya_...@yahoo.co.in]
Sent: Thu 5/20/2010 5:20 AM
To: user@xmlbeans.apache.org
Subject: Re: binding int with leading spaces
Hello Jason,
Did it solve your problem?
otherwise u can deifine it as string
Hi,
I'm struggling with an xml fragment processing issue. I'm using a fragment
saved to a file as a backup of an existing portion of my main XML document.
When the user chooses to restore this portion of main XML document, I just want
to overwrite the current in memory element with the
101 - 200 of 1973 matches
Mail list logo