Recommended Steps for Creating a Custom XML Type:
1. Create or Customize a Type Definition:
RG uses type definitions to interpret the structure of input documents. For XML files:
-
-
- Define a custom XML type using XPath expressions to map XML elements to RG elements.
- Store definitions in
.types files: - Project-specific
- Public types folder:
C:\Program Files\National Instruments\Requirements Gateway\Config\types\public\public.types
2. Define Elements in the Type:
Use the Types pane in RG to define:
-
-
- Requirement elements (e.g.,
<Requirement>) - Reference elements (e.g.,
<Covers>, <Verifies>) - Text elements (optional, for descriptive content)
Each element uses XPath to extract relevant data from the XML structure.
3. Configure the Project:
-
-
- Add the XML file as a source document in your RG project.
- Assign the custom type to the XML document.
- Verify the file path and type association.
4. Run Analysis:
-
-
- RG parses the XML using the defined type.
- View results in the Coverage Analysis View to assess traceability.