indenter.in();
Iterator it = assignments.iterator();
while (it.hasNext()) {
Attribute attr = (Attribute)(it.next());
/*out.println(indenter.makeString() +
"<AttributeAssignment AttributeId=\"" +
attr.getId().toString() + "\" DataType=\"" +
attr.getType().toString() + "\">" +
attr.getValue().encode() +
"</AttributeAssignment>");*/
StringBuilder str = new StringBuilder();
str.append(indenter.makeString());
str.append("<AttributeAssignment AttributeId=\"");
str.append(attr.getId().toString() + "\" DataType=\"");
str.append(attr.getType().toString() + "\">");
List<AttributeValue> attrValues = attr.getValues();
if(attrValues != null)
{
for(AttributeValue val: attrValues)
{
str.append(val.encodeWithTags(true));