Thank you for responding!
StringWriter out = new StringWriter();
XMLContext context = new XMLContext();
context.setProperty(XMLConfiguration.NAMESPACES, "true"); ...
Marshaller m = context.createMarshaller();
m.setRootElement(message.getClass().getSimpleName());
m.setUseXSITypeAtRoot(true);
m.setNSPrefixAtRoot(true);
m.setNamespaceMapping("pfx1", "http://...Item1");
m.setNamespaceMapping("pfx2", "http://...Item2");
m.marshal(message, out);
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email