Show / Hide Table of Contents

    Class XmlDocumentConverter

    This utility class is designed to make System.Xml.XmlDocument related conversions easier to work with.

    Inheritance
    System.Object
    XmlDocumentConverter
    Namespace: Cuemon.Xml
    Assembly: Cuemon.Xml.dll
    Syntax
    public static class XmlDocumentConverter

    Methods

    | Improve this Doc

    FromReader(XmlReader)

    Converts the given System.Xml.XmlReader to an System.Xml.XmlDocument.

    Declaration
    public static XmlDocument FromReader(XmlReader value)
    Parameters
    Type Name Description
    System.Xml.XmlReader value

    The System.Xml.XmlReader to be converted.

    Returns
    Type Description
    System.Xml.XmlDocument

    An System.Xml.XmlDocument object.

    | Improve this Doc

    FromReader(XmlReader, Boolean)

    Converts the given System.Xml.XmlReader to an System.Xml.XmlDocument.

    Declaration
    public static XmlDocument FromReader(XmlReader value, bool leaveStreamOpen)
    Parameters
    Type Name Description
    System.Xml.XmlReader value

    The System.Xml.XmlReader to be converted.

    System.Boolean leaveStreamOpen

    if true, the System.Xml.XmlReader object is being left open; otherwise it is being closed and disposed.

    Returns
    Type Description
    System.Xml.XmlDocument

    An System.Xml.XmlDocument object.

    | Improve this Doc

    FromStream(Stream)

    Converts the given System.IO.Stream to an System.Xml.XmlDocument. The stream is closed and disposed of afterwards.

    Declaration
    public static XmlDocument FromStream(Stream value)
    Parameters
    Type Name Description
    System.IO.Stream value

    The System.IO.Stream to be converted.

    Returns
    Type Description
    System.Xml.XmlDocument

    An System.Xml.XmlDocument object.

    | Improve this Doc

    FromStream(Stream, Boolean)

    Converts the given System.IO.Stream to an System.Xml.XmlDocument.

    Declaration
    public static XmlDocument FromStream(Stream value, bool leaveStreamOpen)
    Parameters
    Type Name Description
    System.IO.Stream value

    The System.IO.Stream to be converted.

    System.Boolean leaveStreamOpen

    if true, the System.IO.Stream object is being left open; otherwise it is being closed and disposed.

    Returns
    Type Description
    System.Xml.XmlDocument

    An System.Xml.XmlDocument object.

    | Improve this Doc

    FromString(String)

    Converts the given string to an System.Xml.XmlDocument.

    Declaration
    public static XmlDocument FromString(string value)
    Parameters
    Type Name Description
    System.String value

    The string to be converted.

    Returns
    Type Description
    System.Xml.XmlDocument

    An XmlDocumentobject.

    | Improve this Doc

    FromUri(Uri)

    Converts the given URI to an System.Xml.XmlDocument.

    Declaration
    public static XmlDocument FromUri(Uri value)
    Parameters
    Type Name Description
    System.Uri value

    The URI to be converted.

    Returns
    Type Description
    System.Xml.XmlDocument

    An XmlDocumentobject.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • FromReader(XmlReader)
      • FromReader(XmlReader, Boolean)
      • FromStream(Stream)
      • FromStream(Stream, Boolean)
      • FromString(String)
      • FromUri(Uri)
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX