473,772 Members | 3,786 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accesing version controlled files using asp scripts

I have a file named file1.xml also under C:/tarun/file1.xml

file1.xml looks like:-

<?xml version="1.0" encoding="UTF-8" ?>
- <elemNames>
<name>elem1</name>
</elemNames>

Method 1:

ASP Script

set xmlDoc=Server.C reateObject("Mi crosoft.XMLDOM" )
xmlDoc.async="f alse"
xmlDoc.load("C:/tarun/file1.xml")
NumberOfBuilds = xmlDoc.getEleme ntsByTagName("n ame").length

Response.write( NumberOfBuilds)

The return value from the previous statement is 1 as there is an
element named 'elem1' with tagName 'name' in file1.xml

Method 2:

I version controlled 'file1.xml' using 'Rational Clear Case' on some
server. (Say the name of the server is 'abc.xyz.com'). I have a file
under 'tarun/file1.xml' on it.

I am able to open the file, file.xml in the broswer (IE) using the
following link:
http://abc.xyz.com/tarun/file1.xml

ASP Script:-

set xmlDoc=Server.C reateObject("Mi crosoft.XMLDOM" )
xmlDoc.async="f alse"
xmlDoc.load("ht tp://abc.xyz.com/tarun/file1.xml")
NumberOfBuilds = xmlDoc.getEleme ntsByTagName("n ame").length

Response.write( NumberOfBuilds)

The retun value from the previous statement is 0 but I expect it to be
1 as there is an element named 'elem1' with tagName 'name' in
file1.xml

Question:
What is the issue with Method 2. Can any one help?

Aug 14 '07 #1
0 1409

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2189
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my javascript, so this seemed a more appropriate place to post. I'm using a media=print style sheet to do a version of a web page that I am building. Currently, I'm working on the IE version. I have an HTML page and 2 style sheets which all validate...
1
1307
by: Djakobsson | last post by:
Hi, I have a SQL server DB for a document handeling system. For the new version of the system the database have been updated with some new tables, new stored procedures and updated stored procedures. There is no changes in the existing tables that contains data. What is the best way to update this DB? I had planned to use the SQL script generator. Is there a problem with this?
3
1157
by: Jeroen Ceuppens | last post by:
Hi, I have a problem accesing h, when i want to do h.Run() after the if else structure, i get the following error: (see below for code) C:\Documents and Settings\Eindwerk\Mijn documenten\BARCO\Eindwerk\Project Files\thuis\13december\Aviewerversie02\FileLoad.cs(417): The type or namespace name 'h' could not be found (are you missing a using directive or an assembly reference?)
2
2289
by: Kevin R | last post by:
I'm trying to get asp.net 1.1 running on my home PC. When I try creating a new ASP.NET Web Application in 'Visual Studio .NET 2003' I get the following error: "Visual Studio .NET has detected that the specified Web server is not running ASP.NET version 1.1. You will be unable to run ASP.NET Web applications or services" Thanks for any help in advance. Kevin ===============================
2
2084
by: ras26 | last post by:
I have a WebSite "App1" which has an external assembly "Lib1". Inside this external assembly we have developed some classes that derive from "System.Web.UI.Page". One of these pages is called "WebNotification". In the WebSite "App1" we create an instance of "WebNotification", but when this class tries to access some Session variables it generates the following error: Session state can only be used when enableSessionState is set to...
1
2187
by: relisoft | last post by:
SEATTLE, Washington. - July 12, 2006: Reliable Software® announces the upcoming release of Code Co-op® version 5.0. Code Co-op is an affordable peer-to-peer version control system for distributed development enabling collaboration through Email, LAN, or VPN-no server required. The upcoming release of Code Co-op 5.0 is due out this fall. With this release Reliable Software continues its track record of innovation by introducing...
3
2785
by: bernard.charriere | last post by:
Hello, We have to load and store datas in format XML in a Database DB2 V8.1 FP13, instance 64 bits with DataPartitionned Feature, around 3 Tb of datas stored in the DB ( 6 Generations of 500 Gb ). Platform is an AIX 5.3.0 64 bits. The version DB2 9.1 allows to store XML format, it would help us but we can not use this version because the ETL tool ( Powercenter 8.1.0 ) wich will extract the Datas from DB source Oracle does not...
16
4174
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and therefore being able to modify its properties?
14
2270
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. If System.Diagnostics.Debugger.IsAttached = False Then Version.Text = "Version : " & My.Application.Deployment.CurrentVersion.ToString() Else Version.Text = "Debug Mode" End If
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10261
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10104
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9912
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8934
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6715
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.