RE: xmlbeans beginner - help

2007-11-06 Thread Albert Bupp
He means the XmlObject class which you'll find in the XmlBeans library. -Albert At 10:27 AM 11/6/2007, you wrote: That sounds good but, I don´t have a XmlObject, I have a simple pojo (class A) and i want to convert it to XmlObject, my class A have to implements XmlObject ? How can I do this

RE: xmlbeans beginner - help

2007-11-06 Thread Albert Bupp
/2007, you wrote: Yes I know but, can I convert a simple java class A to a XmlObject without schema ? Albert Bupp wrote: He means the XmlObject class which you'll find in the XmlBeans library. -Albert At 10:27 AM 11/6/2007, you wrote: That sounds good but, I don´t have a XmlObject, I have

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
think I have to come up with the way to map my DOM tree to Relational tables first, using XMLBeans or writting the code myself does not make much of differences to me about solving the mapping problem, my problem is the way of mapping the DTD element or DOM tree into RDBMS. Albert Bupp wrote: If I

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

2007-10-10 Thread Albert Bupp
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: DayWorkingtrue/DayWorking However, the application reading the XML instance

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 Albert Bupp
instead of the setter. So - for xsd:element name=DayWorking type=xsd:boolean minOccurs=0/ you can set it by XmlBoolean xb = XmlBoolean.Factory.newInstance(); xb.setStringValue(1); d.xsetDayWorking(xb); -- From: Albert Bupp [mailto:[EMAIL PROTECTED] Sent: Wednesday