"string",
"http://example.org/ns/books/ resources/book/books.xsd"
);
// create an instance of Object Model Provider with no book
ObjectModelProvider provider = new BookObjectProvider();
// marshall Book instance passing it as an argument instead of using the one that is returned by the BookObjectProvider
marshaller.marshal(getResourceUrl("xml/book/books.xsd").toString(), provider, book, xmlOutput);
String xml = xmlOutput.getBuffer().toString();