1<?xml version="1.0" encoding="utf-8"?> 2<!DOCTYPE context [ 3 <!ELEMENT context (device)*> 4 <!ELEMENT device (channel | attribute)*> 5 <!ELEMENT channel (attribute)*> 6 <!ELEMENT attribute EMPTY> 7 <!ATTLIST context name CDATA #REQUIRED> 8 <!ATTLIST device id CDATA #REQUIRED name CDATA #IMPLIED> 9 <!ATTLIST channel id CDATA #REQUIRED type CDATA #REQUIRED name CDATA #IMPLIED> 10 <!ATTLIST attribute name CDATA #REQUIRED> 11]> 12<context name="local"> 13 <device id="iio:device0" name="ad5541a" > 14 <channel id="voltage0" type="output" > 15 <attribute name="raw" /> 16 <attribute name="scale" /> 17 </channel> 18 </device> 19</context> 20