Click or drag to resize
NanoXLSX

ReaderUtilsGetAttributeOfChild Method

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

Namespace: NanoXLSX.LowLevel
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntax
C#
public static bool GetAttributeOfChild(
	XmlNode node,
	string childNodeName,
	string attributeName,
	out string output
)

Parameters

node  XmlNode
XML node that contains the child node
childNodeName  String
Name of the child node
attributeName  String
Name of the attribute in the child node
output  String
Value of the attribute as string or null if not found

Return Value

Boolean
True if found, otherwise false
See Also