Code example for QName

0
import javax.xml.namespace.QName; 
 
@XmlRegistry 
public class ObjectFactory { 
 
    private final static QName _Book_QNAME = new QName("http://books", "Book"); 
     
    /** 
     * Create a new ObjectFactory that can be used to create new instances of 
     * schema derived classes for package: common 
     */ 
    public ObjectFactory() { 
    } 
 
    /** 
     * Create an instance of {@link Book } 
     */ 
    public Book createBook() { 
        return new Book(); 
    }