<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE testcases SYSTEM "http://samate.nist.gov/SRD/DTD/testcases.dtd">
<!-- The full directory -->
<container>
	<testcase>
		<!--
			Field for some meta data, the SRD don't
			really care about that, but it may be useful
			for the users
		-->
		<meta-data>
			<!-- Sample of meta-data which will not be parsed by our tool -->
			<author>James Dean</author>
			<date>2007/12/24</date>
		</meta-data>

		<!-- Basic file structure -->
		<file path="main.cpp" language="C++">
			<flaw line="12" name="Buffer Overflow" />
			<flaw line="13" name="Command Injection" />

			<!-- Sample of the same flaw on multiple lines -->
			<flaw name="Time-of-Check Time-of-Use race condition">
				<lines>
					4,8,15,16,23,42
				</lines>
			</flaw>
		</file>

		<!-- Simple file without associated flaw -->
		<file path="an_other.cpp" language="C++" />

		<file path="Sub_Dir1/maths.h" language="C">
			<!-- If you know the ID of the flaw -->
			<flaw line="42"  id="12" />
			<!-- Else, you can select a name... need to propose the list of the flaw ? -->
			<flaw line="666" name="Format string vulnerability">
				<!-- a code complexity example -->
				<codecomplexity line="56" name="array address complexity" />
			</flaw>
		</file>
	</testcase>
	
	<testcase>

		<!--
			Field for some meta data, the SRD don't
			really care about that, but it may be useful
			for the users
		-->
		<meta-data>
			<!-- empty thing -->
		</meta-data>

		<!-- Basic file structure -->
		<file path="main.cpp" language="C++">
		</file>

		<!-- Simple file without associated flaw -->
		<file path="an_other.cpp" language="C++" />

		<file path="Sub_Dir1/maths.h" language="C">
			<!-- If you know the ID of the flaw -->
			<flaw line="42"  id="12" />
			<!-- Else, you can select a name... need to propose the list of the flaw ? -->
			<flaw line="666" name="Heap Inspection">
				<!-- a code complexity example -->
				<codecomplexity line="56" name="array address complexity" />
			</flaw>
		</file>
	</testcase>

</container>
