FrameComponent val = kvp.getValue();
// read attributes
AttributesImpl attrs = new AttributesImpl();
Attributes vinciAttrs = null;
if (val instanceof AFrame) {
vinciAttrs = ((AFrame) val).getAttributes();
} else if (val instanceof AFrameLeaf) {
vinciAttrs = ((AFrameLeaf) val).getAttributes();
}
if (vinciAttrs != null) {
for (int j = 0; j < vinciAttrs.getKeyValuePairCount(); j++) {
KeyValuePair attr = vinciAttrs.getKeyValuePair(j);
String attrName = attr.getKey();
String attrVal = attr.getValueAsString();
attrs.addAttribute("", attrName, attrName, "CDATA", attrVal);
if (attrName.equals("_indexed")) {
isIndexed = true;