public class XmlUtil

Summary

Miscellaneous helpful XML utilities.

Method Summary

Flags Name Summary
public static XmlTextWriter CreateIndentedXmlWriter(Stream stream)

Constructs an indenting XmlTextWriter that writes to the supplied stream.

public static XmlTextWriter CreateIndentedXmlWriter(string path)

Constructs an indenting XmlTextWriter that writes to the supplied file name.

public static XmlTextWriter CreateIndentedXmlWriter()

Constructs an indenting XmlTextWriter that writes to a fresh MemoryStream.

public static XmlDocument SerializeObject(Type serializationType, object obj)

Serializes an arbitrary serializable object to an XML document.

Method Detail

CreateIndentedXmlWriter

public static XmlTextWriter CreateIndentedXmlWriter(Stream stream)

Flags public static
Return type XmlTextWriter
Parameters
Name Type
stream Stream

Summary

Constructs an indenting XmlTextWriter that writes to the supplied stream.

CreateIndentedXmlWriter

public static XmlTextWriter CreateIndentedXmlWriter(string path)

Flags public static
Return type XmlTextWriter
Parameters
Name Type
path string

Summary

Constructs an indenting XmlTextWriter that writes to the supplied file name.

CreateIndentedXmlWriter

public static XmlTextWriter CreateIndentedXmlWriter()

Flags public static
Return type XmlTextWriter

Summary

Constructs an indenting XmlTextWriter that writes to a fresh MemoryStream.

SerializeObject

public static XmlDocument SerializeObject(Type serializationType, object obj)

Flags public static
Return type XmlDocument
Parameters
Name Type
serializationType Type
obj object

Summary

Serializes an arbitrary serializable object to an XML document.