smidump to convert into xml

Hello,
I'm a new user and I especially use the smidump tool in order to convert MIB into XML.
I encountered two problems:
_ 1 : if want to export into a xml file with xml Schema structure I use the command line :
smidump -f xml -o result.xml mib_file
The problem is that in the xml file there are both DTD and Xml schema referenced.
<?xml version="1.0"?>
<!DOCTYPE smi SYSTEM "http://www.ibr.cs.tu-bs.de/projects/nmrg/smi.dtd">
<!-- This module has been generated by smidump 0.4.3. Do not edit. -->
<smi xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.ibr.cs.tu-bs.de/projects/nmrg/smi. xsd">
If I remove the line : <!DOCTYPE smi SYSTEM "http://www.ibr.cs.tu-bs.de/projects/nmrg/smi.dtd">
the xml file is valid.
_ 2 : If I want to execute the conversion of a MIB file like ENTITY-MIB containing a NOTIFICATION and this NOTIFICATION doesn't include object, the result in XML format is :
<notifications>
<notification name="entConfigChange" oid="1.3.6.1.2.1.47.2.0.1" status="current">
<objects>
</objects>
<description>
An entConfigChange .......
</description>
</notification>
</notifications>
And this is wrong according to the DTD or the XMl schema. The tag <objects> must contain at least on tag <object>. In the MIB NOTIFCATION-TYPE objects are optional.
Thank you in advance for your help and for this tool
Cheers
Antoine
participants (1)
-
Antoine Roelens