Difference between revisions of "Extensions.Xml.DeleteXmlAttribute"

From emotive
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:OTX '''DeleteXmlAttribute'''}}Category:Xml == Classification == {{ClassificationActivity | DeleteXmlAttribute | UPDATING... | Action | Extensions.Xml|...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:OTX '''DeleteXmlAttribute'''}}[[Category:Xml]]
 
{{DISPLAYTITLE:OTX '''DeleteXmlAttribute'''}}[[Category:Xml]]
 
== Classification ==
 
== Classification ==
{{ClassificationActivity | DeleteXmlAttribute | UPDATING... | [[Action]] | [[Extensions.Xml|OTX Xml extension]] | UPDATING... | UPDATING... | UPDATING... }}
+
{{ClassificationActivity | DeleteXmlAttribute| Deletes an XML attribute | [[Action]] | [[Extensions.Xml|OTX Xml extension]] |[[Extensions.Xml#Actions|Xml related Actions]] | [[Extensions.Xml.XmlChangeException|XmlChangeException]]| -|}}
  
 
== OTL Syntax ==
 
== OTL Syntax ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagCom.CloseComChannel(ComChannelVariable);
+
Xml.DeleteXmlAttribute(XmlElementTerm element, StringTerm name);
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== Description ==
 
== Description ==
UPDATING...<!--
+
The '''DeleteXmlAttribute''' action is used to delete an '''XML''' attribute by name.
OTX CloseComChannel activity is used for the [[Diagnosis Runtime System]] to announce that an open communication channel that all relevant resources can be released and closed.
 
{{ComChannelMemoryUsageNote}}
 
{{Important|Please note that the use of a shared '''ComChannel''' can bring the OTX runtime system in an undefined state and that is this case is not validated at design time!}}
 
-->
 
  
 
== Properties ==
 
== Properties ==
UPDATING...<!--
 
 
{| {{TableHeader}}
 
{| {{TableHeader}}
 
{{TableRowPropertiesHeader}}
 
{{TableRowPropertiesHeader}}
{{TableRowPropertie1| ComChannel | [[Extensions.DiagCom.ComChannel|ComChannel]] | [[Variable]] | - | [1] | Communication Channel (Control unit).}}
+
{{TableRowPropertie1| Element| [[Extensions.Xml.XmlElement|XmlElement]] | [[Term]] | - | [1..1] | The element which contains the to be deleted attribute.}}
 +
{{TableRowPropertie2| Name| [[Core.DataTypes.SimpleDataType.String|String]] | [[Term]] | - | [1..1] | The name of the attribute.}}
 
|}
 
|}
-->
 
  
 
== OTL Examples ==
 
== OTL Examples ==
UPDATING...<!--
 
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
DiagCom.ComChannel myComCannel;
+
/// Local Declarations
  
myComCannel = DiagCom.GetComChannel("DiagnosticsCan_ECU_1", null, false);
+
Xml.XmlElement XmlElement1;
  
// Code example using the variable myComChannel
+
/// Flow
// ...
+
 
DiagCom.CloseComChannel(myComCannel);</syntaxhighlight>
+
XmlElement1 = Xml.CreateXmlElement("root", "abcdef", {"attribute":"xyz"});
 +
Xml.DeleteXmlAttribute(XmlElement1, "attribute");
 
</syntaxhighlight>
 
</syntaxhighlight>
-->
 
  
 
== See also ==
 
== See also ==
UPDATING...
+
[[Extensions.Xml.AddXmlChildElement|AddXmlChildElement]]<br/>
 +
<!--[[Extensions.Xml.DeleteXmlAttribute|DeleteXmlAttribute]]<br/>-->
 +
[[Extensions.Xml.DeleteXmlChildElement|DeleteXmlChildElement]]<br/>
 +
[[Extensions.Xml.SetXmlComment|SetXmlComment]]<br/>
 +
[[Extensions.Xml.SetXmlElementAttribute|SetXmlElementAttribute]]<br/>
 +
[[Extensions.Xml.SetXmlElementAttributes|SetXmlElementAttributes]]<br/>
 +
[[Extensions.Xml.SetXmlElementText|SetXmlElementText]]<br/>
 +
[[Extensions.Xml.SetXmlProcessingInstructions|SetXmlProcessingInstructions]]<br/>
 +
[[Extensions.Xml.ValidateXml|ValidateXml]]<br/>
 +
[[Extensions.Xml.XmlSaveToFile|XmlSaveToFile]]

Latest revision as of 04:55, 8 November 2018

Classification

Name DeleteXmlAttribute
Short Description Deletes an XML attribute
Class Action
Extension OTX Xml extension
Group Xml related Actions
Exceptions XmlChangeException
Checker Rules -
Standard Compliant Yes

OTL Syntax

Xml.DeleteXmlAttribute(XmlElementTerm element, StringTerm name);

Description

The DeleteXmlAttribute action is used to delete an XML attribute by name.

Properties

Name Data Type Class Default Cardinality Description
Element XmlElement Term - [1..1] The element which contains the to be deleted attribute.
Name String Term - [1..1] The name of the attribute.

OTL Examples

/// Local Declarations

Xml.XmlElement XmlElement1;

/// Flow

XmlElement1 = Xml.CreateXmlElement("root", "abcdef", {"attribute":"xyz"});
Xml.DeleteXmlAttribute(XmlElement1, "attribute");

See also

AddXmlChildElement
DeleteXmlChildElement
SetXmlComment
SetXmlElementAttribute
SetXmlElementAttributes
SetXmlElementText
SetXmlProcessingInstructions
ValidateXml
XmlSaveToFile