XML Pane

NI Requirements Gateway 2018 Help

Edition Date: March 2018

Part Number: 371714F-01

»View Product Info
Download Help (Windows Only)

To launch the XML pane of the Configuration dialog box, launch the Configuration dialog box and click XML or click Test XML analysis tree below the XML Tree View on the Analysis tab of the Types pane.

Use the XML pane to test the XML syntax you define for custom types you create on the Types pane to ensure the XML syntax accurately captures the appropriate elements before you use the XML syntax in a project.

The XML pane contains the following options:

  • XML Content—Enter source file text to use for testing the XML syntax. Enter text manually, or use the options in the File menu to import source text from a source file or directory of source files for a XML-based type, such as a LabVIEW document, and convert the file to a temporary intermediate file for testing. You can also import source text from an existing intermediate file for testing.
  • Analysis Tree—Enter the XML syntax you want to test. If you click Test XML analysis tree on the Types pane, Requirements Gateway populates this control with the XML syntax you specified on the Types pane.

    The Analysis Tree section contains the following options.
    • XML Structure Type—Specifies the type of the XML structure type. Contains the following options.
      • Tag—Specifies whether the XML structure is an XML tag. The root of the XML structure can only be a tag.
      • Attribute—Specifies whether the XML structure is an XML attribute.
    • Name—Specifies the name of the tag or attribute you select.
    • Information Type—Specifies the type of information that the tag captures.
      • Identifier—The information to capture is the ID of the element you select. This option is not available for links and reference elements.
      • Label—The information to capture is the label of the element you select. This option is not available for attribute and reference attribute elements.
      • Text—The information to capture is the text of the element you select. This option is not available for attribute, reference attribute, reference, and link elements.
      • GUID—The information to capture is an optional Globally Unique Identifier (GUID) for the element. Requirements Gateway cannot display the value, but you can use the value to identify the element when reanalyzing the document or navigating to the selected element in the source file.
      • Parent—The information to capture is the parent of the element you select. This option is not available for link and reference elements.
      • Image—The information to capture is the picture of the selected element. This option is not available for attribute, reference attribute, reference, and link elements.
      • Condition—The information to capture is a value of an XML attribute. When you select this option, enter a regular expression in the Value control for the condition.
    • Value—Specifies the value you expect for an XML attribute or the regular expression Requirements Gateway uses to capture the type element you select.
    • Add an XML tag or attribute—Adds a new XML tag or attribute below the XML tag you select in the XML Tree View. After you add the XML tag or attribute to the tree view, select Tag or Attribute to specify the type of the new XML element.
    • Delete an XML tag or attribute—Deletes the XML tag or attribute you select.
  • TestTests the XML syntax in Analysis Tree and displays the results in the Results table.
  • UpdateReplaces the XML syntax on the Types pane with the XML syntax on the XML pane. This option is available when you launch the XML pane by clicking Test XML analysis tree on the Types pane.
  • Results—Displays the results of testing the XML syntax. This table displays a row for each match. The table also includes the following columns:
    • Parent—Displays the parent of the captured elements.
    • GUID—Displays an internal ID of the captured elements. You can use the ID to identify the element when analyzing the document or when navigating to the selected element in the source file.
    • Identifier—Displays the ID of the captured elements.
    • Label—Displays the label of the captured elements.
    • Text—Displays the text of the captured elements.

WAS THIS ARTICLE HELPFUL?

Not Helpful