XML Considered Harmful

dn PythonList at DancesWithMice.info
Sat Sep 25 18:01:42 EDT 2021


On 26/09/2021 10.48, 2QdxY4RzWzUUiLuE at potatochowder.com wrote:
> On 2021-09-25 at 15:20:19 -0500,
> "Michael F. Stemper" <michael.stemper at gmail.com> wrote:
> 
>> ... For instance, if
>> I modeled a fuel like this:
>>
>>   <Fuel name="Montana Sub-Bituminous">
>>     <uom>ton</uom>
>>     <price>21.96</price>
>>     <heat_content>18.2</heat_content>
>>   </Fuel>
...


> Disclaimer:  I am not a big XML fan, for a number of reasons
> already stated in this thread.
> 
> That said, please do include units in elements like heat_content,
> whether or not it's Joules/kilogram/K, and price, even if is the
> local currency in the only country to which your data applies.
> If there's a standard for your industry, or your company, or on
> some other level, then at least document what it is and that
> you're using it, so that the next person (which may be you a
> year from now) doesn't have to guess.

+1
*always* add unit attributes
-- 
Regards,
=dn


More information about the Python-list mailing list