aspose file tools*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

Loading xml in JavaScript Fails

karthick ryan
Greenhorn

Joined: Jul 17, 2007
Posts: 19
Hi,
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;
xmlDoc.load("web.xml");
// 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

-->
<script>
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

"karthik",
Welcome to the JavaRanch.

We're a friendly group, but we do require members to have valid display names.

Display names must be two words: your first name, a space, then your last name. Fictitious names are not allowed.

Please edit your profile and correct your display name since accounts with invalid display names get deleted, often without warning

This is your last warning. Please fix your display name and repost your request.

thanks,
Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Loading xml in JavaScript Fails
 
Similar Threads
Looping XMLHttpRequest
Loading xml in Javascript fails
Loading xml in Javascript fails
Reading xml data in JSP
how to open xml file into html page