we are thinking use xml file to store our error codes for our C# application. for the following two structures, which one is better?
<error>
<code>0x00000001</code>
<description>Error PIB: Clamp</description>
<reaction>Display</reaction>
</error>
or
<error code=0x00000001 >
<description>Error PIB: Clamp</description>
<reaction>Display</reaction>
</error>
or your better suggestion?
seems the second one save some space and easiler for lookup through it?
I need to get the description
and reaction
string by lookup the error code
. do you have an effective way to lookup through file?