Home » railML newsgroups » railml.misc » Child elements with one value vs. attributes
Child elements with one value vs. attributes [message #1760] Thu, 12 April 2018 05:39
Joerg von Lingen is currently offline  Joerg von Lingen
Messages: 64
Registered: May 2011
Dear all,

in the existing railML schema we have placed the information mainly into attributes. In the current development of IL
part it appears that there are several child elements containing only one value but no attribute at all (variant 1). I
would suggest to transfer such values into an attribute of the parent element whenever this is suitable (variant 2).

1) variant
<rail3:overlapReleaseTimer code="ovt01" id="ovt01">
<rail3:overlapReleaseCondition>startTimerAfterVacating</rail3:overlapReleaseCondition >

2) variant
<rail3:overlapReleaseTimer code="ovt01" id="ovt01" timer="PT60S" overlapReleaseCondition="startTimerAfterVacating">

Best Jörg.
Interlocking coordinator
Previous Topic: More concise usage of namespaces
Goto Forum:

Current Time: Tue Apr 24 04:54:50 CEST 2018