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.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
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