XML
Activities
- AddXmlNode
- CreateXml
- EditXmlNodeAttributes
- EditXmlNodeValue
- FindXmlNodes
- Get Node Attributes
- getFieldFromXML
- GetXMLNodeValue
- ImportFromXML
- ImportXML
AddXmlNode
This activity adds a XML node at a specified XPATH in the XML source file.
.
Activity Parameters
The AddXmlNode activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Attributes (text box editor type) (type: string): Enter the attributes and values pairs. Should be entered as [AttributeName = "Value"] without the square bracket, separated by a whitespace. If no attributes are required, leave this field blank. For Example: Needing to put 2 attributes, the expression should be : Attrib1 = "value1" Attrib2 = "value2" .
- Filename (text box editor type) (type: string): (Optional) Enter the file name.
- FilePath (text box editor type) (type: string): Enter the disk path of the xml file you wish to use as source for this activity. This takes precedence over the XmlString parameter.
- NodeName (text box editor type) (type: string): Enter the node name.
- Save Folder Path (text box editor type) (type: string): (Optional) Specifies a path on disk where the xml file should be saved.
- Value (text box editor type) (type: string): Enter the text value of the node.
- XmlString (text box editor type) (type: string): Enter the Input XML string.This parameter should be bound to a Resulting Xml String parameter from a XML activity.
- XPath (text box editor type) (type: string): Enter the XPath where you wish the node to be inserted. If the path doesn't exist, the inexistent parts will be created.For example: /root/node_name/node_name.
The Read Only Output variable are the possible output values that the activity will provide:
- Resultulting XML string (type: string): Outputs the resulting XML String.(This parameter can be used as Input for XmlString parameter for activities under XML category).
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
CreateXml
This activity creates a blank XML string with a specified root element and heading. Optionally can be saved on disk.
Activity Parameters
The CreateXML activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Encoding (text box editor type) (type: string): Enter the type of used encoding in creating the XML file.
- Filename (text box editor type) (type: string): Enter the file name.
- FolderPath (text box editor type) (type: string): (Optional) Specifies a path on disk where the xml file should be saved. Leave empty if you do not wish to save on disk.
- Overwrite (combo-box editor type): Overwrites the file if it already exists.
- Root (text box editor type) (type: string): Enter the root name.
- Version (text box editor type) (type: string): Enter the Version of xml standard.
The Read Only Output variable are the possible output values that the activity will provide:
- Resulting XML string (type: string): Outputs the resulting XML string. (This parameter can be used as Input for XmlString parameter for activities under XML category).
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
EditXmlNodeAttributes
This activity edits the node attributes given by a certain XPath.
Activity Parameters
The EditXmlNodeAttributes activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Attributes (text box editor type) (type: string): Enter the attributes and values pairs. Should be entered as [AttributeName = "Value"] without the square bracket, separated by commas. If no attributes are required, leave this field blank. For Example: Needing to put 2 attributes, the expression should be : Attrib1 = "value1", Attrib2 = "value2". Attributes that are present in the node and not present in this expression will be left unchanged. New attributes will be added and existing ones changed.
- Filename (text box editor type) (type: string): (Optional) Enter the file name.
- FilePath (text box editor type) (type: string): Enter the disk path of the xml file you wish to use as source for this activity. This takes precedence over the XmlString parameter.
- FolderPath (text box editor type) (type: string): (Optional) Specifies a path on disk where the xml file should be saved.Leave empty if you do not wish to save on disk.
- XmlString (text box editor type) (type: string): Enter the Input XML string.This parameter should be bound to a Resulting Xml String parameter from a XML activity.
- XPath (text box editor type) (type: string): Enter the XPath of the node you wish to modify. For example: /root/node_name/editing_node.
The Read Only Output variable are the possible output values that the activity will provide:
- Resulting XML string (type: string): Outputs the resulting XML String.(This parameter can be used as Input for XmlString parameter for activities under XML category).
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
EditXmlNodeValue
This activity edits the value of the node given by a certain XPath.
Activity Parameters
The EditXmlNodeValue activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Filename (text box editor type) (type: string): (Optional) Enter the file name.
- FilePath (text box editor type) (type: string): Enter the disk path of the xml file you wish to use as source for this activity. This takes precedence over the XmlString parameter.
- FolderPath (text box editor type) (type: string): (Optional) Specifies a path on disk where the xml file should be saved.Leave empty if you do not wish to save on disk.
- XmlString (text box editor type) (type: string): Enter the Input XML string.This parameter should be bound to a Resulting Xml String parameter from a XML activity.
- XPath (text box editor type) (type: string): Enter the XPath of the node you wish to modify. For example: /root/node_name/editing_node.
The Read Only Output variable are the possible output values that the activity will provide:
- Resulting XML string (type: string): Outputs the resulting XML String.(This parameter can be used as Input for XmlString parameter for activities under XML category).
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
FindXmlNodes
This activity returns a collection of nodes according to some given filters.
Activity Parameters
The FindXmlNodes activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- FilePath (text box editor type) (type: string): Enter the disk path of the xml file you wish to use as source for this activity. This takes precedence over the XmlString parameter.
- FilterByAttributes (text box editor type) (type: string): Enter the attributes and their values you wish to filter by. A node must have these attributes and their values equal to the input to be considered as valid output. The attributes should be entered as [AttributeName = Value] without the square bracket, separated by commas. Leave blank if you do not wish to filter by attributes. For Example: Needing to filter by 2 attributes, you should type: attribName1 = value1 , attribName2 = value2.
- XmlString (text box editor type) (type: string): Enter the Input XML string.This parameter should be bound to a Resulting Xml String parameter from a XML activity.
- XPath (text box editor type) (type: string): Enter the XPath of the node you wish to modify. For example: /root/node_name/editing_node.
The Read Only Output variable are the possible output values that the activity will provide:
- Resulting XML string (type: string): Outputs the resulting XML String.(This parameter can be used as Input for XmlString parameter for activities under XML category).
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
Get Node Attributes
This activity outputs an object of type Dictionary where key is the name of the input node's attribute and value is that attribute's value.
Activity Parameters
The Get Node Attributes activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- XmlNodeString (text box editor type) (type: string): Enter the input XML Node String.
The Read Only Output variable are the possible output values that the activity will provide:
- OutputAttributeValuePairs (type: System.Collections.Generic.Dictionary<String>,<.String>): Outputs an object of type Dictionary in which each entry represents an AttributeName-AttributeValue pair.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
getFieldFromXML
This activity gets and returns a field from a XML file.
Activity Parameters
The getFieldFromXML activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Iterator (text box editor type) (type: string): Position indicator for the desired node from the xml structure.
- Field (text box editor type) (type: string): Enter the input XML Node String.
- XML input (text box editor type) (type: string): Enter the XML File from where you want the Field to be retrieved from.
- XML Node (text box editor type) (type: string): Enter the node name from the XML file - used for iterating through the xml structure.
The Read Only Output variable are the possible output values that the activity will provide:
- Has Next (type: boolean): Returns 'true' if node exists(specified in the XML Node parameter), returns 'false' otherwise.
- Output (type: string): Outputs the specified field from the XML file.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
GetXMLNodeValue
This activity gets the text value of a given xml node.
Activity Parameters
The Get Node Attributes activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- XmlNodeString (text box editor type) (type: string): Enter the input XML Node String.
The Read Only Output variable are the possible output values that the activity will provide:
- NodeValue (type: string): Outputs the text value of a given node.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
Import From XML
This activity gets and returns a field from a XML file.
Activity Parameters
The Import From XML activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- Iterator (text box editor type) (type: string): Position indicator for the desired node from the xml structure.
- Field (text box editor type) (type: string): Enter the input XML Node String.
- XML File (text box editor type) (type: string): Enter the XML File from where you want the Field to be retrieved from.
- XML Node (text box editor type) (type: string): Enter the node name from the XML file - used for iterating through the xml structure.
The Read Only Output variable are the possible output values that the activity will provide:
- Has Next (type: boolean): Returns 'true' if node exists(specified in the XML Node parameter), returns 'false' otherwise.
- Output (type: string): Outputs the specified value from the XML file.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.
Import XML
This activity gets and returns a field from a XML file.
Activity Parameters
The Import XML activity parameters can be provided by manual inserted values or via IN arguments or variables:
Parameters:
- XML File (text box editor type) (type: string): Specifies the full path (including the filename) of the xml file.
The Read Only Output variable are the possible output values that the activity will provide:
- Output (type: string): Outputs a XML string.
As mentioned above, the values for all the required parameters can be provided by IN arguments or variables.