Static class with common util methods, used during reading XLSX files.
More...
|
| static string | GetAttribute (XmlNode node, string targetName, string fallbackValue=null) |
| | Gets the XML attribute of the passed XML node by its name.
|
| static bool | GetAttributeOfChild (XmlNode node, string childNodeName, string attributeName, out string output) |
| | Gets the XML attribute from a child node of the passed XML node by its name and the name of the child node. This method simplifies the process of gathering one single child node attribute.
|
| static XmlNode | GetChildNode (XmlNode node, string name) |
| | Gets the specified child node.
|
Static class with common util methods, used during reading XLSX files.
Definition at line 17 of file ReaderUtils.cs.
◆ GetAttribute()
| string NanoXLSX.Internal.ReaderUtils.GetAttribute |
( |
XmlNode | node, |
|
|
string | targetName, |
|
|
string | fallbackValue = null ) |
|
static |
Gets the XML attribute of the passed XML node by its name.
- Parameters
-
| node | XML node that contains the attribute |
| targetName | Name of the target attribute |
| fallbackValue | Optional fallback value if the attribute was not found. Default is null |
- Returns
- Attribute value as string or default value if not found (can be null)
Definition at line 26 of file ReaderUtils.cs.
◆ GetAttributeOfChild()
| bool NanoXLSX.Internal.ReaderUtils.GetAttributeOfChild |
( |
XmlNode | node, |
|
|
string | childNodeName, |
|
|
string | attributeName, |
|
|
out string | output ) |
|
static |
Gets the XML attribute from a child node of the passed XML node by its name and the name of the child node. This method simplifies the process of gathering one single child node attribute.
- Parameters
-
| node | XML node that contains the child node |
| childNodeName | Name of the child node |
| attributeName | Name of the attribute in the child node |
| output | Value of the attribute as string or null if not found |
- Returns
- True if found, otherwise false
Definition at line 53 of file ReaderUtils.cs.
◆ GetChildNode()
| XmlNode NanoXLSX.Internal.ReaderUtils.GetChildNode |
( |
XmlNode | node, |
|
|
string | name ) |
|
static |
Gets the specified child node.
- Parameters
-
| node | XML node that contains child node |
| name | Name of the child node |
- Returns
- Child node or null if not found
Definition at line 71 of file ReaderUtils.cs.
The documentation for this class was generated from the following file: