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
/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
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
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
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
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
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
7 matches
Mail list logo