Click or drag to resize
DataHelperParseXmlValue Method
Parses given value treated as value from XML, and converts it to given type.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static Object ParseXmlValue(
	string value,
	Type type,
	string columnName,
	string cultureName = null
)

Parameters

value
Type: SystemString
Value to parse.
type
Type: SystemType
Data type of the resulting parsed value.
columnName
Type: SystemString
Name of a XML element which value to parse.
cultureName (Optional)
Type: SystemString
Culture to use for parsing values. English culture is used if not specified.

Return Value

Type: Object
Parsed value converted to given type.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when value is null.
Remarks
In case a special expression "##null##" is in value, DBNull.Value is returned.
See Also