//-------------------------------------------------- // XMLnitro v 1.3 beta //-------------------------------------------------- // Branden J. Hall // Fig Leaf Software // July 23, 2001 //-------------------------------------------------- // This file simply replaces the built-in parseXML // method. In doing so it increases the speed of // XML parsing 70-120% (dependent on file size). // In addition, the ignoreWhite property now works // in all versions of the Flash 5 plugin and no // just the R41/42 versions. In order to do such // this parser removes all text from mixed content // nodes (i.e. nodes that contain both child nodes // and child text nodes). This code is Flash 5 // specific so it makes sure that the user has only // a Flash 5 plugin. //-------------------------------------------------- Object.version = getVersion().split(","); Object.majorVersion = int(substring(Object.version[0],Object.version[0].length, 1)); Object.minorVersion = int(Object.version[2]); if (Object.majorVersion == 5){ XML.prototype.parseXML = function(str){ var treePtr = this; var tags = new Array(); var textNode = null; if (Object.minorVersion == 30){ this.status = ASnative(300, 0)(str, tags); }else{ this.status = ASnative(300, 0)(str, tags, false); } if (this.status == 0){ var curr; var i=0; var max = tags.length; if (this.ignoreWhite){ while(tags[i].type == 3){ ++i; } while (i