NanoXLSX Library Documentation
![]() | WorksheetReaderGetAttribute Method |
Gets the attribute with the passed name.
Namespace: NanoXLSX.LowLevel
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)

C#
private string GetAttribute( string targetName, XmlNode node, string defaultValue )
Parameters
- targetName
- Type: SystemString
Name of the target attribute - node
- Type: System.XmlXmlNode
XML node that contains the attribute - defaultValue
- Type: SystemString
Default value if the attribute was not found
Return Value
Type: StringAttribute value as string or default value if not found (can be null)
