Peachpie.Library.XmlDom by Peachpie.Library.XmlDom

<PackageReference Include="Peachpie.Library.XmlDom" Version="0.9.18" />

 DOMCharacterData

public class DOMCharacterData : DOMNode
Represents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it.
public string data { get; set; }

Returns or sets the data of the node.

public int length { get; }

Returns the length of the data in characters.

public virtual void appendData(string arg)

Appends the specified string to the end of the character data of the node.

public virtual void deleteData(int offset, int count)

Removes a range of characters from the node.

public virtual void insertData(int offset, string arg)

Inserts the specified string at the specified character offset.

public virtual void replaceData(int offset, int count, string arg)

Replaces the specified number of characters starting at the specified offset with the specified string.

public virtual string substringData(int offset, int count)

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