This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes JSP and the fly likes Loading xml in Javascript fails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

Loading xml in Javascript fails

karthick ryan

Joined: Jul 17, 2007
Posts: 19
This is the piece of code which i used. Please go through it. This doesnt seem to work.

<script language="Javascript">
var xmlObj;
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

xmlDoc.async = false;
// The xml file is present in the same folder where this jsp file is present

xmlObj = xmlDoc.documentElement;
alert(xmlObj); //i get a "null" here

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Please do not post the same question to multiple forums: CarefullyChooseOneForum

Let's continue the discussion in this duplicate post in the XML forum, since the question has nothing to do with JSP.
I agree. Here's the link:
subject: Loading xml in Javascript fails
It's not a secret anymore!