Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Problem specifying file location for FileSystemObject and XML DOM parser...

Thread Tools

Problem specifying file location for FileSystemObject and XML DOM parser...

Posts: n/a
A bit of a mysterious problem. I am trying to load an xml file into a
page on the client using Microsoft's XML DOM parser and then write to
that same file using the FileSystemObject.

But when I do this the two objects seem to require different types of
inputs specifying the file and file path.

For instance, say my file is in a sub directory "data" of the
directory containing the html files containing the script. I can load
the xml file by feeding the following string "data/users.xml". But if
I were to give the same input to the FileSystemObject OpenTextFile
method it would be unable ot find the file. The reason seems to be
that the FileSystemObject's default directory is the Desktop.

What do I provide as input to these two different objects that will
specify the file? I want to be able to provide a relative path because
this thing I am writing will not always be on the same computer and I
cannot rely on a stable directory structure.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing _xmlplus.dom.minidom with xml.dom.minidom Python 3 08-03-2007 03:50 PM
location of DOM objects back in xml file XML 5 04-18-2007 01:53 PM
Location, location, location =?Utf-8?B?VHJhY2V5?= Wireless Networking 2 02-17-2007 08:37 PM
Convert a XML DOM Object to a HTML DOM Object XML 0 09-20-2005 08:16 AM
Specifying location of web site using VS 2003 setup project Colin Graham ASP .Net 1 11-15-2004 10:45 PM