#5178 Supply DTD/XSD/RNG for cppcheck XML output. Bugfix/enhancements to xmlV2.rng
This commit is contained in:
parent
ceff09d491
commit
4cb57ebc30
61
xmlV2.rng
61
xmlV2.rng
|
@ -1,15 +1,19 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
||||
<grammar ns=""
|
||||
xmlns="http://relaxng.org/ns/structure/1.0"
|
||||
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
||||
<start>
|
||||
<element name="results">
|
||||
<attribute name="version">
|
||||
<data type="integer"/>
|
||||
</attribute>
|
||||
<element name="cppcheck">
|
||||
<attribute name="version"/>
|
||||
<attribute name="version">
|
||||
<data type="string"/>
|
||||
</attribute>
|
||||
</element>
|
||||
<element name="errors">
|
||||
<oneOrMore>
|
||||
<zeroOrMore>
|
||||
<element name="error">
|
||||
<optional>
|
||||
<attribute name="cwe">
|
||||
|
@ -24,31 +28,42 @@
|
|||
<data type="boolean"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<attribute name="msg"/>
|
||||
<attribute name="msg">
|
||||
<data type="string"/>
|
||||
</attribute>
|
||||
<attribute name="severity">
|
||||
<data type="NCName"/>
|
||||
</attribute>
|
||||
<attribute name="verbose"/>
|
||||
<choice>
|
||||
<zeroOrMore>
|
||||
<element name="location">
|
||||
<attribute name="file"/>
|
||||
<optional>
|
||||
<attribute name="info"/>
|
||||
</optional>
|
||||
<attribute name="line">
|
||||
<data type="integer"/>
|
||||
<attribute name="verbose">
|
||||
<data type="string"/>
|
||||
</attribute>
|
||||
<zeroOrMore>
|
||||
<element name="location">
|
||||
<optional>
|
||||
<attribute name="file0">
|
||||
<data type="string"/>
|
||||
</attribute>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<element name="symbol">
|
||||
<data type="anyURI"/>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
</choice>
|
||||
</optional>
|
||||
<attribute name="file">
|
||||
<data type="string"/>
|
||||
</attribute>
|
||||
<attribute name="line">
|
||||
<data type="integer"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="info">
|
||||
<data type="string"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<element name="symbol">
|
||||
<data type="string"/>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
</element>
|
||||
</oneOrMore>
|
||||
</zeroOrMore>
|
||||
</element>
|
||||
</element>
|
||||
</start>
|
||||
|
|
Loading…
Reference in New Issue