for (int attIndex = 0; attIndex < attributes.getLength(); attIndex++) {
String attrUri = attributes.getURI(attIndex);
String attQName = attributes.getQName(attIndex);
String attValue = attributes.getValue(attIndex);
PSVIAttrNSImpl attrNode = new PSVIAttrNSImpl((PSVIDocumentImpl)
assertDocument, attrUri, attQName);
attrNode.setNodeValue(attValue);
// set PSVI information for the attribute
Augmentations attrAugs = attributes.getAugmentations(attIndex);
AttributePSVImpl attrPSVI = (AttributePSVImpl) attrAugs.
getItem(Constants.ATTRIBUTE_PSVI);
attrNode.setPSVI(attrPSVI);
currentAssertDomNode.setAttributeNode(attrNode);
}
Object assertion = augs.getItem("ASSERT");