{
    declareXSI = true;
    if (!toDOM)
    {
      doc.addAttribute(XSI_TYPE_NS, helper.getQName(eClass));
    }
    else
    {
      helper.populateNameInfo(nameInfo, eClass);
      ((Element)currentNode).setAttributeNS(ExtendedMetaData.XSI_URI, XSI_TYPE_NS, nameInfo.getQualifiedName());
    }
    
  }