writerRecord.node(xmlDocument, null, rootUri, rootLocalName );
}else{
writerRecord.node(xmlDocument, xmlDescriptor.getNamespaceResolver(), rootUri, rootLocalName );
}
} else {
writerRecord.startDocument(encoding, version);
writerRecord.node(xmlDocument, writerRecord.getNamespaceResolver(), rootUri, rootLocalName);
writerRecord.endDocument();
}
} catch (XMLPlatformException e) {
throw XMLMarshalException.marshalException(e);