
On Wed, Nov 03, 2021 at 09:07:11AM -0400, Stefan Berger wrote:
On 11/2/21 05:57, Daniel P. Berrangé wrote:
On Tue, Nov 02, 2021 at 10:38:05AM +0100, Michal Prívozník wrote:
Yes, the golden rule of XML design is that you should not have to write a second parser to interpret the value of an attribute / element. Any structure should be represented in the XML design itself.
Like this?
<tpm model='tpm-tis'> <backend type='emulator' version='2.0'>
<active_pcr_banks>
<sha256/>
<sha384/>
</active_pcr_banks>
</backend>
</tpm>
Yes, that would be viable and about as concise as you'll get with XML Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|