I need to make a XML file and i need 3 Values. It will not work with the walk function.
But i have an error and i don't know how to fix it.
Code: Select all
<interface>
<name>Envirement board SNMP</name>
<description>Get SNMP information form envirement board</description>
<index_order_type>numeric</index_order_type>
<oid_index>.1.3.6.1.4.1.19865.1.2.3</oid_index>
<fields>
<Humidity>
<name>Humidity</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.19865.1.2.3.1.0</oid>
<Humidity>
<Tempature>
<name>Tempature</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.19865.1.2.3.2.0</oid>
<Tempature>
<Sound>
<name>SOund</name>
<method>get</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.19865.1.2.3.3.0</oid>
<Sound>
</fields>
</interface>