우리는 C# 응용 프로그램에 대한 오류 코드를 저장하기 위해 XML 파일을 사용하고 있습니다. 다음 중 두 가지 구조에 대해 어느 것이 더 낫습니까?xml 오류 코드 파일
<error>
<code>0x00000001</code>
<description>Error PIB: Clamp</description>
<reaction>Display</reaction>
</error>
또는
<error code=0x00000001 >
<description>Error PIB: Clamp</description>
<reaction>Display</reaction>
</error>
또는 더 나은 제안?
두 번째 것 같습니다 그것을 통해 조회를위한 공간과 easiler?
error code
을 조회하여 description
및 reaction
문자열을 가져와야합니다. 파일을 검색하는 효과적인 방법이 있습니까?
확인 http://stackoverflow.com/questions/152313/xml-attributes-vs-elements –