Class CustomXMLNode
Represents the custom XML node in the custom XML part.
Inheritance
System.Object
CustomXMLNode
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.DocIO.DLS
Assembly: Syncfusion.DocIO.Base.dll
Syntax
public class CustomXMLNode
Properties
ChildNodes
Declaration
public IEnumerable<CustomXMLNode> ChildNodes { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<CustomXMLNode> |
FirstChild
Declaration
public CustomXMLNode FirstChild { get; }
Property Value
| Type | Description |
|---|---|
| CustomXMLNode |
LastChild
Declaration
public CustomXMLNode LastChild { get; }
Property Value
| Type | Description |
|---|---|
| CustomXMLNode |
OwnerPart
Declaration
public CustomXMLPart OwnerPart { get; }
Property Value
| Type | Description |
|---|---|
| CustomXMLPart |
ParentNode
Gets the parent element node of the current node.Read-only.
Declaration
public CustomXMLNode ParentNode { get; }
Property Value
| Type | Description |
|---|---|
| CustomXMLNode |
Text
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
XML
Declaration
public string XML { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
XPath
Declaration
public string XPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
AppendChildNode(String, CustomXMLNodeType, String)
Declaration
public void AppendChildNode(string name, CustomXMLNodeType nodeType, string nodeValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| CustomXMLNodeType | nodeType | |
| System.String | nodeValue |
Delete()
Deletes the current node from the tree (including all of its children, if any exist).
Declaration
public void Delete()
Examples
The following code illustrates how to delete CustomXMLNode from its parent.
HasChildNodes()
Declaration
public bool HasChildNodes()
Returns
| Type | Description |
|---|---|
| System.Boolean |
RemoveChild(CustomXMLNode)
Removes the specified child node (and its subtree) from the main tree.
Declaration
public void RemoveChild(CustomXMLNode child)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomXMLNode | child | CustomXMLNode to be removed. |
Examples
The following code illustrates how to remove child nodes of the CustomXMLNode
SelectSingleNode(String)
Selects a single node from a collection matching an XPath expression.
Declaration
public CustomXMLNode SelectSingleNode(string xPath)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | xPath | Xpath of CustomXMLNode to be selected. |
Returns
| Type | Description |
|---|---|
| CustomXMLNode | Returns the node from a collection matching an XPath expression. |
Examples
The following code illustrates how to select single node from CustomXMLNode based on XPath