Re: Using "get" after "set"

2011-09-16 Thread Cezar Andrei
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

Using "get" after "set"

2011-09-12 Thread Jason Berk
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