This documentation is archived and is not being maintained.

CultureAndRegionInfoBuilder::CreateFromLdml Method

Reconstitutes a CultureAndRegionInfoBuilder object from a specified XML file that contains a representation of the object.

Namespace:  System.Globalization
Assembly:  sysglobl (in sysglobl.dll)

public:
static CultureAndRegionInfoBuilder^ CreateFromLdml(
	String^ xmlFileName
)

Parameters

xmlFileName
Type: System::String
A file name that contains the XML representation of a CultureAndRegionInfoBuilder object.

Return Value

Type: System.Globalization::CultureAndRegionInfoBuilder
A new CultureAndRegionInfoBuilder object that is equivalent to the information stored in the xmlFileName parameter.

ExceptionCondition
ArgumentNullException

xmlFileName is nullptr.

ArgumentException

xmlFileName is an empty string (""), or invalid file or path name.

XmlException

The data in xmlFileName is not in valid XML format.

-or-

An I/O error occurred while accessing xmlFileName.

XmlSchemaValidationException

The data in xmlFileName is not in valid LDML format.

The xmlFileName parameter specifies a file name that contains the XML representation of a CultureAndRegionInfoBuilder object. The format of the XML file is called Locale Data Markup Language (LDML) version 1.1. A new CultureAndRegionInfoBuilder object is created and initialized with the data in xmlFileName.

The Save method performs the reverse operation of the CreateFromLdml method.

For more information about the LDML standard, see Unicode Technical Standard #35, "Locale Data Markup Language (LDML)," at the Unicode home site.

The following code example demonstrates the Save and CreateFromLdml methods.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: