Hide Table of Contents

Variable Mapping - XML Files (For SOLIDWORKS PDM Professional only)

You can map variables to read and write values found in XML files.

Common Extensions

XML

Property Mappings

See Mapping to XML Values.

Block name Attribute name
XML The attribute names are custom defined.

Mapping to XML Values

You must use the block name XML and the correct element syntax to map variables to XML values .

Use the block name XML and the correct element syntax when defining variables.

Use the following guidelines to name the variable attributes:

1 - Root element attribute
Syntax [RootElement]/@[Attribute]
In the example: The attribute mapping File/@Name returns the value 01 Ceilings.
2 - Element tag
Syntax [RootElement]/[Element]
In the example: The attribute mapping File/Description returns the value Sample.
3 - Nested attribute
Syntax [RootElement]/[Element]/[NestedElement]/@[Attribute]
In the example: The attribute mapping File/Region/Cell/@Division returns the value 1.
4 - Nested element
Syntax [RootElement]/[Element]/[NestedElement]
In the example: The attribute mapping File/View/ViewportDefault/DispConfig returns the value Reflected.
5 - Multiple element values
Syntax When multiple elements with the same name are found, use all values (one per row for multiline edit box).
In the example: The attribute mapping File/View/ViewCategory/ContextCategory returns a list of Constructs\Architectural, Constructs\Architectural\Partitions, Constructs\Architectural\Shell, and so on.


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Variable Mapping - XML Files (For SOLIDWORKS PDM Professional only)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS PDM 2016 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.