:: Home >>

namespace

Allows to specify namespaces for use in XPath expressions.

Syntax

obj.setNamespace(prefix, URI);        

Parameters

prefix (string) - namespace prefix
URI (string) - namespace URI

Examples

//  create ActiveWidgets data model - XML-based table
var table = new AW.XML.Table;

//  provide data URL
table.setURL("../data/companies-array.xml");

//  define namespace for selecting column data
table.setNamespace("co", "http://tempuri.org/");

//  set column XPath
table.setColumns(["co:ticker", "co:name", "co:timestamp"]);

//  start asyncronous data retrieval
table.request();

Remarks

The XPath expressions are used in AW.XML.Table class

Comments

17 Feb 07
anyone can give code example for this one jhon (0)

Comments will appear on this page and in the main forum.

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