Obtains through the received data a dataSource.
1 object.2dataSource
<object.2dataSource encoding='encoding'>
<object /> !
</object.2dataSource>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aencoding | string | Indicates the coding of the string of characters to process, for example ISO-8859-1 or UTF-8. If not specified, the one defined in the configuratio file for the server is used. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eobject | InputStream/byte[]/File/DataSource/DataHandler/Blob/String/Node | Element of which the dataSource is obtained. |
Returns | |
---|---|
Type | Description |
DataSource | It has a set of properties which identifies and describes the origin of data of the real world that represents. This properties includes information like the location of the database server, the name of the database and the network protocol to use to communicate with the server. |
Example
Copy
<xsql-script name='object_2_data_Source'> <body> <set name='m_datahandler'> <object.2dataHandler><file name='z:\test.xml' type='absolute' /></object.2dataHandler> </set> <println> <object.2dataSource> <m_datahandler/> <object.2dataSource> </println> </body> </xsql-script>