_writer.writeStartElement(table.getName());
for (int idx = 0; idx < table.getColumnCount(); idx++)
{
Column column = table.getColumn(idx);
Object value = bean.get(column.getName());
SqlTypeConverter converter = _converterConf.getRegisteredConverter(table, column);
String valueAsText = null;
if (converter == null)
{
if (value != null)
{
valueAsText = value.toString();
}
}
else
{
valueAsText = converter.convertToString(value, column.getTypeCode());
}
if (valueAsText != null)
{
// we create an attribute only if the text is not too long
// and if it does not contain special characters