IXmlCharacterData IXmlCharacterData IXmlCharacterData IXmlCharacterData Interface

Definition

Provides text manipulation methods that are used by several objects.

public : interface IXmlCharacterData : IXmlNode, IXmlNodeSelector, IXmlNodeSerializer
public interface IXmlCharacterData : IXmlNode, IXmlNodeSelector, IXmlNodeSerializer
Public Interface IXmlCharacterData Implements IXmlNode, IXmlNodeSelector, IXmlNodeSerializer
// You can't instantiate an interface directly in JavaScript. You can use objects that implement the interface, however.
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Interface inheritance

IXmlCharacterData inherits IXmlNode, IXmlNodeSelector, and IXmlNodeSerializer. Types that implement IXmlCharacterData also implement the interface members of IXmlNode, IXmlNodeSelector, and IXmlNodeSerializer.

Properties

Attributes Attributes Attributes Attributes

Gets the list of attributes of this node.

(Inherited from IXmlNode)

ChildNodes ChildNodes ChildNodes ChildNodes

Gets a list of children in the current node.

(Inherited from IXmlNode)

Data Data Data Data

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

public : Platform::String Data { get; set; }
public string Data { get; set; }
Public ReadWrite Property Data As string
var string = iXmlCharacterData.data;
iXmlCharacterData.data = string;
Value
Platform::String string string string

The node data.

FirstChild FirstChild FirstChild FirstChild

Gets the first child node.

(Inherited from IXmlNode)

InnerText InnerText InnerText InnerText

Gets and sets the text from inside the XML.

(Inherited from IXmlNodeSerializer)

LastChild LastChild LastChild LastChild

Gets the last child node.

(Inherited from IXmlNode)

Length Length Length Length

Gets the length of the data, in Unicode characters.

public : unsigned int Length { get; }
public uint Length { get; }
Public ReadOnly Property Length As uint
var uint = iXmlCharacterData.length;
Value
unsigned int uint uint uint

The length of the data, in Unicode characters.

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.

(Inherited from IXmlNode)

NamespaceUri NamespaceUri NamespaceUri NamespaceUri

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

(Inherited from IXmlNode)

NextSibling NextSibling NextSibling NextSibling

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

(Inherited from IXmlNode)

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.

(Inherited from IXmlNode)

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.

(Inherited from IXmlNode)

NodeValue NodeValue NodeValue NodeValue

Gets or sets the text associated with the node.

(Inherited from IXmlNode)

OwnerDocument OwnerDocument OwnerDocument OwnerDocument

Returns the root of the document that contains the node.

(Inherited from IXmlNode)

ParentNode ParentNode ParentNode ParentNode

Gets the parent node of the node instance.

(Inherited from IXmlNode)

Prefix Prefix Prefix Prefix

Gets or sets the namespace prefix.

(Inherited from IXmlNode)

PreviousSibling PreviousSibling PreviousSibling PreviousSibling

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

(Inherited from IXmlNode)

Methods

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

Appends a new child node as the last child of the node.

(Inherited from IXmlNode)

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

Appends the supplied string to the existing string data.

public : void AppendData(Platform::String data)
public void AppendData(String data)
Public Function AppendData(data As String) As void
iXmlCharacterData.appendData(data);
Parameters
data
Platform::String String String String

The data to be appended to the existing string.

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

Clones a new node.

(Inherited from IXmlNode)

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

Deletes specified data.

public : void DeleteData(unsigned int offset, unsigned int count)
public void DeleteData(UInt32 offset, UInt32 count)
Public Function DeleteData(offset As UInt32, count As UInt32) As void
iXmlCharacterData.deleteData(offset, count);
Parameters
offset
unsigned int UInt32 UInt32 UInt32

The offset, in characters, at which to start deleting the string data.

count
unsigned int UInt32 UInt32 UInt32

The number of characters to delete.

GetXml GetXml GetXml GetXml

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

(Inherited from IXmlNodeSerializer)

HasChildNodes HasChildNodes HasChildNodes HasChildNodes

Determines whether a node has children.

(Inherited from 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 list.

(Inherited from IXmlNode)

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

Inserts a string at the specified offset.

public : void InsertData(unsigned int offset, Platform::String data)
public void InsertData(UInt32 offset, String data)
Public Function InsertData(offset As UInt32, data As String) As void
iXmlCharacterData.insertData(offset, data);
Parameters
offset
unsigned int UInt32 UInt32 UInt32

The offset, in characters, at which to insert the supplied string data.

data
Platform::String String String String

The data to be inserted into the existing string.

Normalize Normalize Normalize Normalize

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

(Inherited from IXmlNode)

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

Removes the specified child node from the list of children and returns it.

(Inherited from 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.

(Inherited from IXmlNode)

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.

public : void ReplaceData(unsigned int offset, unsigned int count, Platform::String data)
public void ReplaceData(UInt32 offset, UInt32 count, String data)
Public Function ReplaceData(offset As UInt32, count As UInt32, data As String) As void
iXmlCharacterData.replaceData(offset, count, data);
Parameters
offset
unsigned int UInt32 UInt32 UInt32

The offset, in characters, at which to start replacing string data.

count
unsigned int UInt32 UInt32 UInt32

The number of characters to replace.

data
Platform::String String String String

The new data that replaces the old string data.

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.

(Inherited from IXmlNodeSelector)

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.

(Inherited from IXmlNodeSelector)

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.

(Inherited from IXmlNodeSelector)

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.

(Inherited from IXmlNodeSelector)

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

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

public : Platform::String SubstringData(unsigned int offset, unsigned int count)
public string SubstringData(UInt32 offset, UInt32 count)
Public Function SubstringData(offset As UInt32, count As UInt32) As string
var string = iXmlCharacterData.substringData(offset, count);
Parameters
offset
unsigned int UInt32 UInt32 UInt32

Specifies the offset, in characters, from the beginning of the string. An offset of zero indicates copying from the start of the data.

count
unsigned int UInt32 UInt32 UInt32

Specifies the number of characters to retrieve from the specified offset.

Returns
Platform::String string string string

The returned substring.

See Also