I haven't seen these, but in the past, I have essentially attempted to validate unversioned XML reports against a specific version of XSD, and the XSD that the report validates against tells me which parser to use.
I don't see any links to a report XSD with some cursory googling, but maybe someone else knows where to find them. On Fri, Oct 3, 2014 at 10:30 AM, Daniel Martin <[email protected]> wrote: > Hi team, > > I'm the maintainer of the Dradis project and I was wondering where is the > best way to find information about the different versions of the XML > generated by OpenVAS. > > > For example, our current parser was looking for "Summary:" and "Solution:" > fields inside the <description> tag of the <result>, but it seems that in > OpenVAS v7, these are now included in under the <tags> item as "|summary=" > and "|solution=". > > > So I have two questions: > > - What is the best way to detect the version of the XML that we're > parsing? Maybe the user doesn't know the exact OpenVAS version so they > can't tell us which one it is. It would be good if we determine which > version of the XML format by looking at some field (is this the > [format_id="a994b278-1f62-11e1-96ac-406186ea4fc5"] attribute?). > > > - Are the different formats of XML documented somewhere? We'd like to > support parsing of XML generated by different versions of OpenVAS, but we > need to understand the subtleties between the versions. > > > > If anyone is interested in following alone, we're moving the OpenVAS > Dradis plugin to its own repo in GitHub and there is an item in the tracker > discussing differences in the XML formats. > > > There is no need to future-proof our parser, I don't mind to play catch-up > with any new releases of OpenVAS (which may introduce new versions of the > XML format), but I'd like two create one parser for each version of your > format and ideally auto-detect the version by doing some inspection of the > file once the user uploads it. > > > Many thanks, any pointers are really appreciated. > > Kind regards, > Daniel > _______________________________________________ > Openvas-discuss mailing list > [email protected] > https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss > -- http://volatile-minds.blogspot.com -- blog http://www.volatileminds.net -- website
_______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
