<config-file>

The <config-file> specifies where child elements should be placed.

Syntax:

<config-file target="bar-descriptor.xml" parent="/qnx">
    <category>media</category>
</config-file>
        

Description:

The <config-file> specifies the configuration file and XPath where child elements should be placed.

Add the <config-file> element's child elements to the specified configuration file. The location where elements should be added is specified using an XPath value, such as the first node of the file. For example, in the configuration file called bar-descriptor.xml, the first node is called qnx.

Occurrences:

Zero or more.

Parent elements:

<widget>

Child elements:

Any elements that you want to add after the specified parent node.

Content:

None.

Attributes:

You can define the following attributes for this element:

Attribute Description
target The name of the configuration file.
parent

The parent node where to put the configuration specified by child elements. You can specify the location using XPath.

Examples:

The following example shows how to add a category element to the qnx node in the bar-descriptor.xml file.
<config-file target="bar-descriptor.xml" parent="/qnx"> 
        <category>media</category>
</config-file>