I am new to XML and have a question on how to construct my document.
I have an element called UM which describes a unit of measure, for example EA.
<UM>EA</UM>
I also need to be able to provide the description of EA which is Each. Should I add a new element called UMDescription and put the description there, or can I use an attribute to describe EA? Or is there an even better way to do this?
I was thinking either:
<UM>EA</UM>
<UMDescription>Each</UMDescription>
or
<UM Description='Each'>EA</UM>
Any suggestions on the best way to do this would be extremely appreciated. I've got this kind of thing occuring throughout my document.
Thanks!
I have an element called UM which describes a unit of measure, for example EA.
<UM>EA</UM>
I also need to be able to provide the description of EA which is Each. Should I add a new element called UMDescription and put the description there, or can I use an attribute to describe EA? Or is there an even better way to do this?
I was thinking either:
<UM>EA</UM>
<UMDescription>Each</UMDescription>
or
<UM Description='Each'>EA</UM>
Any suggestions on the best way to do this would be extremely appreciated. I've got this kind of thing occuring throughout my document.
Thanks!