Build Component UtilitiesGet Inner Xml Method
This is used to get the inner XML of a node without changing the spacing
Definition
Namespace: Sandcastle.Core.BuildAssembler
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
The inner XML as a string with its spacing preserved
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static string GetInnerXml(
this XPathNavigator node
)VB
<ExtensionAttribute>
Public Shared Function GetInnerXml (
node As XPathNavigator
) As StringC++
public:
[ExtensionAttribute]
static String^ GetInnerXml(
XPathNavigator^ node
)F#
[<ExtensionAttribute>]
static member GetInnerXml :
node : XPathNavigator -> string Parameters
- node XPathNavigator
- The node from which to get the inner XML
Return Value
StringThe inner XML as a string with its spacing preserved
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type XPathNavigator. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
| ArgumentNullException | This is thrown if the node parameter is null. |