GetLanguageAlternative(String, String, String?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Returns one alternative of a language alternative such as dc:title.

public string? GetLanguageAlternative(string namespaceName, string name, string? language = null)

Parameters

namespaceName
String

The namespace name.

name
String

The local name.

language
String

The language wanted, such as de; null for the default.

Returns

String
The item whose xml:lang is language (compared without case), else the x-default item, else the first item; the value itself when the property is simple; null when absent.

Remarks

ISO 16684-1 §8.2.2.4.