public static Marshaller createMarshaller(Class<?> clazz,NamespacePrefixMapper mpr) throws Exception {
  Marshaller marshaller=createMarshaller(clazz);
  marshaller.setProperty("com.sun.xml.bind.namespacePrefixMapper",mpr);
  marshaller.setProperty(Marshaller.JAXB_FRAGMENT,Boolean.TRUE);
  return marshaller;
}

public static Marshaller createMarshaller ( Class < ? > clazz , NamespacePrefixMapper mpr ) throws Exception { Marshaller marshaller = createMarshaller ( clazz ) ; marshaller . setProperty ( "com.sun.xml.bind.namespacePrefixMapper" , mpr ) ; marshaller . setProperty ( Marshaller . JAXB_FRAGMENT , Boolean . TRUE ) ; return marshaller ; }
creates a marshaller for the given class and namespace prefix mapper .
