![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I tried using a Try...Catch, but it bombs deep in the DOM, where I don't have control of it. Here is the Code Me.XMLDocument.Save(strFileName) |
#3
| |||
| |||
|
| Terry wrote: I tried using a Try...Catch, but it bombs deep in the DOM, where I don't have control of it. Here is the Code Me.XMLDocument.Save(strFileName) If the Save method calls some internal other methods that throw an exception then nevertheless try/catch around the Save call should allow you to catch the exception. You can also pass other arguments to Save than simply a string with a file name, you can pass in a Stream for instance and if you create that yourself as needed (e.g. a FileStream where the constructor allows you all control of FileMode, FileAccess, FileShare settings) then your code has more control. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |