Main Content

setXmlOptions

Set XML option for AUTOSAR architecture model

Since R2020a

Description

setXmlOptions(archModel,property,value) sets XML option property to value 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 for classic architecture modeling and Configure AUTOSAR Adaptive XML Options for adaptive architecture modeling.

example

Examples

collapse all

For a new AUTOSAR architecture model, modify the value of the AUTOSAR XML data type package path from /DataTypes to /MyDataTypes.

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

Input Arguments

collapse all

AUTOSAR architecture model for which to set the value of an XML option. 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 set a value.

For more information about XML options, see Configure AUTOSAR XML Options for classic architecture modeling and Configure AUTOSAR Adaptive XML Options for adaptive architecture modeling.

Example: 'DataTypePackage'

Value to set for the specified XML option of the specified AUTOSAR architecture model.

Example: '/MyDataTypes'

Version History

Introduced in R2020a