RE: [xml] standard dtd?!



I've seen combinations of C:\etc\xml\catalog , C:\xml\catalog and, wait
for
it... C:\WINNT\system32\drivers\etc\xml\catalog :-) Very bodged.

Wouldn't the above (Daniel's bit not mine) turn into \etc\xml\catalog
(which is
either interpretted as current-drive:\etc\xml\catalog or system-
drive:\etc\xml\catalog)
? So that should be alright, if not the user can control the location via
(one
of) the environment variable(s).

I'm reluctant to stick my nose in here since I don't know what a catalog is, but I think the correct solution 
would be to use the Windows Shell function SHGetFolderPath, specifying a folder ID of CSIDL_COMMON_APPDATA, 
and adding \xml onto the end of the result. This would typically give C:\Documents and Settings\All 
Users\Application Data\xml, but would always be something that is correct for the system it is running on.

It's only a suggestion, and the idea of adding Windows system calls into the code may fill some of you with 
horror.

Mark.

PS I would be willing to make the change if someone pointed me in the right direction and gave me some advice 
on how to test it.

-----------------------------------------
Email provided by http://www.ntlhome.com/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]