combit List & Label 29 - .NET Help
combit.Reporting.DataProviders Namespace / XmlDataProvider Class / XmlDataProvider Constructor / XmlDataProvider Constructor(IXPathNavigable)
The IXPathNavigable to use (e.g. XPathDocument).
Example


In This Topic
    XmlDataProvider Constructor(IXPathNavigable)
    In This Topic
    Initializes the data provider to access the data in the specified IXPathNavigable.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal document As IXPathNavigable _
    )
    public XmlDataProvider( 
       IXPathNavigable document
    )
    public:
    XmlDataProvider( 
       IXPathNavigable^ document
    )

    Parameters

    document
    The IXPathNavigable to use (e.g. XPathDocument).
    Example
    XPathDocument myDoc = new XPathDocument(@"c:\users\public\data.xml");
    XmlDataProvider provider = new XmlDataProvider(myDoc);
    LL.DataSource = provider;
    LL.Design();
    Dim myDoc As New XPathDocument("c:\users\public\data.xml")
    Dim provider As New XmlDataProvider(myDoc)
    LL.DataSource = provider
    LL.Design()
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also