public void serialize(KXmlSerializer serializer) throws IOException {
  serializer.startTag(ns,TAG);
  serializeAttribute(serializer,NAME_ATTR,mName);
  serializeAttribute(serializer,APP_PACKAGE_NAME_ATTR,mAppPackageName);
  serializeAttribute(serializer,DIGEST_ATTR,getDigest());
  if (SIGNATURE_TEST_PKG.equals(mName)) {
    serializer.attribute(ns,"signatureCheck","true");
  }
  mSuiteRoot.serialize(serializer);
  serializer.endTag(ns,TAG);
}

public void serialize ( KXmlSerializer serializer ) throws IOException { serializer . startTag ( ns , TAG ) ; serializeAttribute ( serializer , NAME_ATTR , mName ) ; serializeAttribute ( serializer , APP_PACKAGE_NAME_ATTR , mAppPackageName ) ; serializeAttribute ( serializer , DIGEST_ATTR , getDigest ( ) ) ; if ( SIGNATURE_TEST_PKG . equals ( mName ) ) { serializer . attribute ( ns , "signatureCheck" , "true" ) ; } mSuiteRoot . serialize ( serializer ) ; serializer . endTag ( ns , TAG ) ; }
serialize this object and all its contents to xml .
