XmlText

XmlText class

Represents one textual resource, which is a XML.

public sealed class XmlText : TextResourceBase

Properties

Name Description
ByteContent { get; } Returns content of this text resource as byte stream with original encoding
Encoding { get; } Returns encoding of this textual resource. Usually returns UTF-8.
FilenameWithExtension { get; } Returns correct filename of this text resource, which consists of name and extension
IsDisposed { get; } Determines whether this text resource is disposed or not
Name { get; } Returns name of this text resource without file extension
ParsedDocument { get; } Returns an “XmlDocument” from this XML resource
TextContent { get; } Returns content of this text resource as a standard string
override Type { get; } Returns TextType.Xml

Methods

Name Description
Dispose() Disposes this text resource, disposing its content and making most methods and properties non-working. Tolerant to multiple calls.
Equals(IHtmlResource) Checks this instance with specified on equality.
Save(string) Saves this text resource to the specified file

Events

Name Description
event Disposed Event, which occurs when this text resource is disposed

See Also