Allows streams without a root element (i.e. multiple document fragments) to be passed to an XmlReader.

Namespace: Mvp.Xml.Common
Assembly: Mvp.Xml (in Mvp.Xml.dll)

Syntax

Visual Basic (Declaration)
Public Class XmlFragmentStream
    Inherits Stream
C#
public class XmlFragmentStream : Stream
C++
ref class XmlFragmentStream : Stream
J#
public class XmlFragmentStream extends Stream
JScript
public class XmlFragmentStream extends Stream

Remarks

A faked root element is added at the stream level to enclose the fragments, which can be customized using the overloaded constructors.

Author: Daniel Cazzulino, kzu.net@gmail.com

See: http://weblogs.asp.net/cazzu/archive/2004/04/23/119263.aspx.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.IO.Stream
         Mvp.Xml.Common.XmlFragmentStream

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also