Re: time to execute an xquery

2011-10-23 Thread Jacob Danner
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

Re: Tips for debugging XML beans - newbie

2011-10-06 Thread raminf
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

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

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

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

2011-06-23 Thread Kevin Krouse
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

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

2011-06-23 Thread Cezar Andrei
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

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

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'

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 got

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

2011-06-22 Thread Jeff Martin
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

Re: How to add standalone attribute

2011-05-12 Thread pgillen
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

Re: How to add standalone attribute

2011-05-12 Thread Kevin Krouse
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

Re: xmlsbeans 2.5 does not check sequence order ?

2011-05-04 Thread Jacob Danner
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

Re: xmlsbeans 2.5 does not check sequence order ?

2011-05-04 Thread Jerry Sy
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" + "

Re: Problem with xml files if length of file is exact 8193 bytes

2011-05-02 Thread Jerry Sy
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

Re: Problem with xml files if length of file is exact 8193 bytes

2011-04-29 Thread Jacob Danner
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

Re: How can I replace xml-fragment to my own value like Return

2011-03-11 Thread Curtis Jensen
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/

Re: How can I replace xml-fragment to my own value like Return

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()

Re: Tips for debugging XML beans - newbie

2011-02-04 Thread Jacob Danner
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,

Re: Tips for debugging XML beans - newbie

2011-02-03 Thread Nicholas W
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

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: Get Schema from Document

2011-01-28 Thread Curtis Jensen
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

Re: Get Schema from Document

2011-01-19 Thread Jacob Danner
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

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

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

2010-12-14 Thread Chris Hopkins
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

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:

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

RE: Thread-safety question

2010-12-05 Thread Pim Tjeertes
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

RE: Thread-safety question

2010-12-05 Thread Andy
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

RE: Thread-safety question

2010-12-05 Thread Pim Tjeertes
: 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

RE: Thread-safety question

2010-12-05 Thread Andy
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

RE: Problems getting started with xmlbeans

2010-11-22 Thread Duane Zamrok
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

RE: Problems getting started with xmlbeans

2010-11-22 Thread Wing Yew Poon
@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

Re: Problems getting started with xmlbeans

2010-11-22 Thread PhilNad214 PhilNad214
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

RE: Problems getting started with xmlbeans

2010-11-22 Thread Duane Zamrok
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

Re: Problems getting started with xmlbeans

2010-11-22 Thread PhilNad214 PhilNad214
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

Re: Problems getting started with xmlbeans

2010-11-22 Thread PhilNad214 PhilNad214
:* 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

RE: Problems getting started with xmlbeans

2010-11-22 Thread Duane Zamrok
...@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

RE: Problems getting started with xmlbeans

2010-11-22 Thread Wing Yew Poon
= 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

RE: Problems getting started with xmlbeans

2010-11-22 Thread Duane Zamrok
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

Re: Problems getting started with xmlbeans

2010-11-22 Thread PhilNad214 PhilNad214
@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

Re: Problems getting started with xmlbeans

2010-11-21 Thread PhilNad214 PhilNad214
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

Re: While parsing with xmlBeans, sub branch is coming null

2010-11-09 Thread olamalam
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

Re: scomp mpeg-7 schema fail

2010-11-09 Thread Fabiana Nascimento
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

Re: While parsing with xmlBeans, sub branch is coming null

2010-11-09 Thread Tim Watts
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

Re: While parsing with xmlBeans, sub branch is coming null

2010-11-08 Thread Tim Watts
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

Re: scomp mpeg-7 schema fail

2010-11-06 Thread Paul Gillen
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

Re: Getting started - parsing different types of messages and XML generation

2010-11-05 Thread PhilNad214 PhilNad214
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

RE: XMLBean not generating DocumentFactory

2010-10-29 Thread Gillen, Paul
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

Re: XMLBean not generating DocumentFactory

2010-10-29 Thread Martin Pieters
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/

Re: [XMLBean] selectPath() with XMLBeans 2.0.0-beta1 integration with Saxon-B 8.3

2010-10-22 Thread redskaut
...@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

Re: Write large files

2010-10-20 Thread Dave Shuck
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,

RE: Error compiling schema

2010-09-27 Thread Paul Cooper
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

RE: Error compiling schema

2010-09-27 Thread Gillen, Paul
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

RE: Error compiling schema

2010-09-27 Thread Paul Cooper
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

Re: Error compiling schema

2010-09-27 Thread pgillen
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

RE: Error compiling schema

2010-09-24 Thread Paul Cooper
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

RE: Error compiling schema

2010-09-24 Thread Tim Watts
@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

RE: Error compiling schema

2010-09-24 Thread Paul Cooper
] 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

RE: Error compiling schema

2010-09-24 Thread Paul Cooper
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

RE: Error compiling schema

2010-09-24 Thread Wing Yew Poon
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

RE: Error compiling schema

2010-09-24 Thread Paul Cooper
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

RE: Error compiling schema

2010-09-23 Thread Wing Yew Poon
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

2010-09-23 Thread Paul Cooper
: 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

Re: Fast Infoset

2010-09-12 Thread Tim Watts
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,

Re: Fast Infoset

2010-09-12 Thread sub3
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

Re: Fast Infoset

2010-09-12 Thread Dennis Sosnoski
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

RE: parse fails on doc xmlbeans just saved

2010-08-30 Thread Duane Zamrok
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

RE: parse fails on doc xmlbeans just saved

2010-08-30 Thread Tim Watts
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

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:

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

RE: Removing an XML element

2010-08-17 Thread Duane Zamrok
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

Re: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl problem in Equinox

2010-08-15 Thread chlee
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

Re: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl problem in Equinox

2010-08-12 Thread Srijith Kochunni
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,

Re: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl problem in Equinox

2010-08-12 Thread chlee
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

Re: org.apache.xmlbeans.impl.values.XmlAnyTypeImpl problem in Equinox

2010-08-12 Thread Srijith Kochunni
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

Re: Removing namespaces at the element level

2010-08-10 Thread mARK aNDREWS
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:

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:

RE: XMLBeans does not correctly propagate namespaces

2010-08-02 Thread Geir.Ovsttun
___ 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

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

RE: XMLBeans does not correctly propagate namespaces

2010-07-10 Thread Paul Gillen
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

RE: XMLBeans does not correctly propagate namespaces

2010-07-09 Thread Scott Hinkelman
. 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

Re: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Justin Bailey
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

RE: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Duane Zamrok
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

Re: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Justin Bailey
? :( 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

RE: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Duane Zamrok
@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

RE: Bad performance using multiple threads

2010-06-23 Thread choel
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

Re: CDATA Example

2010-06-21 Thread wodzuuu
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);

RE: Cannot get CDATA to work

2010-06-09 Thread Cezar Andrei
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

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

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

RE: Replacing a document element with a fragment

2010-06-02 Thread Danieli, Andrew
: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

Re: Cannot get CDATA to work

2010-06-01 Thread Christopher Cheng
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

RE: Replacing a document element with a fragment

2010-06-01 Thread Duane Zamrok
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

Re: InvocationTargetException problem

2010-05-27 Thread Dejan Antanaskovic
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

Re: XMLBean Document Objects

2010-05-27 Thread Peter Keller
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

RE: XMLBean Document Objects

2010-05-27 Thread Duane Zamrok
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

Re: binding int with leading spaces

2010-05-20 Thread Soumya
, 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

RE: binding int with leading spaces

2010-05-20 Thread Jason Berk
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

Re: replacing a document element with a fragment

2010-05-20 Thread Danieli, Andrew
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

<    1   2   3   4   5   6   7   8   9   10   >