Returns the XML node or nodelist using the specified XPath pattern relative to the current node (record).
Specifies the XPath pattern relative to the current node.
A Boolean value that determines whether the XPath pattern should return a single node or a list of nodes.
Overload List
Example
| C# | Copy Code |
|---|
private void Detail_Format(object
sender, System.EventArgs eArgs)
{
DataDynamics.ActiveReports3.DataSources.XMLDataSource xDS = new DataDynamics.ActiveReports3.DataSources.XMLDataSource();
ActiveReport1 rpt = new ActiveReport1();
xDS.ValidateOnParse = true;
xDS.FileURL = System.Windows.Forms.Application.StartupPath + " \\customer.xml";
xDS.RecordsetPattern = "//ITEM";
xDS.NodeList = (System.Xml.XmlNodeList)ds.Field("ITEM",true);
this.Label1.Text = xDS.CurrentPosition;
Console.WriteLine(xDS.Count.ToString());
if (xDS.BOF && xDS.EOF)
{
return;
}
} |
| Visual Basic | Copy Code |
|---|
Private Sub Detail_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail.Format
Dim xDS As New DataDynamics.ActiveReports3.DataSources.XMLDataSource()
Dim rpt As New ActiveReport1()
xDS.ValidateOnParse = True
xDS.FileURL = System.Windows.Forms.Application.StartupPath + " \\customer.xml"
xDS.RecordsetPattern = "//ITEM"
xDS.NodeList = xDS.Field("ITEM", True)
Me.Label1.Text = xDS.CurrentPosition
Console.WriteLine(xDS.Count.ToString())
If xDS.BOF & xDS.EOF Then
Exit Sub
End If
End Sub |
See Also