---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/object-types](../index.md) / xmlTypeToValueType

# Function: xmlTypeToValueType()

> **xmlTypeToValueType**(`type`): `"string"` \| `"boolean"` \| `"password"` \| `"date"` \| `"image"` \| `"text"` \| `"money"` \| `"int"` \| `"double"` \| `"html"` \| `"quantity"` \| `"datetime"` \| `"email"` \| `"set_of_string"` \| `"set_of_int"` \| `"set_of_double"` \| `"enum_of_string"` \| `"enum_of_int"`

Defined in: [packages/b2c-tooling-sdk/src/operations/object-types/meta-xml.ts:97](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/operations/object-types/meta-xml.ts#L97)

Converts a metadata XML attribute type (`set-of-string`) to the API value type (`set_of_string`).

## Parameters

### type

`string`

## Returns

`"string"` \| `"boolean"` \| `"password"` \| `"date"` \| `"image"` \| `"text"` \| `"money"` \| `"int"` \| `"double"` \| `"html"` \| `"quantity"` \| `"datetime"` \| `"email"` \| `"set_of_string"` \| `"set_of_int"` \| `"set_of_double"` \| `"enum_of_string"` \| `"enum_of_int"`
