Use the factory method.
Thanks,
Andy
-Original Message-
From: Steven Crosley [mailto:[EMAIL PROTECTED]
Sent: 02 April 2008 21:55
To: user@xmlbeans.apache.org
Subject: How do I set a string element of a type object?
Hi,
I'm trying to set an element value that is a complex type, but
Instead of
book.setTitle(rs.getString(title));
do
TitleType title = book.addNewTitle();
title.setStringValue(rs.getString(title));
Then, if you want to set the lost attribute, you'll do:
title.setLost(true);
Radu
On Thu, 2008-04-03 at 08:35 +0100, Andrew Mansfield wrote:
Use the
2 matches
Mail list logo