XmlCDataSection XmlCDataSection XmlCDataSection XmlCDataSection XmlCDataSection Class

Definition

Represents a CDATA section of an XML document.

public : sealed class XmlCDataSection : IXmlCDataSection, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer, IXmlText
struct winrt::Windows::Data::Xml::Dom::XmlCDataSection : IXmlCDataSection, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer, IXmlText
public sealed class XmlCDataSection : IXmlCDataSection, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer, IXmlText
Public NotInheritable Class XmlCDataSection Implements IXmlCDataSection, IXmlCharacterData, IXmlNode, IXmlNodeSelector, IXmlNodeSerializer, IXmlText
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

Attributes Attributes Attributes Attributes Attributes

Gets the list of attributes of this node.

ChildNodes ChildNodes ChildNodes ChildNodes ChildNodes

Gets a list of children in the current node. This property always returns NULL.

Data Data Data Data Data

Gets or sets the node data depending on the node type.

FirstChild FirstChild FirstChild FirstChild FirstChild

Gets the first child node. This property always returns NULL.

InnerText InnerText InnerText InnerText InnerText

Gets the text from inside the XML.

LastChild LastChild LastChild LastChild LastChild

Gets the last child node. This property always returns NULL because the CDataSection does not have children.

Length Length Length Length Length

Gets the length of the data, in Unicode characters.

LocalName LocalName LocalName LocalName LocalName

Gets the local name, which is the local part of a qualified name. This is called the local part in Namespaces in XML.

NamespaceUri NamespaceUri NamespaceUri NamespaceUri NamespaceUri

Returns the Uniform Resource Identifier (URI) for the namespace.

NextSibling NextSibling NextSibling NextSibling NextSibling

Gets the next sibling of the node in the parent's child list.

NodeName NodeName NodeName NodeName NodeName

Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types.

NodeType NodeType NodeType NodeType NodeType

Gets the XML Document Object Model (DOM) node type, which determines valid values and whether the node can have child nodes.

NodeValue NodeValue NodeValue NodeValue NodeValue

Gets or sets the text associated with the node.

OwnerDocument OwnerDocument OwnerDocument OwnerDocument OwnerDocument

Returns the root of the document that contains the node.

ParentNode ParentNode ParentNode ParentNode ParentNode

Gets the parent node of the node instance.

Prefix Prefix Prefix Prefix Prefix

Gets or sets the namespace prefix.

PreviousSibling PreviousSibling PreviousSibling PreviousSibling PreviousSibling

Gets the previous sibling of the node in the parent's child list.

Methods

AppendChild(IXmlNode) AppendChild(IXmlNode) AppendChild(IXmlNode) AppendChild(IXmlNode) AppendChild(IXmlNode)

This method is not applicable to this class. The CDataSection does not have children. This method will throw an exception.

AppendData(String) AppendData(String) AppendData(String) AppendData(String) AppendData(String)

Appends the supplied string to the existing string data.

CloneNode(Boolean) CloneNode(Boolean) CloneNode(Boolean) CloneNode(Boolean) CloneNode(Boolean)

Clones a new node.

DeleteData(UInt32, UInt32) DeleteData(UInt32, UInt32) DeleteData(UInt32, UInt32) DeleteData(UInt32, UInt32) DeleteData(UInt32, UInt32)

Deletes specified data.

GetXml() GetXml() GetXml() GetXml() GetXml()

Returns the XML representation of the node and all its descendants.

HasChildNodes() HasChildNodes() HasChildNodes() HasChildNodes() HasChildNodes()

Determines whether a node has children. The CDataSection does not have children. This method always returns false.

InsertBefore(IXmlNode, IXmlNode) InsertBefore(IXmlNode, IXmlNode) InsertBefore(IXmlNode, IXmlNode) InsertBefore(IXmlNode, IXmlNode) InsertBefore(IXmlNode, IXmlNode)

Inserts a child node to the left of the specified node, or at the end of the child node list. This method is not applicable to this class and will throw an exception.

InsertData(UInt32, String) InsertData(UInt32, String) InsertData(UInt32, String) InsertData(UInt32, String) InsertData(UInt32, String)

Inserts a string at the specified offset.

Normalize() Normalize() Normalize() Normalize() Normalize()

Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node.

RemoveChild(IXmlNode) RemoveChild(IXmlNode) RemoveChild(IXmlNode) RemoveChild(IXmlNode) RemoveChild(IXmlNode)

Removes the specified child node from the list of children and returns it. This method is not applicable to this class as the CDataSection does not have children. This method will throw an exception.

ReplaceChild(IXmlNode, IXmlNode) ReplaceChild(IXmlNode, IXmlNode) ReplaceChild(IXmlNode, IXmlNode) ReplaceChild(IXmlNode, IXmlNode) ReplaceChild(IXmlNode, IXmlNode)

Replaces the specified old child node with the supplied new child node. This method is not applicable to this class as the CDataSection does not have children. This method will throw an exception.

ReplaceData(UInt32, UInt32, String) ReplaceData(UInt32, UInt32, String) ReplaceData(UInt32, UInt32, String) ReplaceData(UInt32, UInt32, String) ReplaceData(UInt32, UInt32, String)

Replaces the specified number of characters with the supplied string.

SelectNodes(String) SelectNodes(String) SelectNodes(String) SelectNodes(String) SelectNodes(String)

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList. This method is not applicable to this class and will throw an exception.

SelectNodesNS(String, Object) SelectNodesNS(String, Object) SelectNodesNS(String, Object) SelectNodesNS(String, Object) SelectNodesNS(String, Object)

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an XmlNodeList. This method is not applicable to this class and will throw an exception.

SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String) SelectSingleNode(String)

Applies the specified pattern-matching operation to this node's context and returns the first matching node. This method is not applicable to this class and will throw an exception.

SelectSingleNodeNS(String, Object) SelectSingleNodeNS(String, Object) SelectSingleNodeNS(String, Object) SelectSingleNodeNS(String, Object) SelectSingleNodeNS(String, Object)

Applies the specified pattern-matching operation to this node's context and returns the first matching node. This method is not applicable to this class and will throw an exception.

SplitText(UInt32) SplitText(UInt32) SplitText(UInt32) SplitText(UInt32) SplitText(UInt32)

Splits this text node into two text nodes at the specified offset and inserts the new text node into the tree as a sibling that immediately follows this node.

SubstringData(UInt32, UInt32) SubstringData(UInt32, UInt32) SubstringData(UInt32, UInt32) SubstringData(UInt32, UInt32) SubstringData(UInt32, UInt32)

Retrieves a substring of the full string from the specified range.