Difference between revisions of "Activity:CreateXMLElement (Activity)"
(22 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | The CreateXMLElement Activity creates a single [http://en.wikipedia.org/wiki/XML XML] element within XML data. | ||
+ | = Description = | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Create XML Element | | title = Create XML Element | ||
Line 5: | Line 7: | ||
| imagecaption = CreateXMLElement (Expanded) | | imagecaption = CreateXMLElement (Expanded) | ||
| purpose = Create an XML element | | purpose = Create an XML element | ||
− | | category = Data Exchange | + | | category = UBIK Data Exchange |
| returns = True if successful | | returns = True if successful | ||
| version = 2.1.15+ | | version = 2.1.15+ | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | ===Arguments=== | ||
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
|- | |- | ||
! 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|| | + | | ElementName|| {{String_MSDN}}|| In || The name of the new element |
|- align="left" | |- align="left" | ||
− | | ElementValue|| | + | | ElementValue|| {{String_MSDN}}|| In || The value of the new element |
|- align="left" | |- align="left" | ||
− | | ElementComment|| | + | | ElementComment|| {{String_MSDN}}|| In || The comment to the new element |
|- align="left" | |- align="left" | ||
− | | CreatedElement|| | + | | CreatedElement|| {{XmlElement_MSDN}}|| Out || The created XML element |
|} | |} | ||
− | ==Usage== | + | ===Usage=== |
− | This activity is used to create a single XML element below an existing element, as a nested activity within a [[CreateXMLScope (Activity)|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 (Activity)|CreateXMLAttribute]] activities, either as direct children or wrapped into other activities like ''ForEach'' or ''Sequence''. | + | This activity is used to create a single XML element below an existing element, as a nested activity within a [[Activity:CreateXMLScope (Activity)|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 [[Activity:CreateXMLAttribute (Activity)|CreateXMLAttribute]] activities, either as direct children or wrapped into other activities like ''ForEach'' or ''Sequence''. |
{{Attention|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!}} | {{Attention|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":<br /> | ||
[[File:UI_Activity_CreateXMLElement_Example.png|x700px]] | [[File:UI_Activity_CreateXMLElement_Example.png|x700px]] | ||
+ | |||
+ | <headertabs /> | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | * [[CreateXMLScope (Activity)]] | + | * [[Activity:CreateXMLScope (Activity)]] |
− | * [[CreateXMLAttribute (Activity)]] | + | * [[Activity:CreateXMLAttribute (Activity)]] |
− | [[Category: | + | [[Category:XML]] |
Latest revision as of 12:24, 23 February 2015
The CreateXMLElement Activity creates a single XML element within XML data.