Heath Frankel wrote:
> Adam,
>
>   
>> Indeed however there are ways of persisting a model & they require at
>> the end of the day a recognizable document design/format.
>>
>> I have already noted how using text children of an element to use a
>> value vs a std "value" attribute in the archetype xml  inflates the file
>> sizes.
>>
>> <A>
>> Some value
>> </A>
>>
>> &
>> <A value=""Some value"/>
>>
>> Are both persisting/serializing the same data.
>>
>> Adam
>>
>>     
>
> Your example here is contrary to your statement, example 1, 17 characters,
> example 2, 23 characters.  Not sure how you get a 1/3 size reduction.
>
> Heath
>
>   
I have detailed the exact figures earlier. The 1/3'rd reduction came 
from running a transform which applied this rule to all the templates & 
archetypes in the NHS repository branch & doing a before & after comparison.

To recap quickly  - usually elements are not called "A" but are called 
things like "terminology_id" so you get

 <terminology_id>
ISO_639-1
</terminology_id>

vs

<terminology_id value="ISO_639-1"/>

But them you then also get:

        <terminology_id>
            <value>ISO_639-1</value>
        </terminology_id>




Adam




**********************************************************************
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**********************************************************************


Reply via email to