RE: xmlbeans beginner - help

2007-11-07 Thread imorales
@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help XStream does exactly what you want. Paul -Original Message- From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: 06 November 2007 19:34 To: user@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help imorales, I

RE: xmlbeans beginner - help

2007-11-06 Thread imorales
Is there any way to get from Java classes without XML schema and vice versa? Thanks. Schalk Neethling-4 wrote: You will more then likely have to start with a schema. So define your schema and the from this generate your XMLBean which will give you object A, you can then populate object A

RE: xmlbeans beginner - help

2007-11-06 Thread Cezar Andrei
the XmlObject without a schema, you have to use either the cursor xo.newCursor() or the DOM xo.newDomNode(). Cezar -Original Message- From: imorales [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:50 AM To: user@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help

RE: xmlbeans beginner - help

2007-11-06 Thread imorales
xo.newDomNode(). Cezar -Original Message- From: imorales [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:50 AM To: user@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help Is there any way to get from Java classes without XML schema and vice versa? Thanks

RE: xmlbeans beginner - help

2007-11-06 Thread Albert Bupp
. To navigate/read/modify the XmlObject without a schema, you have to use either the cursor xo.newCursor() or the DOM xo.newDomNode(). Cezar -Original Message- From: imorales [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:50 AM To: user@xmlbeans.apache.org Subject: RE: xmlbeans

RE: xmlbeans beginner - help

2007-11-06 Thread imorales
: imorales [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:50 AM To: user@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help Is there any way to get from Java classes without XML schema and vice versa? Thanks. Schalk Neethling-4 wrote: You will more

RE: xmlbeans beginner - help

2007-11-06 Thread Albert Bupp
- From: imorales [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 8:50 AM To: user@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help Is there any way to get from Java classes without XML schema and vice versa? Thanks. Schalk Neethling-4 wrote: You

RE: xmlbeans beginner - help

2007-11-06 Thread Paul French
XStream does exactly what you want. Paul -Original Message- From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: 06 November 2007 19:34 To: user@xmlbeans.apache.org Subject: RE: xmlbeans beginner - help imorales, I think you're looking for something that XMLBeans is not designed

RE: ignore multi definitions

2007-11-01 Thread Psoroulas John
The real xsds that I want to process have common some common schema types, maybe a solution is to isolate these common types, and put them in a seperate xsd schema. Thanks Radu for help John On Wed, October 31, 2007 20:39, Radu Preotiuc-Pietro wrote: Don't forget that multiple definitions

Re: ignore multi definitions

2007-11-01 Thread Jacob Danner
You should look into the sfactor utility available in the bin directory. That utility will take common types and create a new xsd from them -jacobd On 11/1/07, Psoroulas John [EMAIL PROTECTED] wrote: The real xsds that I want to process have common some common schema types, maybe a solution

RE: ignore multi definitions

2007-11-01 Thread Radu Preotiuc-Pietro
From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 7:21 AM To: user@xmlbeans.apache.org Subject: Re: ignore multi definitions You should look into the sfactor utility available in the bin directory

RE: ignore multi definitions

2007-11-01 Thread Psoroulas John
types. Your example did not have any common Schema types, which is why -allowmdef had no effect. Radu From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 7:21 AM To: user@xmlbeans.apache.org Subject: Re: ignore multi

Re: how to preserve string spaces

2007-11-01 Thread Jacob Danner
Hi Vinh, There is a schema attribute whitespace=preserve you can use when defining the string type in your xsd. -jacobd On 11/1/07, Vinh Nguyen (vinguye2) [EMAIL PROTECTED] wrote: Hi, I have an XmlBeans-generated object with a string property. I'm trying this property with a string value

RE: how to preserve string spaces

2007-11-01 Thread Vinh Nguyen (vinguye2)
[mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 3:57 PM To: user@xmlbeans.apache.org Subject: Re: how to preserve string spaces Hi Vinh, There is a schema attribute whitespace=preserve you can use when defining the string type in your xsd. -jacobd On 11/1/07, Vinh Nguyen (vinguye2

RE: Problem with multiple Jars with schema classes

2007-10-31 Thread Radu Preotiuc-Pietro
This very much looks like a bug in XMLBeans. If you have a consistent repro (which you seem to have) it would be great to open a JIRA issue (http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10436) and put the repro there, so we can track this. If you do not have a JIRA account, you can

RE: ignore multi definitions

2007-10-31 Thread Radu Preotiuc-Pietro
Don't forget that multiple definitions means definitions for the same name AND the same targetNamespace URI. In your case, since the targetNamespace URIs are different (urn:iso:foo1 and urn:iso:foo2), then the types have different names so the multiple definitions clause doesn't apply. Why don't

Re: using inheritance in Xmlbeans

2007-10-25 Thread Jeff Garrett
Thanks for the input. I will give it a try tomorrow and let you know. I hope this is all I need. Jeff G. On 10/25/07, David Jencks [EMAIL PROTECTED] wrote: I could be way way off here, and I haven't looked at this in a long time, but have you both set up type inheritance for the schema

RE: Single-item sequence causes failure

2007-10-23 Thread Vance Vagell
. There are no problems with that. Only these single-element compositors are causing issues -- I confirmed it by adding another (arbitrary) element to them, and their type suddenly appears after compilation. Any ideas? Thanks, Vance Original Message Subject: Re: Single-item sequence

RE: Single-item sequence causes failure

2007-10-23 Thread Vance Vagell
for taking a look anyway Jacob. Sometimes it helps just to explain a problem to someone else. - Vance Original Message Subject: RE: Single-item sequence causes failure From: Vance Vagell [EMAIL PROTECTED] Date: Tue, October 23, 2007 12:22 pm To: user@xmlbeans.apache.org Hi

Re: Single-item sequence causes failure

2007-10-23 Thread Jacob Danner
to someone else. - Vance Original Message Subject: RE: Single-item sequence causes failure From: Vance Vagell [EMAIL PROTECTED] Date: Tue, October 23, 2007 12:22 pm To: user@xmlbeans.apache.org Hi Jacob, Thanks for the responses. I should have been clearer

RE: Single-item sequence causes failure

2007-10-23 Thread Vance Vagell
because our software was filtering them out, not XmlBeans. Regards, Vance Original Message Subject: Re: Single-item sequence causes failure From: Jacob Danner [EMAIL PROTECTED] Date: Tue, October 23, 2007 3:33 pm To: user@xmlbeans.apache.org Thanks for the update Vance

Re: Inserting XML Document into Relational Tables of RDBMS

2007-10-22 Thread Albert Bupp
If I may jump in, I think what Gustavo means is you could use the scomp utility included in the XMLBeans package to generate Java classes representing the XML data that you want to populate your RDBMS. This utility generates and compiles (and jars) a set of Java class files which correspond to

Re: Inserting XML Document into Relational Tables of RDBMS

2007-10-22 Thread Albert Bupp
Meisam, You're welcome. I agree, you're 1st and biggest task will be to figure out the mapping. This may or may not be at all straight-forward, depending on the particular DOM and the RDBMS involved and whether or not you are free to design/redesign one or the other for your purposes. Once

Re: instantiate given a schema type

2007-10-22 Thread Jacob Danner
*From:* Jacob Danner [mailto:[EMAIL PROTECTED] *Sent:* Monday, October 22, 2007 11:41 AM *To:* user@xmlbeans.apache.org *Subject:* Re: instantiate given a schema type Have you looked at the SchemaTypeLoader APIs http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans

RE: instantiate given a schema type

2007-10-22 Thread Cory Virok
... is this a feature that the XmlObject API is lacking? Thanks very much for your help, cory From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:38 PM To: user@xmlbeans.apache.org Subject: Re: instantiate given a schema type There are a couple of different ways you can

RE: instantiate given a schema type

2007-10-22 Thread Cory Virok
. cory From: Cory Virok [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 12:59 PM To: user@xmlbeans.apache.org Subject: RE: instantiate given a schema type Unless I do a DOM node import, I get the Child to add is from another document error when using the DOM API. I tried using

RE: Single-item sequence causes failure

2007-10-22 Thread Vance Vagell
Another example is: http://api.eurocv.eu/euroserver.php?wsdl The type License defined as: xsd:complexType name=License xsd:all xsd:element name=license type=xsd:string/ /xsd:all /xsd:complexType is not loaded. This one has an all, instead of a sequence, but is the same behavior. -

Re: Single-item sequence causes failure

2007-10-22 Thread Jacob Danner
right, this is another rpc/encoded schema and you get the same error message. http://api.eurocv.eu/euroserver.php?wsdl:525:5: error: src-resolve: attribute 'a [EMAIL PROTECTED]://schemas.xmlsoap.org/soap/encoding/' not found. One other item you can use to get around this is to add the

Re: Single-item sequence causes failure

2007-10-22 Thread Jacob Danner
The type of the sequence is actually an array of type: apachesoap:mapItem I don't think this is the cause of your problem. The WSDL is rpc/encoded which doesn't really fit the document/literal style that it should be used with. I get the typical error message when trying to compile the schema

Re: Inserting XML Document into Relational Tables of RDBMS

2007-10-21 Thread Gustavo Aquino
Xmlbeans generate a xml to you based on classes , to put this in rdbms you can use any persistance framework or direct under jdbc Gustavo de Aquino On Oct 21, 2007, at 4:08 PM, meisam4910 [EMAIL PROTECTED] wrote: Hi guys, I am new to XMLBean, does XMLBean help to insert XML document

Re: Inserting XML Document into Relational Tables of RDBMS

2007-10-21 Thread meisam4910
would you mind explaining more a bit ? what do you mena by generating xml ? xml is there already, I mean I am going to insert a valid xml into rdbms, what do you mean by saying generating the xml ? persistence framework like hibernate ? is that easy to use the hibernate ? or any other frmaworks

Re: underlying xml

2007-10-19 Thread Jacob Danner
Hi Azfar, XmlObject maintains the xml as its manipulated. In your code above, basically what your instance would look like is: XyzTypeDocument doc = XyzTypeDocument.Factory.newInstance(); xyz / XyzType xyzType = doc.addNewXyzType(); xyzxyzType //xyz xyz.setSomething (something); xyz

Re: DateTime objects

2007-10-19 Thread Steven Crosley
Thanks Wing, Is that a specific to XMLBeans or is this a standard way of displaying the date and time in an xml element? Also, are the quotes necessary? Thanks, Steven On Oct 19, 2007, at 1:27 PM, Wing Yew Poon wrote: The error is exactly as it says: Invalid date value: 2006-10-16

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

Re: Creating javadocs

2007-10-18 Thread Jacob Danner
Hi Steven, I don't think there is a direct way to create javadoc via scomp, but you can generate the java src from it then run javadoc over the srcs. scomp -src folderName ... should output the generated java srcs to folderName Best of luck, -jacobd On 10/18/07, Steven Crosley [EMAIL PROTECTED]

Re: FilterXmlObject usage?

2007-10-18 Thread Jacob Danner
I can't say I've ever needed to work with that class directly. For more information, have you tried looking through the svn depot sources. I thought it was used internally a couple of places. Just out of curiousity, what do you intend/need this class for? -Jacobd On 10/18/07, Cory Virok [EMAIL

Re: Parsing problem

2007-10-17 Thread Jacob Danner
How are you building this document? in particular, how does ?xml version=1.0 ? get added? -Jacobd On 10/17/07, Anil Oggi [EMAIL PROTECTED] wrote: ?xml version=1.0 ? ONLINE QUERY_REVOLV CODE123/CODE REFNO200710171042428/REFNO PCODERLCD/PCODE

RE: Parsing problem

2007-10-17 Thread Cory Virok
I don't see EDLDONLINE as a start element -Original Message- From: Anil Oggi [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 17, 2007 3:02 PM To: user@xmlbeans.apache.org Subject: Parsing problem ?xml version=1.0 ? ONLINE QUERY_REVOLV CODE123/CODE

Re: XmlBeans behaving different in service

2007-10-17 Thread Jacob Danner
This is just a guess, but is the endpoint (server) needing an RPC/encoded payload? Otherwise are you using Axis in your container? If so which version? Are you seeing: http://issues.apache.org/jira/browse/AXIS2-2578https://issues.apache.org/jira/browse/AXIS2-2578 thanks, -Jacobd On 10/17/07,

Re: inserting default namespace

2007-10-15 Thread Maarten Bosteels
Hi Alex, This is really unfortunate, for reading in xml documents there is XmlOptions.setLoadSubstituteNamespaces() but for output I can't found anything similar. I posted this question some time ago, without response http://www.nabble.com/change-namespace-of-generated-document-t4158083.html

Re: inserting default namespace

2007-10-15 Thread Andrew Welch
On 15/10/2007, Alex Wibowo [EMAIL PROTECTED] wrote: Hi Marteen, I havent found any 'good' solution to this yet. The best solution I have found so far, is to either: 1. Insert the attribute 'xmlns'. But as pointed by Andrew, we are inserting attribute with name 'xmlns', and not a namespace.

Re: inserting default namespace

2007-10-14 Thread Maarten Bosteels
Alex, please let me know your solution since I am facing the same problem: I want to change the namespaces of the generated xml documents. Maarten On 10/12/07, Andrew Welch [EMAIL PROTECTED] wrote: On 12/10/2007, Alex Wibowo [EMAIL PROTECTED] wrote: I'm using XML bean to read an XML string,

Re: inserting default namespace

2007-10-12 Thread Andrew Welch
On 12/10/2007, Alex Wibowo [EMAIL PROTECTED] wrote: I'm using XML bean to read an XML string, and modify the namespace before saving it back as XML string. Say the xml that I have is: ZFI ... /ZFI and I already have an XML object that represent this xml. What I had to do is:

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

2007-10-11 Thread valerie . bauche
Ok, this method works fine for me... Thanks Valérie - Reply to All the Original Message - Author: Wing Yew Poon To: user@xmlbeans.apache.org Date: 10/10/2007 21:23:49 Subject: RE: Réf. : RE: Problem with boolean type Please see what Cezar wrote on this thread. I guess to do what you

Réf. : RE: Problem with boolean type

2007-10-10 Thread valerie . bauche
Yes I get mustUnderstand=true instead of mustUnderstand=1 Valerie Wing Yew Poon [EMAIL PROTECTED] 09/10/2007 21:40 Veuillez répondre à user Pour : user@xmlbeans.apache.org cc : Objet : RE: Problem with boolean type Valerie, what exactly is the incorrect behavior

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

2007-10-10 Thread Albert Bupp
:RE: Problem with boolean type 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

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

2007-10-10 Thread Cezar Andrei
= xo.selectChildren(, a)[0]; axo.set(xb); System.out.println( xo: + xo); Cezar From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:27 PM To: user@xmlbeans.apache.org Subject: RE: Réf. : RE: Problem with boolean type

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

2007-10-10 Thread Wing Yew Poon
To: user@xmlbeans.apache.org Subject: Re: Réf. : RE: Problem with boolean type I recently had a similar problem. A schema defines an element thusly: xsd:element name=DayWorking type=xsd:boolean minOccurs=0/ When calling the generated interface: d.setDayWorking( true ); XMLBeans then writes

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

2007-10-10 Thread Wing Yew Poon
= XmlBoolean.Factory.newInstance(); xb.setStringValue(1); d.xsetDayWorking(xb); From: Albert Bupp [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 12:08 PM To: user@xmlbeans.apache.org Subject: RE: Réf. : RE: Problem with boolean type I agree that it's not a bug

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

2007-10-10 Thread Albert Bupp
valid values for the schema type. When XMLBeans writes the xml, it uses the canonical lexical representation, which is true. -- From: Albert Bupp [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 8:46 AM To: user@xmlbeans.apache.org Subject: Re: Réf. : RE: Problem with boolean type

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

2007-10-10 Thread Jacob Danner
. -- *From:* Albert Bupp [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, October 10, 2007 8:46 AM *To:* user@xmlbeans.apache.org *Subject:* Re: Réf. : RE: Problem with boolean type I recently had a similar problem. A schema defines an element thusly: xsd:element name

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

2007-10-10 Thread Albert Bupp
, October 10, 2007 12:08 PM To: user@xmlbeans.apache.org Subject: RE: Réf. : RE: Problem with boolean type I agree that it's not a bug, however, it would be helpful if there were a way to direct the setter as to the form to output the value in, as either true or 1, since both are legitimate

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: error: Unexpected element: CDATA

2007-10-09 Thread Youssef
@xmlbeans.apache.org To user@xmlbeans.apache.org cc Subject Re: error: Unexpected element: CDATA Hi, we had this error under jdk 1.6.0_02 and got around it by putting xerces 2.9.1 in the classpath (instead of using the built-in xerces version) maybe you have

Re: error: Unexpected element: CDATA

2007-10-09 Thread Jacob Danner
To user@xmlbeans.apache.org cc Subject Re: error: Unexpected element: CDATA Hi, we had this error under jdk 1.6.0_02 and got around it by putting xerces 2.9.1 in the classpath (instead of using the built-in xerces

Re: error: Unexpected element: CDATA

2007-10-08 Thread Ole Matzura
Hi, we had this error under jdk 1.6.0_02 and got around it by putting xerces 2.9.1 in the classpath (instead of using the built-in xerces version) maybe you have a similar setup!? /Ole eviware.com [EMAIL PROTECTED] wrote: Hi All, I get following Exception on parsing my XML file.

Re: XML = JAVA in real time

2007-10-07 Thread Srinath C
Hi, Yes it is possible. You can do something like this : File schemaFile; InputStream xsdFileStream = new FileInputStream(schemaFile); XmlOptions options = new XmlOptions(); options.setCompileDownloadUrls(); options.setEntityResolver(new

RE: How to select the root element

2007-10-05 Thread Cezar Andrei
Patrizio, There are a number of ways to find out the name of the document root or return the object that represents its content, but the first that comes to mind is using the cursor: XmlCursor xc = document.newCursor(); xc.toFirstChild(); QName nameOfTopLevelElement = xc.getName(); XmlObject

Re: Problem in Converting XSD to Document

2007-10-04 Thread Jacob Danner
Can you clarify, (maybe using an xml instance) what your complexType List would look like. As far as I am aware this is not possible because its illegal/invalid according to the schema specification. Also, to me, using list ONLY makes sense using a simple type anyway. If you can let the list know

Re: Problem in Converting XSD to Document

2007-10-04 Thread niamul
I have an object , say PersonalInfo which contains two fields name and address. Now I need a list of PersonalInfo. My xsd definition is as follows : xs:simpleType name=PersonalInfoList xs:list itemType=PersonalInfo / /xs:simpleType xs:complexType name=PersonalInfo xs:sequence

Re: How to acced attribute-group

2007-10-03 Thread Srinath C
Youssef, You will not get such an accessor method. You will instead get methods like this : FooDocument.getFoo().getAttribute1(); FooDocument.getFoo().getAttribute2(); FooDocument.getFoo().getAttribute3(); On 10/3/07, Youssef [EMAIL PROTECTED] wrote: hi, i have a schema containing

Re: Problem in Converting XSD to Document

2007-10-03 Thread niamul
I want to put some complex Type is the list. Is it possible? Also can u suggest me the use of xs:ENTITIES and xs:NMSTOKENS ? There are little abount it in the internet . Thanks in advance Jacob Danner-2 wrote: Are you referring to the use of xsd:list? Then as far as I know there is no

Re: how to find out if child elements are empty

2007-10-02 Thread jimmy Zhang
I think you should try VTD-XML for that http://vtd-xml.sf.net - Original Message - From: zulu [EMAIL PROTECTED] To: user@xmlbeans.apache.org Sent: Tuesday, October 02, 2007 5:21 PM Subject: how to find out if child elements are empty Hi All, We are currently working on a huge xml

Re: Problem with XMLCalendar

2007-09-21 Thread Jacob Danner
Hi David, I ran into this sometime ago, but I think its by design. Calendar.MONTH starts at 0 and not January == 1. http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html#MONTH whereas Calendar.DATE starts at 1. Hope this helps, -Jacob Danner So I think you are getting the expected

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 http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.util.Calendar.JANUARY . - Wing Yew From:

Re: evaluating xmlbeans and best practices

2007-09-14 Thread Jacob Danner
Hi, I'll try my best to answer your questions/comments, but if you need more information, please ask. One observations these xml beans generated classes do not have an inbuilt relationship (inheritance tree) which limits reusability. This may have something to do with teh way your schema is

Re: evaluating xmlbeans and best practices

2007-09-14 Thread zulu
Hi Jacob, Those replies were indeed very helpful. Regarding schema design pattern I don't have much idea about various schema design patterns and their advantages. The java application which we are working on communicates with web service which is exposing a wsdl. We plan to use xmlbeans to

Re: Problem with tree schema

2007-09-06 Thread Jacob Danner
Hi Ole, What you are seeing is expected behavior for XMLBeans. The classes are generated this way because of the schema design pattern you are using. In your Tree xsd you are using the russian doll pattern while in your flat file xsd you are using the salami slice pattern. Here is some additional

Re: targetNamespace compile error

2007-09-05 Thread Jacob Danner
Hi Bo, It looks like you might have an extra space in your namespace declaration. Also, for convenience you may want to declare your targetNamespace with a prefix so you can refer to it in the schema. try something like: xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema;

RE: xsdconfig revisited

2007-08-28 Thread Schalk Neethling
Thanks Cezar, I got it working late yesterday. From: Cezar Andrei [mailto:[EMAIL PROTECTED] Sent: 27 August 2007 08:18 PM To: user@xmlbeans.apache.org Subject: RE: xsdconfig revisited Check out the wiki page http://wiki.apache.org/xmlbeans

RE: xsdconfig revisited

2007-08-27 Thread Cezar Andrei
Check out the wiki page http://wiki.apache.org/xmlbeans/ExtensionInterfacesFeature and the tests http://svn.apache.org/viewvc/xmlbeans/trunk/test/cases/xbean/extensions/ interfaceFeature/ As it's described in the wiki page: The for attribute can accept a list of xbean java interfaces

Re: Any way to make XMLBeans output/flush XML to a file on the fly instead of building an entire object model in memory?

2007-08-23 Thread Radu Preotiuc-Pietro
No, what you are asking essentially is a paging mechanism. In most very large documents scenarios, the following should work: Use SAX or preferrably StAX (JDK 1.6's java.xml.stream) because with StAX you can split the tree under a particular element in a separate substream from which you can

Re: Any way to make XMLBeans output/flush XML to a file on the fly instead of building an entire object model in memory?

2007-08-23 Thread Wade Chandler
Thanks Radu, I'll look into it. I appreciate the answer. Wade --- Radu Preotiuc-Pietro [EMAIL PROTECTED] wrote: No, what you are asking essentially is a paging mechanism. In most very large documents scenarios, the following should work: Use SAX or preferrably StAX (JDK 1.6's

Re: Field types from XML types with restrictions

2007-08-22 Thread Jacob Danner
Hi Leszek, I don't remeber the rules off the top of my head but I thought it was outlined in the one of the getting started docs. I'll try to skim a more detailed answer for you tommorow. I do have one question for you regarding this type. Since you are using it to represent a year, why not use

RE: xsdconfig

2007-08-22 Thread Cezar Andrei
Does the file have the xsdconfig extension? I.e. is called somename.xsdconfig? Also make sure it's in the list of files to be compiled. Cezar From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 22, 2007 8:49 AM To:

Re: Using soap.encoding.Array

2007-08-22 Thread Scott Sauyet
Jacob Danner wrote: Is the WSDL rpc/encoded? -Jacob Danner No, it's document/literal, at least it's supposed to be. :-) The vendor tool which runs the server has recently been updated to support doc/lit; and there may be problems with it... -- Scott On 8/22/07, Scott Sauyet [EMAIL

Re: xsdconfig

2007-08-22 Thread Schalk Neethling
Hi Cezar, I was just calling it .xsdconfig. So it does need to be for example statement.xsdconfig? I do have it in the same folder as all the XSD's that gets compiled. Thank you for your help so far. Cezar Andrei wrote: Does the file have the xsdconfig extension? I.e. is called

Re: Using soap.encoding.Array

2007-08-22 Thread Jacob Danner
Interesting, usually when I've seen soap encoding its been for RPC based WSDL. The way I've seen doc/literal arrays declared is with something like: xs:element name=someName type=xs:int minOccurs=0 maxOccurs=unbounded / with that maxOccurs attribute turning whatever someName would be to an array

Re: XMLBEANS-174

2007-08-22 Thread Radu Preotiuc-Pietro
This is great! I have been thinking about doing it myself, but I haven't had the time yet. It should be possible and it would sure be a welcome feature. The code that generates the files is in org.apache.xmlbeans.impl.schema.SchemaTypeCodePrinter. You probably already know about the -src flag to

RE: General question

2007-08-20 Thread Schalk Neethling
Thanks Radu. -Original Message- From: Wing Yew Poon [mailto:[EMAIL PROTECTED] Sent: 17 August 2007 08:01 PM To: user@xmlbeans.apache.org; [EMAIL PROTECTED] Subject: RE: General question From the archives: -- FromRadu Preotiuc-Pietro [EMAIL PROTECTED] Subject RE

Re: remove unused namespaces?

2007-08-20 Thread Ole Matzura
Hi Jacob, Thanks for answering.. unfortunately this didn't work.. I tried a number of combinations with different XmlOptions etc without any luck.. Should I file a bug report somewhere? anyhow, I worked around it for now by removing those not used manually.. best regards, /Ole eviware.com

Re: remove unused namespaces?

2007-08-20 Thread Ole Matzura
Hi, exactly, I was using parse(String).. what is the recommended way to parse to get this option working? Anyway, I used the XmlCursor API as you suggested and it works just fine! thanks again for answering, regards, /Ole eviware.com Jacob Danner wrote: How were you building your

Re: General question

2007-08-18 Thread Schalk Neethling
/apache/xmlbeans/impl/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

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

RE: General question

2007-08-17 Thread Wing Yew Poon
From the archives: -- FromRadu 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

Re: find already loaded schematypes/SchemaTypeSystem (repost)

2007-08-16 Thread Radu Preotiuc-Pietro
There is no way to find that out. To understand why, consider a parallel with Java classloaders. You can't rely on a set of already loaded classes because classloaders may unload classes at any time. All that matters is whehter a given loader can load a class or not, the rest is optimization. The

Re: find already loaded schematypes/SchemaTypeSystem (repost)

2007-08-16 Thread Psoroulas John
Thanks a lot for your answer Radu Best Regards, John Ps. On Fri, August 17, 2007 01:22, Radu Preotiuc-Pietro wrote: There is no way to find that out. To understand why, consider a parallel with Java classloaders. You can't rely on a set of already loaded classes because classloaders may

2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread bob bob
Anyone? Basically I want a search and replace. I can grab the XMLObject (WIPKEYSDocument) but can't replace it with another WIPKEYSDocument. Please?! Anyone? - Original Message From: bob bob [EMAIL PROTECTED] To: user@xmlbeans.apache.org Sent: Tuesday, August 14, 2007 3:52:32 PM

RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread Cezar Andrei
(keys.getWIPKEYS()) . Cezar From: bob bob [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 1:25 PM To: user@xmlbeans.apache.org Subject: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject Anyone? Basically I want

Re: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread bob bob
Sent: Wednesday, August 15, 2007 3:40:33 PM Subject: RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject Bob, The wipkeys array returned from selectPath() method is just a copy, it’s not a live object in XMLBeans structures, so modifying

Re: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread Jacob Danner
Sent: Wednesday, August 15, 2007 3:40:33 PM Subject: RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject Bob, The wipkeys array returned from selectPath() method is just a copy, it's not a live object in XMLBeans structures, so modifying

RE: alternatives to ID/IDREF

2007-08-15 Thread Alec Lebedev
I haven't been able to find a solution for my problem described below. Could anybody comment on it? Thanks. From: Alec Lebedev [mailto:[EMAIL PROTECTED] Sent: Sunday, August 12, 2007 8:12 PM To: user@xmlbeans.apache.org Subject: alternatives to ID/IDREF

RE: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread Cezar Andrei
To get the parent you can use the cursor API or write a more specific xpath something like /a/b/c/.. . Cezar From: bob bob [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 4:10 PM To: user@xmlbeans.apache.org Subject: Re: 2nd Post. Help! Search

Re: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject

2007-08-15 Thread bob bob
] To: user@xmlbeans.apache.org Sent: Wednesday, August 15, 2007 5:15:35 PM Subject: Re: 2nd Post. Help! Search and Replace...Re: How to edit data in a specific part of an XMLObject If you use the other method Cezar mentioned parent.setWIPKEYS(keys.getWIPKEYS()) you can replace the entire WIPKEYS

Re: object oriented persistence layer?

2007-08-15 Thread Gustavo Aquino
Razvan, Sorry for long time the work has killing me :D I will send how i use hibernate with xmlbeans, i dont have time to write papper now, but i will. Can you send me your Hibernate interceptor ? this will help me to see the problem and i will try to help you. best regards. On 8/8/07,

RE: Generating Javadoc

2007-08-14 Thread Schalk Neethling
Can you accomplish this same task using Ant? From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 10:24 AM To: user@xmlbeans.apache.org Subject: Re: Generating Javadoc The scomp utility has a -src option to generate the Java code. You can run

RE: Generating Javadoc

2007-08-14 Thread Schalk Neethling
Just saw the srcgendir on the documentation. I am trying this out now. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:28 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Can you accomplish this same task using Ant

RE: Generating Javadoc

2007-08-14 Thread Schalk Neethling
Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 11:38 AM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Just saw the srcgendir on the documentation. I am trying this out now. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14

RE: Generating Javadoc

2007-08-14 Thread Schalk Neethling
No problem, got this working and the javadoc generated from the source. From: Schalk Neethling [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 12:01 PM To: user@xmlbeans.apache.org Subject: RE: Generating Javadoc Greetings, Would the appropriate usage

RE: Problem with output through a weblogic webservice.

2007-08-13 Thread Cezar Andrei
Hi Knut-Erik, The best way to solve this is to open a customer request through BEA support on WLS. Cezar From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 10, 2007 3:28 PM To: user@xmlbeans.apache.org Subject: Problem with output

<    5   6   7   8   9   10   11   12   13   14   >