Definition
Assembly: CloudNimble.XmlEssentials.dll Namespace: CloudNimble.Text.Xml.Serialization Inheritance: CloudNimble.Text.Xml.Serialization.XmlMixedContentItemSyntax
Summary
Represents a child element in mixed content. This class cannot be inherited.Usage
AnXmlMixedElement 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:
Press <Key>Ctrl</Key> and <Key>S</Key> to save., the code produces the following output:
Considerations
- An item whose
Elementisnullis 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.XmlMixedContentItemSyntax
.ctor Inherited
Inherited from
objectSyntax
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
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?
Related APIs
- 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