| Home->
Tutorial->binding xml data
In this step, You will bind the xml data which made at preparation
stage. In the bind xml data lesson, you will learn the usage of xml
data control and Xpath technology!
 |
In the previous lesson, you create xml binding empty report layout.
At this point, a xml data control will be created in the Detail band
of Canvas. You can easily find the named control using Explorer pane.
If you select the XML data contorol, click the left mouse button to
setup properties. |
| |
|
 |
Click the Properties in the context
menu.
Then, XML data control Dialog box will be shown.

|
In the XML properties Dialog, there are two property
will be shown.
In the FileURL input box, you have to insert xml data file or
the url of xml data generating web application.
Our lesson, the FileURL will be "http://localhost/newhome/xml/customer.asp"
which was introduced at preparation stage.
Next, You have to insert xml node list of xml data which defined
at FileURL property. If you don't know what is the xml node then
type "//" for archive the DOM structure.
Click the "OK" button to close the XML data control
Dialog box. Next, Click the Field retrieve icon( )
in the Fields Explorer.
 |
After clicked Field retrieve,
ActiveReport Designer Studio load the xml data from FileURL
and build the DOM architechture of xml.
Next, expand all node of DOM and point the root element
node using mouse. Then, the current Xpath will be shown
at the bottom of Fields Explorer.
In this lesson, the Xpath will be customers.
Modify the RecordsetPattern value to "//customers"
in the Property ToolBox.
 |
Using XML data control, you must know xml
primer. Above precedure is the standard technique of XML.
It is not difficult.
After setting the RecordsetPattern corectly, then re-click
the fields retrieve button( )
in the Fields Explorer. You'll find the red arrot move to
<customers> node from <root> node! This procedure
is very important to binding xml data to Field controls.
|
|
|