nsAutoString type, prefix, nsuri; nsresult rv = nsXFormsUtils::ParseTypeFromNode(mBoundNode, type, prefix);  if (NS_SUCCEEDED(rv)) {  nsCOMPtr<nsIDOM3Node> domNode3 = do_QueryInterface(mElement, &rv); if (NS_SUCCEEDED(rv)) { rv = domNode3->LookupNamespaceURI(prefix, nsuri);  if (NS_SUCCEEDED(rv) && nsuri.EqualsLiteral(NS_NAMESPACE_XML_SCHEMA)) { if (type.EqualsLiteral("anyURI")) { result = TYPE_ANYURI; } else if (type.EqualsLiteral("base64Binary")) { result = TYPE_BASE64; } else if (type.EqualsLiteral("hexBinary")) { result = TYPE_HEX; } }
nsAutoString type, nsuri; nsresult rv = nsXFormsUtils::ParseTypeFromNode(mBoundNode, type, nsuri); if (NS_SUCCEEDED(rv) && nsuri.EqualsLiteral(NS_NAMESPACE_XML_SCHEMA)) { if (type.EqualsLiteral("anyURI")) { result = TYPE_ANYURI; } else if (type.EqualsLiteral("base64Binary")) { result = TYPE_BASE64; } else if (type.EqualsLiteral("hexBinary")) { result = TYPE_HEX;
nsXFormsUploadElement::GetBoundType(){  nsBoundType result = TYPE_DEFAULT;  // get type bound to node  nsAutoString type, prefix, nsuri;  nsresult rv = nsXFormsUtils::ParseTypeFromNode(mBoundNode, type, prefix);  if (NS_SUCCEEDED(rv)) {    // get the namespace url from the prefix    nsCOMPtr<nsIDOM3Node> domNode3 = do_QueryInterface(mElement, &rv);    if (NS_SUCCEEDED(rv)) {      rv = domNode3->LookupNamespaceURI(prefix, nsuri);      if (NS_SUCCEEDED(rv) && nsuri.EqualsLiteral(NS_NAMESPACE_XML_SCHEMA)) {        if (type.EqualsLiteral("anyURI")) {          result = TYPE_ANYURI;        } else if (type.EqualsLiteral("base64Binary")) {          result = TYPE_BASE64;        } else if (type.EqualsLiteral("hexBinary")) {          result = TYPE_HEX;        }      }    }  }  return result;}