473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Error while loading an XML file from Agent via SS Javascript ASP

OK, I am having a lot of problems loading an XML file via a Server-Side JavaScript based ASP page. Below is the code that I am using as well as the different methods of loading the XML file and the associated errors that I am getting from the process. =(

Now the original XML file is generated from a Java based Lotus Notes Agent. I have tested the XML output in IE/FireFox/Opera which opens up and displays the output just fine as XML. I have also taken the output and created an XML file locally to load it as one of the examples. Nothing but errors. =(

I am hoping that some one can help make sense of this. Please?

Expand|Select|Wrap|Line Numbers
  1. <%
  2. var XMLParser = new ActiveXObject("MSXML2.DOMDocument.3.0");
  3. XMLParser.async = false;
  4.  
  5. try
  6. {
  7. // Error: The system cannot locate the specified resource.
  8. //XMLParser.load("http://Subdomain.ExternalDomain.com/JimsTest.nsf/List.xml"); // From Notes Agent
  9. //XMLParser.load("http://ExternalDomain.com/foreclosure/List.xml"); // Locally Saved File
  10.  
  11. // Error: No data is available for the requested resource.
  12. //XMLParser.load("http://InternalIPAddress/JimsTest.nsf/List.xml"); // From Notes Agent
  13.  
  14. // Error: The filename, directory name, or volume label syntax is incorrect.
  15. //XMLParser.load("\\InternalUNC\foreclosure/List.xml"); // Locally Saved File
  16. //XMLParser.load("D:\LocalPath\foreclosure\List.xml"); // Locally Saved File
  17.  
  18. // Error: The system cannot locate the object specified.
  19. //XMLParser.load("List.xml"); // Locally Saved File
  20.  
  21. if (XMLParser.parseError.errorCode!= 0)
  22. {
  23. var myErr = XMLParser.parseError;
  24. %>
  25. <strong>XML Parser Error:</strong> <%= myErr.reason %>, <%= myErr.line %> <br />
  26. <%
  27. } // end if block
  28. } catch (error)
  29. {
  30. error.printStackTrace();
  31. } // end catch block
  32.  
  33. var ForeclosureList = XMLParser.getElementsByTagName("Foreclosure");
  34. %> 
Feb 14 '07 #1
1 2831
It turns out that using DOMDocument.means you can only access files on your local system (atleast that is the way it appears). I used an XMLHTTP and that easily solved the problem. Thanks for you response. I really appreciate you taking the time.
Feb 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
5
by: fred | last post by:
I don't know if I'm doing this correctly. I have a little programming experience in python, c++ and some others but this is my first time with javascript. I'm trying have my website detect the...
1
by: Abby Lee | last post by:
My page runs fine...I just get the yeld sign with a "!" in it. Ok, I asked this question in the VBscript group and they tell me it's a JavaScript issue even though I don't get the error until I...
4
by: Adrian MacNair | last post by:
Hi, I created an image gallery which displays 63 images in a slideshow. The problem is that the show was slow because each image loaded one at a time during the show. No problem right? I just...
10
by: sneill | last post by:
Using XMLHTTP and DOM I'm able to load new HTML page content. I'd now like to load small snippets of javascript with the HTML markup and have that <script> incorporated into the page. If any of...
5
by: NG | last post by:
Hi, We are having DB2-V7.2 DB on AIX 5.2 machine. Recently we upgraded our system to fixpack 13 and activated activate AIX asynchronous IO function. Our DB is going to crash recovery with...
2
by: zino | last post by:
on windows XP and visual studio 2005, I cannot load a javascript or a style sheet file. when I try to run the aspx page I get a client side runtime error stating: " A Runtime error has occurred...
1
by: vijay.db | last post by:
Hi Team, Very serious problem with my DB2 V8.1 Fixpack 6 running in AIX 5.1 machine. Every one hour my DB2 instance processes are killed and it's going down. Several trap files are generated in...
2
by: bips2008 | last post by:
The code seems to work fine in other browser but in IE it throws this error. This is very urgent for me and any help would be greatly appreciated For your convienence i have posted the code for the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.