Document docXML=dbWriter.newDocument();
OutputFormat XMLFormat=new OutputFormat(docXML);
XMLFormat.setIndenting(true);
XMLSerializer XMLWriter=new XMLSerializer(writer, XMLFormat);
ContentHandler chHolder = XMLWriter.asContentHandler();
XMLWriter.serialize(docXML);
chHolder.startDocument();
Element elProfile= docXML.createElement("PROFILE");
elProfile.setAttribute("NAME", prfWrite.getName());
// chHolder.startElement(elProfile.getBaseURI(), elProfile.getNodeName(), qName, atts)