attrs = new AttrList();
if (annotate) {
if (onFirstNode)
attrs.addAttribute(ATTR_CHANGE, changeMessage);
else {
NodeId nodeId = (NodeId) reader.getProperty(EmbeddedXMLStreamReader.PROPERTY_NODE_ID);
NodeSet children = changeSet.selectParentChild(new NodeProxy(diffDoc, nodeId), NodeSet.ANCESTOR);
if (children != null && !children.isEmpty())
attrs.addAttribute(ATTR_CHANGE, "changed");
}
if (elementStack.size() == 0)
receiver.startPrefixMapping(StandardDiff.PREFIX, StandardDiff.NAMESPACE);
}
for (int i = 0; i < reader.getAttributeCount(); i++) {
// check if an attribute has to be inserted before the current attribute
NodeId nodeId = reader.getAttributeId(i);
// check if an attribute has to be inserted before the current attribute
ElementImpl insertedNode = insertedNodes.get(nodeId);
if (insertedNode != null) {
StoredNode child = (StoredNode) insertedNode.getFirstChild();