Skip to main content

Definition

Assembly: CloudNimble.XmlEssentials.dll Namespace: CloudNimble.Text.Xml.Serialization Inheritance: CloudNimble.Text.Xml.Serialization.XmlMixedContentItem

Syntax

Summary

Represents a child element in mixed content. This class cannot be inherited.

Usage

An XmlMixedElement is a child element inside mixed content. Its Element property holds the element as an XmlElementNode, with its attributes and everything inside it. When you read, get the name, attributes, and content from the node. When you write, build a node and wrap it:
Added to the paragraph Press <Key>Ctrl</Key> and <Key>S</Key> to save., the code produces the following output:
View the complete sample on GitHub

Considerations

  • An item whose Element is null is skipped when the list is written.
  • The element is a DOM node, not a typed object. To turn it into an object, pass the node to XmlSerializer.Deserialize<T>(XmlNode).
  • The node is mutable. Changes you make to it are written the next time you serialize.

Constructors

.ctor

Initializes a new instance of the XmlMixedElement class that has no element.

Syntax

.ctor

Initializes a new instance of the XmlMixedElement class with the specified element.

Syntax

Parameters

.ctor Inherited

Inherited from CloudNimble.Text.Xml.Serialization.XmlMixedContentItem

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

Element

Gets or sets the child element.

Syntax

Property Value

Type: CloudNimble.Text.Xml.Nodes.XmlElementNode? The child element, or null if none is set. An item whose element is null is not written. The default is null.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?
  • CloudNimble.Text.Xml.Serialization.XmlMixedContentItem
  • CloudNimble.Text.Xml.Serialization.XmlMixedText
  • CloudNimble.Text.Xml.Serialization.XmlMixedAttribute
  • CloudNimble.Text.Xml.Nodes.XmlElementNode
  • CloudNimble.Text.Xml.Nodes.XmlNode