case nsIDataType::VTYPE_DOMSTRING: case nsIDataType::VTYPE_CSTRING: case nsIDataType::VTYPE_UTF8STRING:
static nsresult GetNativeType(PRUint16 aType, nsAString & aSchemaNamespaceURI, nsAString & aSchemaType){  aSchemaNamespaceURI.Assign(nsSOAPUtils::kXSURI);  switch (aType) {  case nsIDataType::VTYPE_CHAR_STR:  case nsIDataType::VTYPE_WCHAR_STR:  case nsIDataType::VTYPE_CHAR:  case nsIDataType::VTYPE_WCHAR:  case nsIDataType::VTYPE_STRING_SIZE_IS:  case nsIDataType::VTYPE_WSTRING_SIZE_IS:  case nsIDataType::VTYPE_ASTRING:    aSchemaType.Assign(kStringSchemaType);    break;  case nsIDataType::VTYPE_INT8:    aSchemaType.Assign(kByteSchemaType);    break;  case nsIDataType::VTYPE_INT16:    aSchemaType.Assign(kShortSchemaType);    break;  case nsIDataType::VTYPE_INT32:    aSchemaType.Assign(kIntSchemaType);    break;  case nsIDataType::VTYPE_INT64:    aSchemaType.Assign(kLongSchemaType);    break;  case nsIDataType::VTYPE_UINT8:    aSchemaType.Assign(kUnsignedByteSchemaType);    break;  case nsIDataType::VTYPE_UINT16:    aSchemaType.Assign(kUnsignedShortSchemaType);    break;  case nsIDataType::VTYPE_UINT32:    aSchemaType.Assign(kUnsignedIntSchemaType);    break;  case nsIDataType::VTYPE_UINT64:    aSchemaType.Assign(kUnsignedLongSchemaType);    break;  case nsIDataType::VTYPE_FLOAT:    aSchemaType.Assign(kFloatSchemaType);    break;  case nsIDataType::VTYPE_DOUBLE:    aSchemaType.Assign(kDoubleSchemaType);    break;  case nsIDataType::VTYPE_BOOL:    aSchemaType.Assign(kBooleanSchemaType);    break;  case nsIDataType::VTYPE_ARRAY:  case nsIDataType::VTYPE_EMPTY_ARRAY:    aSchemaType.Assign(kArraySOAPType);    aSchemaNamespaceURI.Assign(nsSOAPUtils::kSOAPEncURI);    break;//  case nsIDataType::VTYPE_VOID://  case nsIDataType::VTYPE_EMPTY://  Empty may be either simple or complex.    break;  case nsIDataType::VTYPE_INTERFACE_IS:  case nsIDataType::VTYPE_INTERFACE:    aSchemaType.Assign(kStructSOAPType);    aSchemaNamespaceURI.Assign(nsSOAPUtils::kSOAPEncURI);    break;  default:    aSchemaType.Assign(kAnySimpleTypeSchemaType);  }  return NS_OK;}