code: protected final void copyAttributes(final int nodeID, SerializationHandler handler)
          throws SAXException{
  
         for(int current = getFirstAttributeIdentity(nodeID); current != DTM.NULL; current = getNextAttributeIdentity(current)){
              int eType = _exptype2(current);
              copyAttribute(current, eType, handler);
         }
      }
docs: Copy  attribute nodes from an element .
  
  @param nodeID The Element node identity
  @param handler The SerializationHandler