Difference between revisions of "Activity:CreateXMLElement (Activity)"
Line 24: | Line 24: | ||
! Argument!! Type !! Direction !! Purpose | ! Argument!! Type !! Direction !! Purpose | ||
|- align="left" | |- align="left" | ||
− | | ParentElement|| {{ | + | | ParentElement|| {{XmlElement_MSDN}}|| In || The parent element where the new element should be created below; if empty, it will take the element from its nesting host |
|- align="left" | |- align="left" | ||
| ElementName|| {{String_MSDN}}|| In || The name of the new element | | ElementName|| {{String_MSDN}}|| In || The name of the new element | ||
Line 32: | Line 32: | ||
| ElementComment|| {{String_MSDN}}|| In || The comment to the new element | | ElementComment|| {{String_MSDN}}|| In || The comment to the new element | ||
|- align="left" | |- align="left" | ||
− | | CreatedElement|| {{ | + | | CreatedElement|| {{XmlElement_MSDN}}|| Out || The created XML element |
|} | |} | ||
Revision as of 14:53, 8 January 2015
Create XML Element | |
---|---|
Name | CreateXMLElement |
Purpose | Create an XML element |
Category | Data Exchange |
Returns | True if successful |
Version | 2.1.15+ |
The CreateXMLElement Activity creates a single XML element within XML data.
Contents
Arguments
Argument | Type | Direction | Purpose |
---|---|---|---|
ParentElement | XmlElement | In | The parent element where the new element should be created below; if empty, it will take the element from its nesting host |
ElementName | String | In | The name of the new element |
ElementValue | String | In | The value of the new element |
ElementComment | String | In | The comment to the new element |
CreatedElement | XmlElement | Out | The created XML element |
Usage
This activity is used to create a single XML element below an existing element, as a nested activity within a CreateXMLScope activity. It is a nestable activity, which means it can host a sub activity that will be processed. The hosted activities are typically of type CreateXMLElement again, or CreateXMLAttribute activities, either as direct children or wrapped into other activities like ForEach or Sequence.
This activity provides the created XML element automatically to all XML sub activities, so the XML hierarchy will be built in the very way sub activities are nested! |
Example
The create XML Element activity, as used in the larger example "Export and send MetaClasses":