Jason,
If you're schema contains 'myCustomNumber' element that your Book class
should have get/add/set methods for it and you just use them
accordingly.
If it doesn't you can still add it, it's a little more complicated, you
need to use the XmlCursor interface. See following link for how to use
X
I need to do something like this:
BookDoc booksDoc = BooksDoc.Factory.parse(xml, validationOptions);
Book book = bookDoc.getBook();
for (Author author:book.getAuthors()) {
book.setMyCustomNumber(5);
// how do I "save" this so the save method below gets a book
object where the myCus
2 matches
Mail list logo