Table of Contents

Class XmlGeneratorSelective

Namespace
SunamoXml.Generators
Assembly
SunamoXml.dll

Extends XmlGenerator with selective attribute writing, allowing certain attributes to be excluded.

public class XmlGeneratorSelective : XmlGenerator
Inheritance
XmlGeneratorSelective
Inherited Members
Extension Methods

Methods

ToString()

Returns the generated XML content as a string.

public override string ToString()

Returns

string

WriteTagWithAttrsSelective(string, List<string>, List<string>)

Writes an opening tag with attributes, excluding those whose names appear in the exclusion list.

public void WriteTagWithAttrsSelective(string tagName, List<string> excludedAttributes, List<string> attributes)

Parameters

tagName string

The element name.

excludedAttributes List<string>

List of attribute names to exclude from the output.

attributes List<string>

List of alternating attribute names and values.