Click or drag to resize
NanoXLSX

ReaderUtilsGetAttribute Method

Gets the XML attribute of the passed XML node by its name

Namespace: NanoXLSX.LowLevel
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntax
C#
public static string GetAttribute(
	XmlNode node,
	string targetName,
	string fallbackValue = null
)

Parameters

node  XmlNode
XML node that contains the attribute
targetName  String
Name of the target attribute
fallbackValue  String  (Optional)
Optional fallback value if the attribute was not found. Default is null

Return Value

String
Attribute value as string or default value if not found (can be null)
See Also