OTX Reference  
OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlChildElement Class Reference

Deletes a xml child element. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlChildElement:
Inheritance graph

Public Attributes

XmlElementTerm child
 Element which should be deleted. More...
 
XmlElementTerm parent
 Element which contains the element to be deleted. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Actions.ActionRealisation
OtxLink validFor
 Validity of ActionRealisation. More...
 

Detailed Description

Deletes a xml child element.

The DeleteXmlChildElement activity deletes a xml child element.

If the given child element is not a child of the given parent, the XmlException shall be thrown and no deletion shall take place. After deleting the connection, the child element can be reused in the same way as a new element.

Exceptions
Exceptions.XmlChangeException
Syntax
Xml.DeleteXmlChildElement(XmlElementTerm parent, XmlElementTerm child);
XmlElementTerm parent
Element which contains the element to be deleted.
Definition: XML.cs:885
XmlElementTerm child
Element which should be deleted.
Definition: XML.cs:895
Examples
// Local Declarations
Xml.XmlElement XmlElement1;
Xml.XmlElement XmlElement2;
// Flow
XmlElement1 = Xml.CreateXmlElement("root", "xyz");
XmlElement2 = Xml.CreateXmlElement("child");
Xml.AddXmlChildElement(XmlElement1, XmlElement2);
Xml.DeleteXmlChildElement(XmlElement1, XmlElement2);

Member Data Documentation

◆ child

XmlElementTerm OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlChildElement.child

Element which should be deleted.

◆ parent

XmlElementTerm OpenTestSystem.Otx.Extensions.XML.Actions.DeleteXmlChildElement.parent

Element which contains the element to be deleted.