 | ReaderUtilsGetAttribute Method |
Gets the XML attribute of the passed XML node by its name
Namespace: NanoXLSX.LowLevelAssembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.7+b0ed5f8a99a50b9e6528224889fbd7f23c30b364
Syntaxpublic 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
StringAttribute value as string or default value if not found (can be null)
See Also