nsresult rv = pi->GetData(ret);
nsresult rv = pi->GetTarget(ret);
JNIEXPORT jstring JNICALL Java_org_mozilla_dom_ProcessingInstructionImpl_getTarget  (JNIEnv *env, jobject jthis){  nsIDOMProcessingInstruction* pi = (nsIDOMProcessingInstruction*)     env->GetLongField(jthis, JavaDOMGlobals::nodePtrFID);  if (!pi) {    JavaDOMGlobals::ThrowException(env,      "ProcessingInstruction.getTarget: NULL pointer");    return NULL;  }  nsString ret;  nsresult rv = pi->GetData(ret);  if (NS_FAILED(rv)) {    JavaDOMGlobals::ThrowException(env,      "ProcessingInstruction.getTarget: failed", rv);    return NULL;  }  jstring jret = env->NewString(ret.GetUnicode(), ret.Length());  if (!jret) {    JavaDOMGlobals::ThrowException(env,      "ProcessingInstruction.getTarget: NewString failed");    return NULL;  }  return jret;}