Windward Studios API Reference
XPathDataSource Class
Members  See Also  Send comments on this topic.
WindwardReportsDrivers.net.windward.datasource.xml Namespace : XPathDataSource Class




Glossary Item Box

This supplies a data source to Windward Reports using XPathDatasource. To reference a data element from a <wr:forEach ... var="item" > or <wr:query ... var="item" > tag inside another tag, use the following construct: '${item}/xpath' where xpath is an xpath reference from the node defined by item and the reference will return a single element. When inside a forEach where step='N' where N > 1, you can also use ${item[1]}/xpath ... ${item[N-1]}/xpath to reference data for the N rows in each step. ${item[0]}/xpath is legal but redundent. You can also use <wr:if test='$item[1]}'> which will return true if the row[1] exists. Keep in mind that [1], [2], ... is not an absolute count but an offset from the base row presently on in the loop. And you cannot index past the set of rows that are the row presently on and the rows that will be skipped by step. useful info on namespaces at http://www.hanselman.com/blog/GetNamespacesFromAnXMLDocumentWithXPathDocumentAndLINQToXML.aspx

Object Model

XPathDataSource ClassIDataSourceMetaData Interface

Syntax

Visual Basic (Declaration) 
<ObsoleteAttribute("Use SaxonDataSource (XPath 3.1) instead")>
Public Class XPathDataSource 
   Inherits WindwardReportsDrivers.net.windward.datasource.DotNetDatasourceBase
   Implements net.windward.datasource.DataSourceProvider, WindwardInterfaces.net.windward.datasource.IDataSourceProviderMetaData 
Visual Basic (Usage)Copy Code
Dim instance As XPathDataSource
C# 
[Obsolete("Use SaxonDataSource (XPath 3.1) instead")]
public class XPathDataSource : WindwardReportsDrivers.net.windward.datasource.DotNetDatasourceBase, net.windward.datasource.DataSourceProvider, WindwardInterfaces.net.windward.datasource.IDataSourceProviderMetaData  
Managed Extensions for C++ 
[Obsolete("Use SaxonDataSource (XPath 3.1) instead")]
public __gc class XPathDataSource : public WindwardReportsDrivers.net.windward.datasource.DotNetDatasourceBase, net.windward.datasource.DataSourceProvider, WindwardInterfaces.net.windward.datasource.IDataSourceProviderMetaData  
C++/CLI 
[Obsolete("Use SaxonDataSource (XPath 3.1) instead")]
public ref class XPathDataSource : public WindwardReportsDrivers.net.windward.datasource.DotNetDatasourceBase, net.windward.datasource.DataSourceProvider, WindwardInterfaces.net.windward.datasource.IDataSourceProviderMetaData  

Inheritance Hierarchy

System.Object
   WindwardReportsDrivers.net.windward.datasource.DotNetDatasourceBase
      WindwardReportsDrivers.net.windward.datasource.xml.XPathDataSource

Requirements

Namespace: WindwardReportsDrivers.net.windward.datasource.xml

Platforms: Windows 10, Windows NT, indows Server

Assembly: WindwardReportsDrivers (in C:\agent\_work\1\s\Engine\DotNetEngine\WindwardReportsDrivers\bin\Release\net461\WindwardReportsDrivers.dll)

See Also

Windward Studios - .NET Document Generation software