LiquidTechnologies.XmlObjects Namespace / LxLinqExtensions Class / ReplaceInnerXml Method / ReplaceInnerXml(XElement,String) Method
The target System.Xml.Linq.XElement
The XML data to be parsed and placed into the element.
Example

In This Topic
    ReplaceInnerXml(XElement,String) Method
    In This Topic
    Replaces the contents of the System.Xml.Linq.XElement (not the attributes) with the XML data parsed from xmlInnerContent
    Syntax
    'Declaration
     
    
    Public Overloads Shared Sub ReplaceInnerXml( _
       ByVal element As System.Xml.Linq.XElement, _
       ByVal xmlInnerContent As System.String _
    ) 
    public static void ReplaceInnerXml( 
       System.Xml.Linq.XElement element,
       System.string xmlInnerContent
    )

    Parameters

    element
    The target System.Xml.Linq.XElement
    xmlInnerContent
    The XML data to be parsed and placed into the element.
    Example
    XElement element = ... 
    element.ReplaceInnerXml("some <b>basic>b> html");
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also