// architecture. This doesn't seem to affect CTA psychopath evaluations.
// CTA spec, doesn't require a typed XDM tree.
// relook...
Document document = new PSVIDocumentImpl();
Element elem = document.createElementNS(element.uri, element.rawname);
for (int attrIndx = 0; attrIndx < attributes.getLength(); attrIndx++) {
PSVIAttrNSImpl attrNode = new PSVIAttrNSImpl((PSVIDocumentImpl)document,
attributes.getURI(attrIndx),
attributes.getQName(attrIndx));
attrNode.setNodeValue(attributes.getValue(attrIndx));