getXmlOptions

Get XML option for AUTOSAR architecture model

Description

example

pValue = getXmlOptions(archModel,property) returns the current value pValue of XML option property in architecture model archModel. The archModel argument is a model handle returned by a previous call to autosar.arch.createModel or autosar.arch.loadModel. For more information about XML options, see Configure AUTOSAR XML Options.

Examples

collapse all

For a new AUTOSAR architecture model, get the initial value of the AUTOSAR XML data type package path.

archModel = autosar.arch.createModel('MyArchModel');
pValue = getXmlOptions(archModel,'DataTypePackage')
pValue =
    '/DataTypes'

Input Arguments

collapse all

AUTOSAR architecture model for which to return the current value of an XML option value. The argument is a model handle returned by a previous call to autosar.arch.createModel or autosar.arch.loadModel.

Example: archModel

XML option for which to return a value. For more information about XML options, see Configure AUTOSAR XML Options.

Example: 'DataTypePackage'

Output Arguments

collapse all

Returns the value of the specified XML option of the specified AUTOSAR architecture model.

Introduced in R2020a