- XML (Extensible Markup Language) Reader/Writer
- XML Quick Facts
- Workbench XML Reader Parameters
- Workbench XML Writer Parameters
- Feature Representation
- Mapping File Reference
- xfMap
- Reading the Input XML Document
- Mapping Rules
- Types of Mapping Rules
- Match and Except Expression
- Specifying Several Match Expressions for One Mapping Rule
- Limiting Mapping Rule Activation with Except Expressions
- Mapping Rule States (activation, execution, suspension, and de-activation)
- Using Force Elements During Mapping Rule Activation and Deactivation
- Search-sets
- Expression Elements (Extract and Literal)
- Expression Sequence
- Feature Mapping Rules
- FME Feature Construction
- Feature Type Element
- Attributes Element
- FME Feature Construction (defining mapping rules under the <feature-content-map> element)
- Attribute Element (handling multiple values)
- Attribute Element (handling optional attributes)
- Attribute Element (sequenced attributes)
- Attribute Element (Nillable Attributes)
- Geometry Element
- Geometry Builder States (activation, execution, suspension, and de-activation)
- Geometry Construction
- Composite Geometry Builders
- Built-in Geometry Builders
- Mapping Segmented Geometric Information
- Geometry Traits (trait element)
- FME Feature Construction (constructing multiple features at a time)
- Structure Element
- References Element
- Apply References Element
- Group Mapping Rules
- Reference Mapping Rules
- Mapping Rules (Optional Elements)
- More Expression Elements
- FME Schema Features
- Reading the Input XML Document
You are here: Popular FormatsXML (Extensible Markup Language) Reader/WriterxfMapReading the Input XML DocumentMapping Rule States (activation, execution, suspension, and de-activation)
Mapping Rule States (activation, execution, suspension, and de-activation)
This section describes the different states of a mapping rule. A mapping rule can either be activated, suspended, executing, or de-activated.
Let E be the element in the input XML document whose start-tag is being read,
let C be the context element; we define the context element to be the most recently read element for which its end-tag is yet to be read, and
let R be a mapping rule in the xfMap document that is considered for matching (see the search-sets section below, which describes when a mapping rule can be considered for matching),
then the following lists the possible states for a mapping rule R:
- R is activated, if R matches E.
- R is executing as long as it is activated and E equals C.
- R is suspended as long as it is activated and E does not equal C.
- R is de-activated after E’s end-tag is read.
Note: All mapping rules in the xfMap document are initially deactivated.