Creating an XML Type

NI Requirements Gateway 2018 Help

Edition Date: March 2018

Part Number: 371714F-01

»View Product Info
Download Help (Windows Only)

Create an XML-based type to capture traceability information from an XML intermediate file. The type elements of an XML type capture information from specific XML tags that a built-in type or custom type defines on the Analysis tab of the Types pane of the Configuration dialog box.

To create an XML type, click Add XML type on the toolbar of the Types pane of the Configuration dialog box. You can also duplicate an existing XML type, such as the built-in LabVIEW type, and modify the copy.

Complete the following steps to specify an element for the XML type you create or duplicate.

  1. Select an element of the XML type from the Types List and click Add XML type to create an element. The new element appears under the element you select in the Types List.
  2. Select <TagRef/> in the XML Tree View so that the options for this tag are available on the Analysis tab.
  3. Specify whether the XML structure is a tag or attribute by selecting Tag or Attribute. The root of an XML structure can only be a tag.
    • Complete the following steps to specify a tag.
      1. Specify the tag name in the Name textbox.
      2. Assign the tag to capture a specific piece of information by selecting an information type.
      3. In the Value textbox, specify the regular expression for the tag. Requirements Gateway uses the regular expression to capture the type element you select.
      4. (Optional) You can add a sub-tag or attribute by selecting a tag in the XML Tree View and clicking Add an XML tag or attribute on the Analysis tab.
    • Complete the following steps to specify an attribute.
      1. Specify the attribute name in the Name textbox.
      2. Assign the attribute to capture a specific piece of information by selecting an information type.
      3. In the Value textbox, specify the value or the regular expression for the attribute.
  4. Click Apply to save the XML type element.

WAS THIS ARTICLE HELPFUL?

Not Helpful