You can change the initial directory by using the "openFileDialog 1.InitialDirect ory = "
Remember that C# doesnt like '/' on its own when specifying the initial directory.
Also you may want to check that the directory exists before you actual set it..
re-read your question and you probably already know this... sorry
User Profile
Collapse
-
-
C# XPathNavigator doesnt like attributes and wont find the data
Morning all from a newbie.
I have recently written an automation program (my first ever program) for testing and now I am trying to read XML data and assign the values to variables (rather than Excel). Using XPathNavigator I managed to read some of the data, but in order to do this I had to manually remove the attributes from the Parent Nodes. Going forward this isnt an option as we may be reading and running hundreds of files a day... -
C# XPathNavigator doesnt like attributes and wont find the data
Morning all from a newbie.
I have recently written an automation program (my first ever program) for testing and now I am trying to read XML data and assign the values to variables (rather than Excel). Using XPathNavigator I managed to read some of the data, but in order to do this I had to manually remove the attributes from the Parent Nodes. Going forward this isnt an option as we may be reading and running hundreds of files a day...
No activity results to display
Show More
Leave a comment: