Table of Contents

Namespace Cuemon.Xml

Assembly: Cuemon.Xml.dll

Serialize, encode, convert, and transform XML data with a lightweight XML serializer framework offering flexibility comparable to the JSON equivalent from Newtonsoft. Use this namespace when you need XML encoding detection, reader chunking, structured XML writing, or serialization. Start with ToXmlReader on IDecorator<Stream> for XML parsing, or EscapeXml on IDecorator<String> for XML-safe text.

Availability: .NET 10, .NET 9 and .NET Standard 2.0

Complements: System.Xml namespace 🔗

Extension Members

Type Ext Methods
IDecorator<IHierarchy> ⬇️ HasXmlIgnoreAttribute, IsNodeEnumerable, GetXmlQualifiedEntity, TryGetXmlTextAttribute, TryGetXmlAttributeAttribute, TryGetXmlRootAttribute, TryGetXmlElementAttribute
IDecorator<IEnumerable<IHierarchy>> ⬇️ OrderByXmlAttributes<T>
IDecorator ⬇️ ToXmlReader, TryDetectXmlEncoding
IDecorator ⬇️ EscapeXml, UnescapeXml, SanitizeXmlElementName, SanitizeXmlElementText
IDecorator ⬇️ Chunk, MoveToFirstElement, ToHierarchy
IDecorator ⬇️ WriteStartElement, WriteObject, WriteObject<T>, WriteEncapsulatingElementIfNotNull<T>, WriteXmlRootElement, WriteXmlRootElement<T>

Related: Cuemon.Extensions.Xml namespace 📘

Classes

HierarchyDecoratorExtensions

Extension methods for the IHierarchy<T> interface hidden behind the IDecorator<T> interface.

StreamDecoratorExtensions

Extension methods for the Stream class hidden behind the IDecorator<T> interface.

StringDecoratorExtensions

Extension methods for the string class hidden behind the IDecorator<T> interface.

XmlDocumentFactory

Provides access to factory methods for creating and configuring XmlDocument instances.

XmlEncodingOptions

Configuration options for XmlEncodingOptions.

XmlReaderDecoratorExtensions

Extension methods for the XmlReader class hidden behind the IDecorator<T> interface.

XmlStreamFactory

Provides access to factory methods for creating and configuring Stream instances.

XmlWriterDecoratorExtensions

Extension methods for the XmlWriter class hidden behind the IDecorator<T> interface.