:: Documentation >>

node

Reference to the XML node.

This is internal property which returns reference to the XML node according to the specified XPath expressions for columns and rows and also column and row indices.

getNode() method could be used to retrive additional attributes for the grid cell (see example below).

Syntax

var value = obj.getNode(col, row);        

Parameters

col (string) - column index
row (string) - row index

Examples

The following example shows how to use getNode() method to retrieve additional cell attributes (for example, image code)

var table = new AW.XML.Table;
table.setURL("data.xml");

// add new method for the cell image 
table.getImage = function(col, row){
    // image code sent in 'image' attribute of the same cell
    return this.getNode(col, row).getAttribute("image");
};
table.request();

See also

Set table, rows and columns XPath expressions.

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5