Im trying to use an XML file.
I get a node, and want to get the value of some attributes.
Some attributes are optional.
If I ask for the value of an attribute that is not present in the file, it generates an exception and stops the running app in the IDE.
I expected that by wrapping the call inside a try...except , that the issue would be more or less ignored, and the app would run.
However, even inside a try...except, the debugging app still stops and throws up a message.
Is there some way to prevent that ?
(In theory, the TDomNode should have a .HasAttribute method, but it doesnt seem to work for me.. )