/* Ok, as long as we use the right ns prefix... better also
* output namespace declaration, in non-repairing mode.
*/
XMLStreamWriter2 sw = getDTDValidatingWriter(strw, IMPLIED_NS_DTD_STR, true, repairing);
sw.writeStartElement("root");
if (!repairing) {
sw.writeNamespace(NS_PREFIX, NS_URI);
}
// prefix, uri, localname (for attrs!)
sw.writeAttribute(NS_PREFIX, NS_URI, "attr", "value");