@salesforce/b2c-tooling-sdk / operations/cap / parseCommerceFeatureStatesXml
Function: parseCommerceFeatureStatesXml()
parseCommerceFeatureStatesXml(
xml,siteId):Promise<CommerceFeatureState[]>
Defined in: packages/b2c-tooling-sdk/src/operations/cap/list.ts:227
Parses a commerce-feature-states.xml string into CommerceFeatureState objects.
Parameters
xml
string
XML string to parse
siteId
string
Site ID to associate with parsed states (used as fallback if not in XML attributes)
Returns
Promise<CommerceFeatureState[]>
Array of parsed commerce feature states