Show / Hide Table of Contents

    Class XElementExtensions

    Extension methods for the System.Xml.Linq.XElement.

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

    Methods

    | Improve this Doc

    IsXmlString(String)

    Determines whether the specified value is a valid XML string.

    Declaration
    public static bool IsXmlString(this string value)
    Parameters
    Type Name Description
    System.String value

    The value to evaluate.

    Returns
    Type Description
    System.Boolean

    true if the specified value is a valid XML string; otherwise, false.

    | Improve this Doc

    TryParseXElement(String, LoadOptions, out XElement)

    Tries to load an System.Xml.Linq.XElement from a value that contains XML, optionally preserving white space and retaining line information.

    Declaration
    public static bool TryParseXElement(this string value, LoadOptions options, out XElement result)
    Parameters
    Type Name Description
    System.String value

    A System.String that contains XML.

    System.Xml.Linq.LoadOptions options

    A System.Xml.Linq.LoadOptions that specifies white space behavior, and whether to load base URI and line information.

    System.Xml.Linq.XElement result

    When this method returns, it contains the System.Xml.Linq.XElement populated from the value that contains XML, if the conversion succeeded, or a null reference (Nothing in Visual Basic) if the conversion failed.

    Returns
    Type Description
    System.Boolean

    true if the value parameter was converted successfully; otherwise, false.

    | Improve this Doc

    TryParseXElement(String, out XElement)

    Tries to load an System.Xml.Linq.XElement from a value that contains XML.

    Declaration
    public static bool TryParseXElement(this string value, out XElement result)
    Parameters
    Type Name Description
    System.String value

    A System.String that contains XML.

    System.Xml.Linq.XElement result

    When this method returns, it contains the System.Xml.Linq.XElement populated from the value that contains XML, if the conversion succeeded, or a null reference (Nothing in Visual Basic) if the conversion failed.

    Returns
    Type Description
    System.Boolean

    true if the value parameter was converted successfully; otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX