XmlWriterExtensions Members
The XmlWriterExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
WriteAttributeIfNotEmpty |
A helper method to make it easier to output attributes. If the attributeValue is null or an empty string, output nothing, else output the given XML attribute.
|
|
WriteElement |
A helper method to make it more foolproof to write elements. This takes care of writing the start and end elment tags, and takes a nested closure with the code to write the content of the tag. That way the caller doesn't need to worry about the details of getting the start and end tags correct.
|
See Also
Microsoft.Practices.Unity.Configuration.ConfigurationHelpers Namespace