@Override
public void visit( XMLNamespaces obj ) {
append(XMLNAMESPACES);
append("("); //$NON-NLS-1$
for (Iterator<NamespaceItem> items = obj.getNamespaceItems().iterator(); items.hasNext();) {
NamespaceItem item = items.next();
if (item.getPrefix() == null) {
if (item.getUri() == null) {
append("NO DEFAULT"); //$NON-NLS-1$
} else {
append("DEFAULT "); //$NON-NLS-1$
visitNode(new Constant(item.getUri()));
}
} else {
visitNode(new Constant(item.getUri()));
append(" AS "); //$NON-NLS-1$
outputDisplayName(item.getPrefix());
}
if (items.hasNext()) {
append(", "); //$NON-NLS-1$
}
}