Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parser version

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi Group,
How can I check the version of XML Parser installed on a users machine (preferably without writing code).

Kind Regards
 
Apparently MSXML doesn't expose version information to the browser. Found this on the net:
Code:
function getControlPrefix() {
    if (getControlPrefix.prefix)
       return getControlPrefix.prefix;

    var prefixes = ["MSXML2", "Microsoft", "MSXML", "MSXML3"];
    var o, o2;
    for (var i = 0; i < prefixes.length; i++) {
       try {
          // try to create the objects
          o = new ActiveXObject(prefixes[i] + ".XmlHttp");
          o2 = new ActiveXObject(prefixes[i] + ".XmlDom");
          return getControlPrefix.prefix = prefixes[i];
       }
       catch (ex) {};
    }

    throw new Error("Could not find an installed XML parser");
}
Does that help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top