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>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39571
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
 
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