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.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
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