:: Documentation >>

Loading XML string in Mozilla

The code below refers to version 1.0 - fixed in 1.0.1 release.

Loading XML string into Active.XML.Table is broken in Mozilla. You have to apply the following patch to make it working:

Active.XML.Table.prototype.setXML = function(xml){

    if (!xml.nodeType) {
        var s = "" + xml;
        if (window.ActiveXObject) {
            xml = new ActiveXObject("MSXML2.DOMDocument");
            xml.loadXML(s);
            xml.setProperty("SelectionLanguage", "XPath");
        }
        else {
            xml = (new DOMParser).parseFromString(s, "text/xml");
        }
    }

    if (this._namespaces) {xml.setProperty("SelectionNamespaces", this._namespaces);}

    this._xml = xml;
    this._data = this._xml.selectSingleNode(this._dataPath);
    this._items = this._data ? this._data.selectNodes(this._itemPath) : null;
    this._ready = true;
};

Comments

Loading XML data from a string var Henk (7)
Bug: loading XML string in Mozilla Alex (ActiveWidgets) (1)
Regarding the commercial version of the control... Jagadeesh VN (6)
Regarding setRows and setXML Jugs (0)
Loading dynamic XML into table Arun (2)

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