XmlNode

Description

abstract class Tinman.Core.Xml.XmlNode

Derived from

PsiNode abstract
IEquatable<XmlNode>
ICopyable<XmlNode>
ICodeOutput

Extended by

XmlChar sealed
XmlData sealed
XmlDocument sealed
XmlEntity sealed
XmlLiteral sealed
XmlNodeWithParent abstract
XmlSpace sealed
XmlText sealed

Abstract base class for XML document model nodes.

All XmlNode classes output parsable XML source code via the ICodeOutput interface, where object.ToString delegates to ICodeOutput.ToSourceCode1, using default parameters values.

Public / Methods

To​Text

2 overloads


public method ToText1 → ()

returns → string

The text content.

Returns the text content of this XML node.


[EmptyBody]
public virtual method ToText2 → (1)

sb in : StringBuilder

[not-null]
The output to use.

Returns the text content of this XML node.

Public / Attributes

Is​Document​Content


[Constant]
public virtual attribute IsDocumentContent → (get)

value : bool

true if this XML node (and all items of the same type) may appear in the document content,
false if it may not.

Can this XML node appear in the top-level document content?

Is​Document​Preamble


[Constant]
public virtual attribute IsDocumentPreamble → (get)

value : bool

true if this XML node (and all items of the same type) may appear in the document preamble,
false if it may not.

Can this XML node appear in the top-level document preamble?

Is​Element​Content


[Constant]
public virtual attribute IsElementContent → (get)

value : bool

true if this XML node (and all items of the same type) may appear in element content,
false if it may not..

Can this XML node appear in element content?

Is​Literal​Content


[Constant]
public virtual attribute IsLiteralContent → (get)

value : bool

true if this XML node (and all items of the same type) may appear in literal content,
false if it may not.

Can this XML node appear in literal content?

Is​Text​Content


[Constant]
public virtual attribute IsTextContent → (get)

value : bool

true if this node represents plain text text content,
false if it does not.

Does this XML node represent plain text content, without structural markup?