Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Xml.Declaration

Summary

Represents an XML Declaration (for example, <?xml version="1.0" encoding="UTF-8" standalone="no"?>).

Constructors

Declaration(string name, IEnumerable<Attribute> attributes)
Represents an XML Declaration (for example, <?xml version="1.0" encoding="UTF-8" standalone="no"?>).

Instance methods

void
Add(Attribute attribute)
  • Inherited from Tag
Adds an attribute. Throws an exception if an attribute by this name already exists.
void
Add(Node node)
  • Inherited from Tag
Appends the specified node (which could be a Text or a Tag) to the end of this tag’s children.
void
Add(string name, string value)
  • Inherited from Tag
Adds an attribute. Throws an exception if an attribute by this name already exists.
void
AddRange(IEnumerable<Node> nodes)
  • Inherited from Tag
Appends the specified nodes to the end of this tag’s children.
void
AddRange(IEnumerable<Attribute> attributes)
  • Inherited from Tag
Adds the specified attributes to this tag. If an attribute with the same name already exists, an exception occurs.
void
Remove(Node node)
  • Inherited from Tag
Removes the specified node from this tag’s children.
void
RemoveAll(Predicate<Node> predicate)
  • Inherited from Tag
Removes nodes that satisfy the given predicate from this tag’s children.
bool
RemoveAttribute(string name)
  • Inherited from Tag
Removes an attribute, if present, and returns a value indicating whether an attribute was removed.
void
Set(Attribute attribute)
  • Inherited from Tag
Adds or replaces an attribute.
void
Set(string name, string value)
  • Inherited from Tag
void
SetRange(IEnumerable<Attribute> attributes)
  • Inherited from Tag
Adds or replaces the specified attributes on this tag.
string
  • Overrides: object.ToString()
Refer to the documentation for object.ToString.

Operators

NodeImplicit conversion from String to Text.

Instance properties

TagRefer to the documentation for Node.AsTag.
TagCollectionRefer to the documentation for Node.AsTags.
IEnumerable<Attribute>
  • Inherited from Tag
Enumerates the attributes on this tag.
IEnumerable<Node>
  • Inherited from Tag
Returns this tag’s child nodes, including Text nodes.
TagCollection
  • Inherited from Tag
Returns this tag’s child tags. (Text nodes are ignored.)
IContent
this[string selector]
Refer to the documentation for Node.this[].
string
  • Inherited from Tag
Returns the name of this tag.
stringRefer to the documentation for Node.Value.