RE: Problems getting started with xmlbeans

2010-11-22 Thread Wing Yew Poon
: Problems getting started with xmlbeans Based upon the schema, your code, and my experience I would expect you to get something like the following. That said, Wing Yew Poon may have hit upon the problem when he mentioned that you're looking at a tutorial for 1.0. I advise you to take a

RE: Problems getting started with xmlbeans

2010-11-22 Thread Wing Yew Poon
Phil, a couple of remarks: 1. It appears that the tutorial you were looking at - http://xmlbeans.apache.org/documentation/tutorial_getstarted.html - was written for XMLBeans 1.0.x. I have not used 1.0.x. I'm not sure if the files referred to in the tutorial are distibuted with 1.0.x or not, but th

RE: Error compiling schema

2010-09-24 Thread Wing Yew Poon
turns out he was referencing the same bug I referenced below, so there is a high probability that he had no idea what he was talking about. Nonetheless, we are clearly having a problem. Paul From: Wing Yew Poon [mailto:wing.yew.p...@oracle.com] Sent: Thursday, September 23, 2010 10:26

RE: Error compiling schema

2010-09-24 Thread Wing Yew Poon
Paul, since it appears that your former co-worker was thinking of a different bug than the truncation problem you're seeing, there is no gain for you to live on the bleeding edge of XMLBeans. Why don't you try using the released XMLBeans 2.5.0 and recompile your schema? Let us know if compilatio

RE: Error compiling schema

2010-09-23 Thread Wing Yew Poon
ed in version 2.5..we'd have to download the source and build it ourselves. Prior to building and deploying the most recent source, we were having this truncation problem on every one of these records. Now, we get it randomly. Thanks for the quick response! Paul From: Wing Yew Poon

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 XMLBea

RE: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Wing Yew Poon
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 the namespaces ("the correct namespace prefix"). If your (or your customer's) code rel

RE: XmlBean object confusion

2010-04-29 Thread Wing Yew Poon
Soumya, Peter was right. Your problem is that both schemas have the same target namespace (i.e., no namespace), so you can't use them together, The second schema happened to be loaded after the first and shadowed it. Thus when you tried to parse the xml instance of the first schema, XMLBeans did

RE: Xmlbeans errors for empty int tag

2010-03-24 Thread Wing Yew Poon
Of course, then you do have the inconvenience of having to convert the file_id string to and from an int value, if indeed you are working with ints, but that is the tradeoff. _ From: Wing Yew Poon Sent: Wednesday, March 24, 2010 10:50 AM To: user@xmlbeans.apache.org Subject: RE

RE: Xmlbeans errors for empty int tag

2010-03-24 Thread Wing Yew Poon
Making file_id nillable in the schema does not help since the web service is still going to output , not . (The web service does not follow the schema, the schema is only for generating XMLBeans, if I understood correctly.) I think file_id should not be of type xs:int, since is a possible outp

RE: Saxon integration 2.4.0 uses saxon 9 and 2.5.0 uses SaxonB 8.6.1 .. what about the latest version of saxon 9.2 Help me sorting that out

2010-03-17 Thread Wing Yew Poon
David, XMLBeans 2.5.0 supports the same version of Saxon as XMLBeans 2.4.0 does. If you read otherwise, that is a mistake. I expect that the behavior you are seeing will be the same if you use XMLBeans 2.5.0 instead of 2.4.0, with Saxon being constant. It could be a bug in Saxon, given that the

RE: xmlbeans with java 6

2010-03-04 Thread Wing Yew Poon
de in java 6. My project is using java 1.6 in the build path which breaks the ant task. I guess I could use 1.6 and in eclipse specify 1.5 compatibility...but that seems "wrong" Make sense? Jason -----Original Message- From: Wing Yew Poon [mailto:wing.yew.p...@oracle.com] Sent:

RE: xmlbeans with java 6

2010-03-04 Thread Wing Yew Poon
Jason, I believe that if you specify 1.5, the generated source can be used with 1.6. Please try it and see. - Wing Yew -Original Message- From: Jason Berk [mailto:jb...@purdueefcu.com] Sent: Thursday, March 04, 2010 10:42 AM To: user@xmlbeans.apache.org Subject: xmlbeans with java 6 Rega

RE: XMLBeans source code

2010-03-03 Thread Wing Yew Poon
Hi Aman, building XMLBeans requires a bootstrap process, where we use an existing (older) xbean.jar to compile the schema for XML Schema, as there are classes that use the XMLBeans-generated java classes for that schema. You can check http://svn.apache.org/viewvc/xmlbeans/trunk/external/lib/oldxbea

RE: xsi:type stripped under Tomcat?

2010-02-25 Thread Wing Yew Poon
Matthew, you might try posting to the Axis2 mailing list. - Wing Yew   _   From: Matthew Gamble [mailto:mgam...@primustel.ca] Sent: Thursday, February 25, 2010 6:48 AM To: user@xmlbeans.apache.org Subject: Re: xsi:type stripped under Tomcat? Doing some further testing on my own, I've narro

RE: Decimal rounding issue

2010-01-15 Thread Wing Yew Poon
Nick, this is a pure Java question, nothing to do with XMLBeans really. You are using the BigDecimal(double) constructor; you probably want to use the BigDecimal(String) constructor. The phrase to keep in mind is: decimal representation of binary floating point value. See http://java.sun.com/j2se/

RE: jaxb to xmlbeans : xmlbeans fail on xs:any

2009-12-30 Thread Wing Yew Poon
idn't broke the order.. I had to be order less. is it OK ? 2009/12/30 Wing Yew Poon mailto:wing.yew.p...@oracle.com"wing.yew.p...@oracle.com> It is not weird. And there is nothing weird with XMLBeans. The XMLBeans error tells you exactly what the problem is. If you encounter an

RE: jaxb to xmlbeans : xmlbeans fail on xs:any

2009-12-30 Thread Wing Yew Poon
It is not weird. And there is nothing weird with XMLBeans. The XMLBeans error tells you exactly what the problem is. If you encounter an error from XMLBeans, I'd advise you to first look to see what you may be doing wrong, instead of thinking XMLBeans is doing something wrong. In this case, your

RE: XML Beans - Escape Chars

2009-12-16 Thread Wing Yew Poon
First Name & Last Name is simply not valid xml. That is why you get an exception when you try to parse it. The '&' needs to be escaped, e.g., as "&". The setSaveSubstituteCharacters option has nothing to do with unmarshalling, only with marshalling. -Original Message- From: YesKay [mailt

RE: Suggestions for out of memory error on xml bean ant task?

2009-12-02 Thread Wing Yew Poon
Just an idea: I have sometimes found that using a different JDK helps, e.g., use JRockit instead of Sun's JDK. _ From: Dave Shuck [mailto:dsh...@gmail.com] Sent: Wednesday, December 02, 2009 3:16 PM To: user@xmlbeans.apache.org Subject: Suggestions for out of memory error on xml bean an

RE: XML-BEANS compiled schema: Incompatible minor version - expecting up to 23, got 24

2009-10-23 Thread Wing Yew Poon
Well, the error message is pretty clear. The xmlbeans your runtime is using has an earlier version than the version of xmlbeans used to compile your schema. You can use schema jars compiled with older versions of xmlbeans than your runtime, but not with newer. The situation is analogous to that of

RE: Invalid escaping of XML

2009-10-02 Thread Wing Yew Poon
Jacob is correct. Only the '<' needs to be escaped, not the '>'. XML predefines exactly 5 entity references: < & > " ' but only < and & must be used instead of the literal characters in element content; the others are optional, with the exception that the 3-character sequence "]]>" cannot appear

RE: Illegal XML character: 0x1c inside CDATA

2009-08-25 Thread Wing Yew Poon
Bartolomeo, CDATA just means character data; a CDATA section demarcates a block of character data. The character data still have to be in some character encoding. If your xml declaration has an encoding attribute that tells the xml parser what character encoding your document is using, then the par

RE: ID and IDREF validation error

2009-07-01 Thread Wing Yew Poon
Bala, can you please post your schema, xml instance, and java code? Thanks, Wing Yew _ From: bchalla [mailto:balu_cha...@yahoo.co.in] Sent: Wednesday, July 01, 2009 10:04 AM To: user@xmlbeans.apache.org Subject: ID and IDREF validation error Hi, I am getting a strange problem saying ID

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
Hunt [mailto:hu...@internode.on.net] Sent: Monday, June 15, 2009 4:26 PM To: Wing Yew Poon Cc: user@xmlbeans.apache.org Subject: RE: Xpath/Saxon classpath issue? Hi Wing Yew, On 16/06/2009, at 3:42 AM, HYPERLINK "mailto:user-digest-h...@xmlbeans.apache.org"user-digest-h...@xmlbeans.apache.org wrote:

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
> P.S. I find it a little bewildering that xmlbeans doesn't utilise Maven given > its Apache status. There is no law that says that Apache projects must use Maven. Ant is an Apache project too. XMLBeans has been using Ant for years, and it serves its purpose just fine. --

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
0.jar and 9.1.0.6 saxon jars. A 2.3.0 xbean.jar is not going to recognize the glue code in a 2.4.0 xbean_xpath.jar, nor Saxon 9. _ From: Wing Yew Poon Sent: Monday, June 15, 2009 10:42 AM To: user@xmlbeans.apache.org Subject: RE: Xpath/Saxon classpath issue? I don't use maven an

RE: Xpath/Saxon classpath issue?

2009-06-15 Thread Wing Yew Poon
I don't use maven and it's too hard for me to read the classpath you include, but you not only need saxon9.jar and saxon9-dom.jar, you need xbean_xpath.jar. The xbean_xpath.jar comes with the XMLBeans 2.4.0 binary distribution. And yes, it is a classpath issue. - Wing Yew _ From: Chris

RE: Escaped characters problem

2009-06-10 Thread Wing Yew Poon
In XML, the character data inside an element must not contain a raw unescaped open angle bracket (<); this character is always interpreted as the start of a tag. If you need to use this character, you can escape it using the built-in entity reference < (or the numeric or hexadecimal numeric charact

RE: xpath on copy of an object fails

2009-05-22 Thread Wing Yew Poon
Bryan, XMLBeans 2.4.0 supports Saxon 9 and has been tested specifically with Saxon 9.0.0.4; it does not support Saxon 8 because of incompatible API changes from Saxon 8.8 to 9.0. XMLBeans 2.3.0 supports Saxon 8.8, as you know. The behavior you describe sounds like a bug. Please open an issue in JIR

RE: Navigating Untyped XmlObject with XmlCursor

2009-03-12 Thread Wing Yew Poon
> Is there a way to create a document type XmlObject which has the root > element "elem1" and it shows up in the xmlText() along with the previously > selected contents? Kapil, it may help if you read http://xmlbeans.apache.org/docs/2.0.0/guide/conJavaTypesGeneratedFromUserDerived.html. First of

RE: Removing CData from XML Elements

2009-03-11 Thread Wing Yew Poon
Radu, don't you think he means when marshalling XMLBeans to xml (rather then unmarshalling from xml)? On another subject, do you know the answer to the user question about missing generated methods (according to the user guide)? - Wing Yew -Original Message- From: Radu Preotiuc [mailto:rad

RE: Missing methods in code generation

2009-03-10 Thread Wing Yew Poon
Geir, is RuleType a simple type? - Wing Yew From: geir.ovst...@dnv.com [mailto:geir.ovst...@dnv.com] Sent: Tuesday, March 10, 2009 8:11 AM To: user@xmlbeans.apache.org Subject: Missing methods in code generation Hi, With reference to the following page from t

RE: " FAILED on declare namespace" error

2009-01-02 Thread Wing Yew Poon
on9-dom.jar. One of the problems that I found with saxon9 is that I couldn't find it in any public maven repository, which makes it a little more difficult. -S On Jan 2, 2009, at 3:37 PM, Wing Yew Poon wrote: > Shawn, > that indicates that you're missing the Saxon stuff on yo

RE: " FAILED on declare namespace" error

2009-01-02 Thread Wing Yew Poon
Shawn, that indicates that you're missing the Saxon stuff on your classpath. You need the glue code XMLBeans supplies (xbean_xpath.jar) along with saxon9.jar and saxon9-dom.jar. Also, to clarify, it would seem that this is not a build problem, this is a runtime problem. So it is your runtime classp

RE: Testing the element's existence

2008-12-12 Thread Wing Yew Poon
Ben, when you defined your elements and attributes, you probably only declared the minimal required attributes. E.g., when declaring an element, you could declare its minOccurs and maxOccurs, but you do not need to and they both default to 1 (which means NOT optional); when declaring an attribut

RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime

2008-11-25 Thread Wing Yew Poon
Asaf, If I understand you right, you have compiled the schema (using scomp), resulting in a jar (containing the generated XMLBeans classes and other artifacts), which is in your runtime classpath, and you want to access the schema document at runtime. The following methods should be helpful to y

RE: xmlbeans schema validation page

2008-11-21 Thread Wing Yew Poon
Alessandro, if you're referring to the site, http://xmlbeans.webappshosting.com/schemaToolsV2, sadly, it is not being maintained. You can still use the standard utilities that come in the bin directory of the xmlbeans distribution. - Wing Yew From: Alessandro B

RE: Multiple output files with inst2xsd?

2008-10-24 Thread Wing Yew Poon
a single xsd called schema0.xsd. Maybe this is a bug? -Original Message----- From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 5:00 PM To: user@xmlbeans.apache.org Subject: RE: Multiple output files with inst2xsd? Jeremy, I don't understand why you have a problem. A

RE: Multiple output files with inst2xsd?

2008-10-24 Thread Wing Yew Poon
et 4 files; the first 3 correspond to the 3 instances (but not necessarily in that order), and the 4th, schema3.xml, correspond to a schema for all 3 instances together. Nevertheless, you do get xsds for each instance (together with one for all instances combined). -Original Message----- From

RE: Multiple output files with inst2xsd?

2008-10-24 Thread Wing Yew Poon
Jeremy, I don't understand why you have a problem. As Cezar wrote, if you do inst2xsd file0.xml file1.xml file2.xml you get schema0.xsd schema1.xsd schema2.xsd [Btw, you can specify -outDir [dir] - Directory for output files. Default is '.' -outPrefix [file_name_prefix] - Prefix for ou

RE: elements having attribute and text

2008-09-23 Thread Wing Yew Poon
Shishupal, this is a basic XML Schema question, nothing to do with XMLBeans really. The structure you want is indeed a complex type, so you cannot declare its type to be xs:string, which is a simple type. Also, you're trying to define the type in-line within the element declaration (i.e., as an a

RE: add a comment before an element

2008-09-11 Thread Wing Yew Poon
Hagai, you can use XmlCursor to navigate to the position where you want to add a comment and call insertComment(String). See http://xmlbeans.apache.org/docs/2.0.0/guide/conNavigatingXMLwithCursors.html and http://xmlbeans.apache.org/docs/2.0.0/reference/org/apache/xmlbeans/XmlCursor.html#insertCom

RE: How to keep line feeds with XmlOptions?

2008-09-08 Thread Wing Yew Poon
What is the type of the content attribute? From: Xing, Charlie [mailto:[EMAIL PROTECTED] Sent: Monday, September 08, 2008 1:58 AM To: user@xmlbeans.apache.org Subject: How to keep line feeds with XmlOptions? Hi: I have string like: String demoString

RE: XQueryXPath Sample Error

2008-04-02 Thread Wing Yew Poon
tml. <http://xmlbeans.apache.org/sourceAndBinaries/index.html> I copied the Saxon jars from the svn check out to the binary download and still got the same problem. So: * svn co works * Binary download fails Thanks Tom Wing Yew Poon wrote: Tom, what versions

RE: XQueryXPath Sample Error

2008-04-02 Thread Wing Yew Poon
Tom, what versions of XMLBeans and Saxon are you using? and what saxon jars do you have on your classpath? - Wing Yew -Original Message- From: Tom Purcell [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 9:24 AM To: user@xmlbeans.apache.org Subject: XQueryXPath Sample Error Hell

RE: Imported, included schemas

2008-03-19 Thread Wing Yew Poon
Denis, when you compile your schema in xmlbeans (using scomp), you get a jar. Inside this jar, there will be a copy of the xsd file containing your schema. SchemaType.getSourceName() returns a string which is the path to this file in the jar. One of the points Radu was making is that you should not

RE: Scientific notation decimal type

2008-03-14 Thread Wing Yew Poon
Ahh, I think I understand the source of your problem. You're using JDK 1.5 (or higher?). XMLBeans is designed to work for JDK 1.4 (and built with 1.4 for the binary distribution). There was a change in java.math.BigInteger and java.math.BigDecimal (so this problem affects xs:integer too) from 1.4 t

RE: [is this a bug?] Re: xs:string - Isn't whitespaces preserved by default?

2008-03-12 Thread Wing Yew Poon
Well, that's a crucial piece of information that you left out of your original question - you were using xmlText(XmlOptions), not xmlText() - and that's why you led others on a wild goose chase. This is NOT a bug then. Pretty print by its nature (by design) does not preserve whitespace. If you need

RE: Special character issues

2008-03-06 Thread Wing Yew Poon
" is a predefined entity reference in XML. It is equivalent in XML to the " character in character data. That is the whole point of the entity. If you want the literal """ then you should escape it as """. - Wing Yew From: Roch B [mailto:[EMAIL PROTECTED] Se

RE: saving xml withour namesapce

2008-02-29 Thread Wing Yew Poon
Namespaces are your friends. Why do you want to get rid of them? From: temp temp [mailto:[EMAIL PROTECTED] Sent: Friday, February 29, 2008 3:03 PM To: user@xmlbeans.apache.org Subject: saving xml withour namesapce Xml Beans saves xml with the namespace. http

RE: Applying XPath to an XML with or without namespace

2008-02-22 Thread Wing Yew Poon
Sorry, typo - the query should have been "declare default element namespace 'mynamespace'; /a/b". ________ From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 11:11 AM To: user@xmlbeans.apache.org Subject: RE: Applying XPa

RE: Applying XPath to an XML with or without namespace

2008-02-22 Thread Wing Yew Poon
Pascal, in what you have is every element within and including a being qualified as having the namespace "mynamespace". Thus, the XPath must qualify the elements too. This is only logical. There are a couple of ways you can qualify the elements in the XPath. You can use the prolog you have

RE: SchemaType.getSourceName()

2008-02-15 Thread Wing Yew Poon
Denis, Jacob is correct. When you scomp an xsd, the xsd itself is archived inside the jar that is produced. SchemaType.getSourceName() will return a String containing the path to the xsd (in this jar), relative to schemaorg_apache_xmlbeans/src/. You are not meant to "decode" this string. Perhaps yo

RE: How to apply an xpath query to a document ?

2008-02-14 Thread Wing Yew Poon
Pascal, I don't know which README you refer to. It is possible that it is out-of-date. If you read the FAQ, you will see that for XMLBeans 2.3, to work with Saxon (8.8 is supported), you need saxon8.jar and saxon8-dom.jar, along with xbean_xpath.jar and the other jars in the XMLBeans distribution.

RE: how to restrict validation to part of the W3C schema?

2008-02-12 Thread Wing Yew Poon
Dave, the xs:any can have a namespace attribute, which, if not present, defaults to "##any", which means that the content can be in any namespace whatsoever or no namespace. I think that solves your problem. - Wing Yew -Original Message- From: dave [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Whitespace is not preserved

2008-01-28 Thread Wing Yew Poon
As previously explained, the pretty print feature does not preserve white space. If you think about it, it's an unavoidable trade-off (that is to say, one that cannot always be avoided). On the other hand, the pretty print feature only affects the marshalling. The true infoset is still accessible.

RE: required Jars to process Keyref constraint validation..

2007-12-05 Thread Wing Yew Poon
Yes, Dave, you should be fine with just the xbean.jar and jsr173_1.0_api.jar. If you intend to invoke any but the simplest xpath/xquery expressions, you need xbean_xpath.jar, saxon8.jar and saxon8-dom.jar. You can use Saxon 8.8. That is known to work with XMLBeans 2.3. xbean_xpath.jar contains the

RE: Writing portions of an xml file

2007-12-05 Thread Wing Yew Poon
Are you referring to writing an xml-fragment? If you have an XmlObject, not the document, but a child object, you can certainly save it, and it would be marshalled as an xml-fragment. - Wing Yew From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, D

RE: Saxon, JAXP and classpath

2007-12-03 Thread Wing Yew Poon
The problem with Saxon is that it makes non-backward-compatible API changes from one dot release to another (8.x to 8.y). XMLBeans 2.3.0 was tested with Saxon 8.8, so we know that it works with that version of Saxon. We cannot guarantee that it works with 8.9 if incompatible changes have been intro

RE: XML generation

2007-12-02 Thread Wing Yew Poon
The reason XmlTokenSource.xmlText() does not include the xml header is because it returns a string rather than writing to an OutputStream as save(OutputStream) does, for example, so the encoding is not known. When you call save(OutputStream) or similar methods, then the xml header will be written w

RE: Controlling encoding/escaping of an attribute

2007-11-13 Thread Wing Yew Poon
Garth, what you need is XmlOptionCharEscapeMap. See http://xmlbeans.apache.org/docs/2.1.0/reference/org/apache/xmlbeans/XmlO ptionCharEscapeMap.html. E.g., XmlOptionCharEscapeMap escapes = new XmlOptionCharEscapeMap(); escapes.addMapping('A', XmlOptionCharEscapeMap.HEXADECIMAL);

RE: Xpath help

2007-11-08 Thread Wing Yew Poon
Joe, I am able to run the XQueryXPath samples just fine with the XMLBeans 2.3.0 release. I have saxon8.jar and saxon8-dom.jar in my classpath. I am using Saxon 8.8. The jars needed are documented in the XMLBeans FAQ: http://wiki.apache.org/xmlbeans/XmlBeansFaq#whatJars - Wing Yew _

RE: xmlbeans beginner - help

2007-11-06 Thread Wing Yew Poon
imorales, I think you're looking for something that XMLBeans is not designed for. It sounds like you want to start with a POJO class and somehow automagically get something like an XmlObject out of it. There is no mechanism to do that. What Cezar wrote about is the capability of XMLBeans to parse x

RE: DateTime objects

2007-10-19 Thread Wing Yew Poon
hecking and any other data manipulation necessary or can this all be managed from the .xsd file? Thanks, Steven On Oct 19, 2007, at 2:24 PM, Wing Yew Poon wrote: > It is the lexical representation of xs:dateTime that XML Schema > specifies. You may want to consult a reference on the

RE: DateTime objects

2007-10-19 Thread Wing Yew Poon
19, 2007, at 1:27 PM, Wing Yew Poon wrote: > The error is exactly as it says: > > Invalid date value: 2006-10-16 11:15:33 > > You want something like "2006-10-16T11:15:33". > - Wing Yew > > -Original Message- > From: Steven Crosley [mailto:[EMAIL PROTEC

RE: DateTime objects

2007-10-19 Thread Wing Yew Poon
The error is exactly as it says: Invalid date value: 2006-10-16 11:15:33 You want something like "2006-10-16T11:15:33". - Wing Yew -Original Message- From: Steven Crosley [mailto:[EMAIL PROTECTED] Sent: Friday, October 19, 2007 10:39 AM To: user@xmlbeans.apache.org Subject: DateTime obj

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

2007-10-10 Thread Wing Yew Poon
Yes I get mustUnderstand="true" instead of mustUnderstand="1" Valerie "Wing Yew Poon" <[EMAIL PROTECTED]> 09/10/

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

2007-10-10 Thread Wing Yew Poon
e the value as a numeric value. Cheers, Albert At 05:16 AM 10/10/2007, you wrote: Yes I get mustUnderstand="true" instead of mustUnderstand="1" Valerie "Wing Yew Poon" <[EMAIL PROTECTED]>

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

2007-10-10 Thread Wing Yew Poon
instead of mustUnderstand="1" Valerie "Wing Yew Poon" <[EMAIL PROTECTED]> 09/10/2007 21:40 Veuillez répondre à user Pour : cc : Objet :RE: Problem with boolean type Valerie, what exactly is t

RE: Problem with boolean type

2007-10-09 Thread Wing Yew Poon
Valerie, what exactly is the incorrect behavior you are seeing? Are you saying that the xml that is marshalled is incorrect after calling the setter? i.e., you call setMustUnderstand(true) and the xml shows mustUnderstand="true" instead of mustUnderstand="1"? - Wing Yew ___

RE: Problem with XMLCalendar

2007-09-21 Thread Wing Yew Poon
This is not a bug. java.util.Calendar.MONTH is 0-based. See http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.util.Calendar.JANUARY . - Wing Yew From: Lew

RE: General question

2007-08-17 Thread Wing Yew Poon
/values/XmlObjectBase.java in the svn repository. - Wing Yew -Original Message- From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: Friday, August 17, 2007 11:01 AM To: user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: RE: General question >From the archives: -- F

RE: General question

2007-08-17 Thread Wing Yew Poon
>From the archives: -- From"Radu Preotiuc-Pietro" <[EMAIL PROTECTED]> Subject RE: Serialization (again) DateWed, 12 Oct 2005 22:53:03 GMT I think the definitive answer is: - generated Java classes are serializable and the serialization format is XML, so that when you dese

RE: How to specify package name from Ant task?

2007-06-15 Thread Wing Yew Poon
Bo, the typesystemname attribute is not for the purpose of specifying the package name for your generated classes; it is for specifying the package name of the TypeSystemHolder class, which is a class that is not generated in the src, but only as a compiled class file in the jar. For the purpose of

RE: Sequence maxOccurs="unbounded" doesn't generate a valid XML (v2.0)

2007-05-21 Thread Wing Yew Poon
String text = doc.xmlText(new XmlOptions().setSavePrettyPrint()); System.out.println(text); System.out.println(doc.validate()); The result is: Name1 Value1 Name2 Value2 Name3 Value3 true XMLBeans doesn't do everything automagically for you. Schemas can get

RE: Two newbie questions

2007-03-29 Thread Wing Yew Poon
Diego, 1. If you do scomp -src -srconly -d then the java files are generated in the srcdir you specify and the binary files, including the TypeSystemHolder.class, are generated in the bindir you specify. When you compile and use the java files, make sure you include the files in the bindir in

RE: Ordering Issues with XMLBeans

2007-03-29 Thread Wing Yew Poon
Orville, XMLBeans uses the schema. In your schema, the type of the LevelOne element is defined as a sequence. In a sequence, the order of the elements matter. XMLBeans is working correctly. If you don't want the order to matter, you should rewrite your schema, e.g.,

RE: Parser corruption?

2007-03-17 Thread Wing Yew Poon
Garth, if you open the xbean.jar from the release, you will find a manifest under meta-inf, and if you open the manifest, you will see the svn revision number in the version: 2.2.0-r413705. So the release was built from revision 413705. - Wing Yew -Original Message- From: Garth Patil [mail

RE: Help me to get proper value in generated XML fpr xs:gYear data type

2007-02-13 Thread Wing Yew Poon
Arun Kumar, try doing the following instead: Calendar calendar = Calendar.getInstance(); calendar.clear(); // this clears the fields, including Calendar.ZONE_OFFSET calendar.set(Calendar.YEAR, 2008); dateOfBirthType.setBirthYear(calendar); - Wing Yew _

RE: how to unregister

2006-12-12 Thread Wing Yew Poon
It says right there - "To unsubscribe, e-mail: [EMAIL PROTECTED]" - doesn't that work? -Original Message- From: Jun Victorio [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 8:56 AM To: user@xmlbeans.apache.org Subject: RE: how to unregister Same as me, been trying for ages bu

RE: newbie

2006-12-04 Thread Wing Yew Poon
Andrey, user questions should be posted to the user list. You might find it useful to look through the posts on that list, as your question may already have been answered. You can look at http://xmlbeans.apache.org/samples/index.html for samples. - Wing Yew -Original Message- From: Konus

RE: Updating source doc after XPath search

2006-10-10 Thread Wing Yew Poon
Robert, you can accomplish what you want using XmlObject.selectPath(). Take a look at the samples under XQueryXPath, in particular, org.apache.xmlbeans.samples.xquery.SelectPath. - Wing Yew -Original Message- From: Robert W. Wade [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 8:

RE: Backward compatibility

2006-09-18 Thread Wing Yew Poon
Yes, it should be. From: asaf lahav [mailto:[EMAIL PROTECTED] Sent: Sunday, September 17, 2006 4:37 AMTo: user@xmlbeans.apache.orgSubject: Backward compatibility   Is XMLBeans 2.2.0 backward compatible to XMLBeans 2.0.0? >>Register now for BEA World 2006 --- See http://www.bea.com/beawor

RE: Querying Default values using XPath

2006-08-29 Thread Wing Yew Poon
I would say that that is the expected behavior. XMLBeans is schema-aware. XPath is not. XPath operates on what is in your xml document, and if the attribute is not there, it won't find it. - Wing Yew -Original Message- From: cbryant [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 200

RE: How i can keep the CDATA elements

2006-08-04 Thread Wing Yew Poon
Title: How i can keep the CDATA elements XMLBeans does not preserve CDATA sections. This has been addressed most recently on this mailing list by the following posts:   From: Lewis, David [mailto:[EMAIL PROTECTED] Sent: July 20, 2006 3:19 PMTo: user@xmlbeans.apache.orgCc: Murphy, EricS

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

2006-08-04 Thread Wing Yew Poon
Perhaps you are not logged in? Anyone is free to find issues. You must register and login if you want to create, comment, vote, or watch issues. - Wing Yew -Original Message- From: Ken Robinson [mailto:[EMAIL PROTECTED] Sent: Friday, August 04, 2006 9:37 AM To: user@xmlbeans.apache.org S

RE: why are > and apostroph not escaped in attributes ?

2006-07-27 Thread Wing Yew Poon
Maarten, I believe you are correct that xmlbeans 2.0.0 did not escape the '>' in "]]>" when it's not the end of a CDATA section. This was fixed in 2.1.0. See http://issues.apache.org/jira/browse/XMLBEANS-192. Frank, since you obviously have looked at xmlbeans src, take a look at test/src/misc/deta

RE: Error running scomp

2006-07-26 Thread Wing Yew Poon
Please see the FAQ: http://wiki.apache.org/xmlbeans/XmlBeansFaq#scompFindingJavac - Wing Yew   From: XMLBeans_Newbie [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 3:16 AMTo: user@xmlbeans.apache.orgSubject: Error running scomp Hi,   I just started using xmlbeans. I get the follo

RE: Help with xmlbeans 2.2.0

2006-07-24 Thread Wing Yew Poon
beans 2.2.0 I am using JDK1.4.2_03, myself.   Radu From: Tony Dean [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 3:30 PMTo: user@xmlbeans.apache.orgSubject: RE: Help with xmlbeans 2.2.0 Wing Yew,   Are you using 1.4.x or 1.5 jre?  Maybe that makes a difference. From: Wing Yew Poon [m

RE: Help with xmlbeans 2.2.0

2006-07-24 Thread Wing Yew Poon
Från: Tony Dean [mailto:[EMAIL PROTECTED]Skickat: må 2006-07-24 14:02Till: user@xmlbeans.apache.orgÄmne: RE: Help with xmlbeans 2.2.0 yes, I didn't have sasxon-dom.jar at first, but added it and it still fails with classcast exception.-Original Message-----From: Wing Yew Poon [mailto:[

RE: schema jars

2006-07-23 Thread Wing Yew Poon
Yes, that is correct. When the java compiler compiles the code generated by xmlbeans from the schema(s), it uses what you pass in under the -cp option for the classpath, if the -cp option is used; and so you need xbean.jar there.   Wing Yew From: sri [mailto:[EMAIL PROTECTED] Sent: Friday

RE: Help with xmlbeans 2.2.0

2006-07-23 Thread Wing Yew Poon
Tony, do you have both saxon8.jar and saxon8-dom.jar in your classpath? - Wing Yew -Original Message- From: Tony Dean [mailto:[EMAIL PROTECTED] Sent: Saturday, July 22, 2006 5:00 PM To: dev@xmlbeans.apache.org; user@xmlbeans.apache.org Subject: RE: Help with xmlbeans 2.2.0 Radu, Thanks

RE: XMLBeans 2.2.0 and SaxonB8.6.1 - selectPath() nol longer working?

2006-07-03 Thread Wing Yew Poon
Jon, since you were using xmlbeans 2.1 before, presumably you have xbean.jar and jsr173_1.0_api.jar in your classpath, together with xbean_xpath.jar and saxon8.jar; now you need saxon8-dom.jar as well. If you have all the jars in your classpath and are experiencing your problem, then I don't know

RE: Saxon Download link on install instructions page

2006-07-03 Thread Wing Yew Poon
Jon, thanks for pointing this out. I think one of the xmlbeans developers can take care of this when they see this mail. However, for your reference, you can file issues/bugs in the xmlbeans jira tracking system. See the xmlbeans website under bug-tracking. - Wing Yew Poon -Original Message

RE: Dynamically generating java classes from XSD file using XmlBeans

2006-06-30 Thread Wing Yew Poon
Arif, Nathan is right. If you look at the scomp script, it basically calls java on org.apache.xmlbeans.impl.tool.SchemaCompiler with your arguments. Look at the xmlbeans source in the svn repository. SchemaCompiler.java is under the src/xmlcomp/ hierarchy. SchemaCompiler has a static nested class S

RE: [VOTE] Release of XMLBeans 2.2.0

2006-06-20 Thread Wing Yew Poon
+1 (non-binding) -Original Message- From: Cezar Andrei Sent: Monday, June 19, 2006 10:12 PM To: dev@xmlbeans.apache.org; user@xmlbeans.apache.org; XML-Beans PMC Subject: [VOTE] Release of XMLBeans 2.2.0 Please send your vote for the release of XMLBeans version 2.2.0, as it currently exis

FW: svn commit: r413705 - in /xmlbeans/trunk: CHANGES.txt xkit/README.txt

2006-06-12 Thread Wing Yew Poon
> Is there a circulating list of the bug fixes and enhancements for v2.2? I think the message below may answer your question. - Wing Yew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 9:43 AM To: [EMAIL PROTECTED] Subject: svn commit: r41

RE: Problem with XMLBeans using Java 1.5 when creating documents with small numbers

2006-06-06 Thread Wing Yew Poon
#toString(), but toPlainString() was added to BigDecimal in JDK 1.5 and is not available in 1.4, and XMLBeans supports JDK 1.4. I think http://issues.apache.org/jira/browse/XMLBEANS-175 is essentially the same issue that you raise. - Wing Yew -Original Message- From: Wing Yew Poon Sent: Tuesday

RE: Problem with XMLBeans using Java 1.5 when creating documents with small numbers

2006-06-06 Thread Wing Yew Poon
Ian, what version of XMLBeans are you using? do you build XMLBeans yourself (with JDK 1.5)? or do you use a binary distribution? - Wing Yew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 7:44 AM To: user@xmlbeans.apache.org Subject: Probl

  1   2   >