XmlElement

Overview

Xml Element is an xml node that contains a xll element and it's children.

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Ancestry: XmlNode | XmlElement

 

constructor    (declared in XmlNode) .NET, .NET Standard 2.0, Cooper, Island, ToffeeV2

 

constructor

 

XmlElement()

 

init()

 

XmlElement()

 

Sub New()

constructor init()    (declared in XmlNode) Toffee

 

init(init )

Parameters:

  • :

constructor withName(not nullable String): InstanceType

Create a new node with a name .

 

constructor withName(aLocalName: not nullable String)

 

XmlElement withName(String! aLocalName)

 

init(withName aLocalName: String)

 

XmlElement withName(String aLocalName)

 

Sub New withName(aLocalName As String)

Parameters:

  • aLocalName:

constructor withName(not nullable String) Value(not nullable String): InstanceType

Create a new node with a name and value.

 

constructor withName(aLocalName: not nullable String) Value(aValue: not nullable String)

 

XmlElement withName(String! aLocalName) Value(String! aValue)

 

init(withName aLocalName: String, Value aValue: String)

 

XmlElement withName(String aLocalName) Value(String aValue)

 

Sub New withName(aLocalName As String) Value(aValue As String)

Parameters:

  • aLocalName:
  • aValue:

Add (not nullable XmlAttribute)

 

method Add(aAttribute: not nullable XmlAttribute)

 

void Add(XmlAttribute! aAttribute)

 

func Add(_ aAttribute: XmlAttribute)

 

void Add(XmlAttribute aAttribute)

 

Sub Add(aAttribute As XmlAttribute)

Parameters:

  • aAttribute:

Add (not nullable XmlCData)

 

method Add(aCData: not nullable XmlCData)

 

void Add(XmlCData! aCData)

 

func Add(_ aCData: XmlCData)

 

void Add(XmlCData aCData)

 

Sub Add(aCData As XmlCData)

Parameters:

  • aCData:

Add (not nullable XmlComment)

 

method Add(aComment: not nullable XmlComment)

 

void Add(XmlComment! aComment)

 

func Add(_ aComment: XmlComment)

 

void Add(XmlComment aComment)

 

Sub Add(aComment As XmlComment)

Parameters:

  • aComment:

Add (not nullable IEnumerable<Object>)

 

method Add(aData: not nullable IEnumerable<Object>)

 

void Add(IEnumerable<Object>! aData)

 

// Toffee
func Add(_ aData: INSFastEnumeration<Object>)
// ToffeeV2
func Add(_ aData: IEnumerable<NSObject>)

 

void Add(Iterable<Object> aData)

 

Sub Add(aData As IEnumerable<Object>)

Parameters:

  • aData:

Add (not nullable IEnumerable<XmlElement>)

 

method Add(aData: not nullable IEnumerable<XmlElement>)

 

void Add(IEnumerable<XmlElement>! aData)

 

// Toffee
func Add(_ aData: INSFastEnumeration<XmlElement>)
// ToffeeV2
func Add(_ aData: IEnumerable<XmlElement>)

 

void Add(Iterable<XmlElement> aData)

 

Sub Add(aData As IEnumerable<XmlElement>)

Parameters:

  • aData:

Add (not nullable DateTime)

 

method Add(aDateTime: not nullable DateTime)

 

void Add(DateTime! aDateTime)

 

func Add(_ aDateTime: DateTime)

 

void Add(DateTime aDateTime)

 

Sub Add(aDateTime As DateTime)

Parameters:

  • aDateTime:

Add (not nullable XmlElement)

 

method Add(aElement: not nullable XmlElement)

 

void Add(XmlElement! aElement)

 

func Add(_ aElement: XmlElement)

 

void Add(XmlElement aElement)

 

Sub Add(aElement As XmlElement)

Parameters:

  • aElement:

Add (not nullable String)

 

method Add(aString: not nullable String)

 

void Add(String! aString)

 

func Add(_ aString: String)

 

void Add(String aString)

 

Sub Add(aString As String)

Parameters:

  • aString:

AddAttribute

Add an attribute to this node.

 

method AddAttribute(aAttribute: not nullable XmlAttribute)

 

void AddAttribute(XmlAttribute! aAttribute)

 

func AddAttribute(_ aAttribute: XmlAttribute)

 

void AddAttribute(XmlAttribute aAttribute)

 

Sub AddAttribute(aAttribute As XmlAttribute)

Parameters:

  • aAttribute:

AddElement (not nullable XmlElement) atIndex(Int32)

Adda sub element and returns it.

 

method AddElement(aElement: not nullable XmlElement) atIndex(aIndex: Int32)

 

void AddElement(XmlElement! aElement) atIndex(Int32 aIndex)

 

func AddElement(_ aElement: XmlElement, atIndex aIndex: Int32)

 

void AddElement(XmlElement aElement) atIndex(Integer aIndex)

 

Sub AddElement(aElement As XmlElement) atIndex(aIndex As Int32)

Parameters:

  • aElement:
  • aIndex:

AddElement (not nullable String, nullable XmlNamespace, nullable String) atIndex(Int32): not nullable XmlElement

Adda sub element and returns it.

 

method AddElement(aName: not nullable String; aNamespace: nullable XmlNamespace; aValue: nullable String) atIndex(aIndex: Int32): not nullable XmlElement

 

XmlElement! AddElement(String! aName, XmlNamespace? aNamespace, String? aValue) atIndex(Int32 aIndex)

 

// Toffee
func AddElement(_ aName: String, _ aNamespace: XmlNamespace, _ aValue: String, atIndex aIndex: Int32) -> XmlElement
// ToffeeV2
func AddElement(_ aName: String, _ aNamespace: XmlNamespace?, _ aValue: String?, atIndex aIndex: Int32) -> XmlElement

 

XmlElement AddElement(String aName, XmlNamespace aNamespace, String aValue) atIndex(Integer aIndex)

 

Function AddElement(aName As String, aNamespace As XmlNamespace?, aValue As String?) atIndex(aIndex As Int32) As XmlElement

Parameters:

  • aName:
  • aNamespace:
  • aValue:
  • aIndex:

AddElement (not nullable XmlElement)

Adda sub element and returns it.

 

method AddElement(aElement: not nullable XmlElement)

 

void AddElement(XmlElement! aElement)

 

func AddElement(_ aElement: XmlElement)

 

void AddElement(XmlElement aElement)

 

Sub AddElement(aElement As XmlElement)

Parameters:

  • aElement:

AddElement (not nullable String, nullable XmlNamespace, nullable String): not nullable XmlElement

Adda sub element and returns it.

 

method AddElement(aName: not nullable String; aNamespace: nullable XmlNamespace; aValue: nullable String): not nullable XmlElement

 

XmlElement! AddElement(String! aName, XmlNamespace? aNamespace, String? aValue)

 

// Toffee
func AddElement(_ aName: String, _ aNamespace: XmlNamespace, _ aValue: String) -> XmlElement
// ToffeeV2
func AddElement(_ aName: String, _ aNamespace: XmlNamespace?, _ aValue: String?) -> XmlElement

 

XmlElement AddElement(String aName, XmlNamespace aNamespace, String aValue)

 

Function AddElement(aName As String, aNamespace As XmlNamespace?, aValue As String?) As XmlElement

Parameters:

  • aName:
  • aNamespace:
  • aValue:

AddElements

Add 0 or more elements.

 

method AddElements(aElements: not nullable IEnumerable<XmlElement>)

 

void AddElements(IEnumerable<XmlElement>! aElements)

 

// Toffee
func AddElements(_ aElements: INSFastEnumeration<XmlElement>)
// ToffeeV2
func AddElements(_ aElements: IEnumerable<XmlElement>)

 

void AddElements(Iterable<XmlElement> aElements)

 

Sub AddElements(aElements As IEnumerable<XmlElement>)

Parameters:

  • aElements:

AddNamespace (not nullable XmlNamespace)

Add an xml namespace definition to this node.

 

method AddNamespace(aNamespace: not nullable XmlNamespace)

 

void AddNamespace(XmlNamespace! aNamespace)

 

func AddNamespace(_ aNamespace: XmlNamespace)

 

void AddNamespace(XmlNamespace aNamespace)

 

Sub AddNamespace(aNamespace As XmlNamespace)

Parameters:

  • aNamespace:

AddNamespace (nullable String, not nullable String): XmlNamespace

 

method AddNamespace(aPrefix: nullable String; aUri: not nullable String): XmlNamespace

 

XmlNamespace AddNamespace(String? aPrefix, String! aUri)

 

// Toffee
func AddNamespace(_ aPrefix: String, _ aUri: String) -> XmlNamespace
// ToffeeV2
func AddNamespace(_ aPrefix: String?, _ aUri: String) -> XmlNamespace

 

XmlNamespace AddNamespace(String aPrefix, String aUri)

 

Function AddNamespace(aPrefix As String?, aUri As String) As XmlNamespace

Parameters:

  • aPrefix:
  • aUri:

AddNamespace (nullable String, not nullable Uri): XmlNamespace

Add an xml namespace definition to this node.

 

method AddNamespace(aPrefix: nullable String; aUri: not nullable Uri): XmlNamespace

 

XmlNamespace AddNamespace(String? aPrefix, Uri! aUri)

 

// Toffee
func AddNamespace(_ aPrefix: String, _ aUri: Uri) -> XmlNamespace
// ToffeeV2
func AddNamespace(_ aPrefix: String?, _ aUri: Uri) -> XmlNamespace

 

XmlNamespace AddNamespace(String aPrefix, Uri aUri)

 

Function AddNamespace(aPrefix As String?, aUri As Uri) As XmlNamespace

Parameters:

  • aPrefix:
  • aUri:

AddNode

Add a raw sub mode.

 

method AddNode(aNode: not nullable XmlNode)

 

void AddNode(XmlNode! aNode)

 

func AddNode(_ aNode: XmlNode)

 

void AddNode(XmlNode aNode)

 

Sub AddNode(aNode As XmlNode)

Parameters:

  • aNode:

Attribute

Find an attribute by name (or nil)

 

property Attribute[aName: not nullable String]: nullable XmlAttribute read;

 

XmlAttribute? Attribute[String! aName] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Attribute(_ aName: String) -> XmlAttribute? { get{} }
// Toffee
subscript Attribute(_ aName: String) -> XmlAttribute { get{} }

 

XmlAttribute Attribute[String aName] { __get; }

 

ReadOnly Property Attribute(aName As String) As XmlAttribute?

Attribute

Find an attribute by name (or nil)

 

property Attribute[aName: not nullable String; aNamespace: nullable XmlNamespace]: nullable XmlAttribute read;

 

XmlAttribute? Attribute[String! aName, XmlNamespace? aNamespace] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Attribute(_ aName: String, _ aNamespace: XmlNamespace?) -> XmlAttribute? { get{} }
// Toffee
subscript Attribute(_ aName: String, _ aNamespace: XmlNamespace) -> XmlAttribute { get{} }

 

XmlAttribute Attribute[String aName, XmlNamespace aNamespace] { __get; }

 

ReadOnly Property Attribute(aName As String, aNamespace As XmlNamespace?) As XmlAttribute?

Attributes

Returns all attributes.

 

property Attributes: not nullable IEnumerable<XmlAttribute> read;

 

IEnumerable<XmlAttribute>! Attributes { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Attributes: IEnumerable<XmlAttribute> { get{} }
// Toffee
var Attributes: INSFastEnumeration<XmlAttribute> { get{} }

 

Iterable<XmlAttribute> Attributes { __get; }

 

ReadOnly Property Attributes() As IEnumerable<XmlAttribute>

ChildIndex

Returns the index in the parent element.

 

property ChildIndex: Int32 read;

 

Int32 ChildIndex { get; }

 

var ChildIndex: Int32 { get{} }

 

Integer ChildIndex { __get; }

 

ReadOnly Property ChildIndex() As Int32

CloseTagRange

Returns the position in the original file of the closing tag.

 

property CloseTagRange: XmlRange read write;

 

XmlRange CloseTagRange { get; set; }

 

var CloseTagRange: XmlRange { get{} set{} }

 

XmlRange CloseTagRange { __get; __set; }

 

Property CloseTagRange() As XmlRange

DefaultNamespace

Default namespace when no prefix is specified.

 

property DefaultNamespace: XmlNamespace read;

 

XmlNamespace DefaultNamespace { get; }

 

var DefaultNamespace: XmlNamespace { get{} }

 

XmlNamespace DefaultNamespace { __get; }

 

ReadOnly Property DefaultNamespace() As XmlNamespace

DefinedNamespaces

Sequence of namespaces defined in this element.

 

property DefinedNamespaces: not nullable IEnumerable<XmlNamespace> read;

 

IEnumerable<XmlNamespace>! DefinedNamespaces { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var DefinedNamespaces: IEnumerable<XmlNamespace> { get{} }
// Toffee
var DefinedNamespaces: INSFastEnumeration<XmlNamespace> { get{} }

 

Iterable<XmlNamespace> DefinedNamespaces { __get; }

 

ReadOnly Property DefinedNamespaces() As IEnumerable<XmlNamespace>

description  override Toffee

 

func description(description ) -> NSString

Parameters:

  • :

Document    (declared in XmlNode)

Gets the document this node is in.

 

property Document: nullable XmlDocument read write;

 

XmlDocument? Document { get; set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Document: XmlDocument? { get{} set{} }
// Toffee
var Document: XmlDocument { get{} set{} }

 

XmlDocument Document { __get; __set; }

 

Property Document() As XmlDocument?

Elements

Returns all child elements.

 

property Elements: not nullable IEnumerable<XmlElement> read;

 

IEnumerable<XmlElement>! Elements { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Elements: IEnumerable<XmlElement> { get{} }
// Toffee
var Elements: INSFastEnumeration<XmlElement> { get{} }

 

Iterable<XmlElement> Elements { __get; }

 

ReadOnly Property Elements() As IEnumerable<XmlElement>

ElementsWithName

Find a child element by name.

 

method ElementsWithName(aLocalName: not nullable String; aNamespace: nullable XmlNamespace): not nullable IEnumerable<XmlElement>

 

IEnumerable<XmlElement>! ElementsWithName(String! aLocalName, XmlNamespace? aNamespace)

 

// Toffee
func ElementsWithName(_ aLocalName: String, _ aNamespace: XmlNamespace) -> INSFastEnumeration<XmlElement>
// ToffeeV2
func ElementsWithName(_ aLocalName: String, _ aNamespace: XmlNamespace?) -> IEnumerable<XmlElement>

 

Iterable<XmlElement> ElementsWithName(String aLocalName, XmlNamespace aNamespace)

 

Function ElementsWithName(aLocalName As String, aNamespace As XmlNamespace?) As IEnumerable<XmlElement>

Parameters:

  • aLocalName:
  • aNamespace:

ElementsWithNamespace

Find a child element by name.

 

method ElementsWithNamespace(aNamespace: nullable XmlNamespace): not nullable IEnumerable<XmlElement>

 

IEnumerable<XmlElement>! ElementsWithNamespace(XmlNamespace? aNamespace)

 

// Toffee
func ElementsWithNamespace(_ aNamespace: XmlNamespace) -> INSFastEnumeration<XmlElement>
// ToffeeV2
func ElementsWithNamespace(_ aNamespace: XmlNamespace?) -> IEnumerable<XmlElement>

 

Iterable<XmlElement> ElementsWithNamespace(XmlNamespace aNamespace)

 

Function ElementsWithNamespace(aNamespace As XmlNamespace?) As IEnumerable<XmlElement>

Parameters:

  • aNamespace:

EndTagName

Returns the name of the end tag.

 

property EndTagName: String read write;

 

String EndTagName { get; set; }

 

var EndTagName: String { get{} set{} }

 

String EndTagName { __get; __set; }

 

Property EndTagName() As String

FirstElementWithName

Find a child element by name.

 

method FirstElementWithName(aLocalName: not nullable String; aNamespace: nullable XmlNamespace): nullable XmlElement

 

XmlElement? FirstElementWithName(String! aLocalName, XmlNamespace? aNamespace)

 

// Toffee
func FirstElementWithName(_ aLocalName: String, _ aNamespace: XmlNamespace) -> XmlElement
// ToffeeV2
func FirstElementWithName(_ aLocalName: String, _ aNamespace: XmlNamespace?) -> XmlElement?

 

XmlElement FirstElementWithName(String aLocalName, XmlNamespace aNamespace)

 

Function FirstElementWithName(aLocalName As String, aNamespace As XmlNamespace?) As XmlElement?

Parameters:

  • aLocalName:
  • aNamespace:

FullName

Returns the full name of this element including namespace.

 

property FullName: not nullable String read;

 

String! FullName { get; }

 

var FullName: String { get{} }

 

String FullName { __get; }

 

ReadOnly Property FullName() As String

GetValue

Retuns the string content of this node, optionally including nested elements.

 

method GetValue(aWithNested: Boolean): nullable String

 

String? GetValue(Boolean aWithNested)

 

// Toffee
func GetValue(_ aWithNested: Boolean) -> String
// ToffeeV2
func GetValue(_ aWithNested: Boolean) -> String?

 

String GetValue(Boolean aWithNested)

 

Function GetValue(aWithNested As Boolean) As String?

Parameters:

  • aWithNested:

IsEmpty

True if this element is empty and no child nodes.

 

property IsEmpty: Boolean read;

 

Boolean IsEmpty { get; }

 

var IsEmpty: Boolean { get{} }

 

Boolean IsEmpty { __get; }

 

ReadOnly Property IsEmpty() As Boolean

LocalName

Returns the name of this node without any prefix.

 

property LocalName: not nullable String read write;

 

String! LocalName { get; set; }

 

var LocalName: String { get{} set{} }

 

String LocalName { __get; __set; }

 

Property LocalName() As String

Namespace

Get the namespace for a prefix, only returns a value if it's defined on this node.

 

property Namespace[aPrefix: String]: nullable XmlNamespace read;

 

XmlNamespace? Namespace[String aPrefix] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Namespace(_ aPrefix: String) -> XmlNamespace? { get{} }
// Toffee
subscript Namespace(_ aPrefix: String) -> XmlNamespace { get{} }

 

XmlNamespace Namespace[String aPrefix] { __get; }

 

ReadOnly Property Namespace(aPrefix As String) As XmlNamespace?

Namespace

Get the namespace for an url, only returns a value if it's defined on this node.

 

property Namespace[aUri: Uri]: nullable XmlNamespace read;

 

XmlNamespace? Namespace[Uri aUri] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Namespace(_ aUri: Uri) -> XmlNamespace? { get{} }
// Toffee
subscript Namespace(_ aUri: Uri) -> XmlNamespace { get{} }

 

XmlNamespace Namespace[Uri aUri] { __get; }

 

ReadOnly Property Namespace(aUri As Uri) As XmlNamespace?

Namespace

Returns the namespace for this element.

 

property Namespace: XmlNamespace read write;

 

XmlNamespace Namespace { get; set; }

 

var Namespace: XmlNamespace { get{} set{} }

 

XmlNamespace Namespace { __get; __set; }

 

Property Namespace() As XmlNamespace

NamespaceByUri

 

property NamespaceByUri[aUri: String]: nullable XmlNamespace read;

 

XmlNamespace? NamespaceByUri[String aUri] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript NamespaceByUri(_ aUri: String) -> XmlNamespace? { get{} }
// Toffee
subscript NamespaceByUri(_ aUri: String) -> XmlNamespace { get{} }

 

XmlNamespace NamespaceByUri[String aUri] { __get; }

 

ReadOnly Property NamespaceByUri(aUri As String) As XmlNamespace?

NodeRange    (declared in XmlNode)

Returns the original range of this node during parsing.

 

property NodeRange: XmlRange read write;

 

XmlRange NodeRange { get; set; }

 

var NodeRange: XmlRange { get{} set{} }

 

XmlRange NodeRange { __get; __set; }

 

Property NodeRange() As XmlRange

Nodes

Returns all nodes.

 

property Nodes: ImmutableList<XmlNode> read;

 

ImmutableList<XmlNode> Nodes { get; }

 

var Nodes: ImmutableList<XmlNode> { get{} }

 

ImmutableList<XmlNode> Nodes { __get; }

 

ReadOnly Property Nodes() As ImmutableList<XmlNode>

NodeType    (declared in XmlNode)

Contains the type of this node.

 

property NodeType: XmlNodeType read;

 

XmlNodeType NodeType { get; }

 

var NodeType: XmlNodeType { get{} }

 

XmlNodeType NodeType { __get; }

 

ReadOnly Property NodeType() As XmlNodeType

OpenTagEndColumn

Contains the column of the opening tag ending.

 

property OpenTagEndColumn: Int32 read write;

 

Int32 OpenTagEndColumn { get; set; }

 

var OpenTagEndColumn: Int32 { get{} set{} }

 

Integer OpenTagEndColumn { __get; __set; }

 

Property OpenTagEndColumn() As Int32

OpenTagEndLine

Contains the line of the opening tag ending.

 

property OpenTagEndLine: Int32 read write;

 

Int32 OpenTagEndLine { get; set; }

 

var OpenTagEndLine: Int32 { get{} set{} }

 

Integer OpenTagEndLine { __get; __set; }

 

Property OpenTagEndLine() As Int32

Parent    (declared in XmlNode)

Returns the parent element.

 

property Parent: nullable XmlElement read;

 

XmlElement? Parent { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Parent: XmlElement? { get{} }
// Toffee
var Parent: XmlElement { get{} }

 

XmlElement Parent { __get; }

 

ReadOnly Property Parent() As XmlElement?

PreserveSpace

Preserve whitespace when serializign this node.

 

property PreserveSpace: Boolean read write;

 

Boolean PreserveSpace { get; set; }

 

var PreserveSpace: Boolean { get{} set{} }

 

Boolean PreserveSpace { __get; __set; }

 

Property PreserveSpace() As Boolean

RemoveAllElements .NET, .NET Standard 2.0, Cooper, Island, ToffeeV2

Remove all child elements.

 

method RemoveAllElements

 

void RemoveAllElements()

 

func RemoveAllElements()

 

void RemoveAllElements()

 

Sub RemoveAllElements()

RemoveAllElements RemoveAllElements()  virtual Toffee

 

func RemoveAllElements(RemoveAllElements )

Parameters:

  • :

RemoveAttribute (not nullable XmlAttribute)

Remove an attribute by name.

 

method RemoveAttribute(aAttribute: not nullable XmlAttribute)

 

void RemoveAttribute(XmlAttribute! aAttribute)

 

func RemoveAttribute(_ aAttribute: XmlAttribute)

 

void RemoveAttribute(XmlAttribute aAttribute)

 

Sub RemoveAttribute(aAttribute As XmlAttribute)

Parameters:

  • aAttribute:

RemoveAttribute (not nullable String, nullable XmlNamespace): nullable XmlAttribute

Remove an attribute by name.

 

method RemoveAttribute(aName: not nullable String; aNamespace: nullable XmlNamespace): nullable XmlAttribute

 

XmlAttribute? RemoveAttribute(String! aName, XmlNamespace? aNamespace)

 

// Toffee
func RemoveAttribute(_ aName: String, _ aNamespace: XmlNamespace) -> XmlAttribute
// ToffeeV2
func RemoveAttribute(_ aName: String, _ aNamespace: XmlNamespace?) -> XmlAttribute?

 

XmlAttribute RemoveAttribute(String aName, XmlNamespace aNamespace)

 

Function RemoveAttribute(aName As String, aNamespace As XmlNamespace?) As XmlAttribute?

Parameters:

  • aName:
  • aNamespace:

RemoveElement

Remove an element.

 

method RemoveElement(aElement: not nullable XmlElement)

 

void RemoveElement(XmlElement! aElement)

 

func RemoveElement(_ aElement: XmlElement)

 

void RemoveElement(XmlElement aElement)

 

Sub RemoveElement(aElement As XmlElement)

Parameters:

  • aElement:

RemoveElementsWithName

Remove an element by name.

 

method RemoveElementsWithName(aName: not nullable String; aNamespace: nullable XmlNamespace)

 

void RemoveElementsWithName(String! aName, XmlNamespace? aNamespace)

 

// Toffee
func RemoveElementsWithName(_ aName: String, _ aNamespace: XmlNamespace)
// ToffeeV2
func RemoveElementsWithName(_ aName: String, _ aNamespace: XmlNamespace?)

 

void RemoveElementsWithName(String aName, XmlNamespace aNamespace)

 

Sub RemoveElementsWithName(aName As String, aNamespace As XmlNamespace?)

Parameters:

  • aName:
  • aNamespace:

RemoveNamespace (not nullable XmlNamespace)

Remove a namespace.

 

method RemoveNamespace(aNamespace: not nullable XmlNamespace)

 

void RemoveNamespace(XmlNamespace! aNamespace)

 

func RemoveNamespace(_ aNamespace: XmlNamespace)

 

void RemoveNamespace(XmlNamespace aNamespace)

 

Sub RemoveNamespace(aNamespace As XmlNamespace)

Parameters:

  • aNamespace:

RemoveNamespace (not nullable String)

Remove a namespace.

 

method RemoveNamespace(aPrefix: not nullable String)

 

void RemoveNamespace(String! aPrefix)

 

func RemoveNamespace(_ aPrefix: String)

 

void RemoveNamespace(String aPrefix)

 

Sub RemoveNamespace(aPrefix As String)

Parameters:

  • aPrefix:

ReplaceElement

Replace an element with another.

 

method ReplaceElement(aExistingElement: not nullable XmlElement) withElement(aNewElement: not nullable XmlElement)

 

void ReplaceElement(XmlElement! aExistingElement) withElement(XmlElement! aNewElement)

 

func ReplaceElement(_ aExistingElement: XmlElement, withElement aNewElement: XmlElement)

 

void ReplaceElement(XmlElement aExistingElement) withElement(XmlElement aNewElement)

 

Sub ReplaceElement(aExistingElement As XmlElement) withElement(aNewElement As XmlElement)

Parameters:

  • aExistingElement:
  • aNewElement:

SetAttribute

Adds or replaces an attribute

 

method SetAttribute(aName: not nullable String; aNamespace: nullable XmlNamespace; aValue: not nullable String)

 

void SetAttribute(String! aName, XmlNamespace? aNamespace, String! aValue)

 

// Toffee
func SetAttribute(_ aName: String, _ aNamespace: XmlNamespace, _ aValue: String)
// ToffeeV2
func SetAttribute(_ aName: String, _ aNamespace: XmlNamespace?, _ aValue: String)

 

void SetAttribute(String aName, XmlNamespace aNamespace, String aValue)

 

Sub SetAttribute(aName As String, aNamespace As XmlNamespace?, aValue As String)

Parameters:

  • aName:
  • aNamespace:
  • aValue:

toString Cooper

 

method toString: PlatformString

 

PlatformString toString()

 

func toString() -> PlatformString

 

PlatformString toString()

 

Function toString() As PlatformString

ToString  override ToffeeV2

 

func ToString() -> String

ToString (Boolean, Boolean, XmlFormattingOptions): String  override

Convert an element to string.

 

method ToString(aSaveFormatted: Boolean; aFormatInsideTags: Boolean; aFormatOptions: XmlFormattingOptions): String

 

String ToString(Boolean aSaveFormatted, Boolean aFormatInsideTags, XmlFormattingOptions aFormatOptions)

 

func ToString(_ aSaveFormatted: Boolean, _ aFormatInsideTags: Boolean, _ aFormatOptions: XmlFormattingOptions) -> String

 

String ToString(Boolean aSaveFormatted, Boolean aFormatInsideTags, XmlFormattingOptions aFormatOptions)

 

Function ToString(aSaveFormatted As Boolean, aFormatInsideTags As Boolean, aFormatOptions As XmlFormattingOptions) As String

Parameters:

  • aSaveFormatted:
  • aFormatInsideTags:
  • aFormatOptions:

ToString ToString(): String  override Toffee

 

func ToString(ToString ) -> String

Parameters:

  • :

UniqueCopy  override .NET, .NET Standard 2.0, Cooper, Island, ToffeeV2

Clone this element.

 

method UniqueCopy: not nullable XmlNode

 

XmlNode! UniqueCopy()

 

func UniqueCopy() -> XmlNode

 

XmlNode UniqueCopy()

 

Function UniqueCopy() As XmlNode

UniqueCopy UniqueCopy(): not nullable XmlNode  override Toffee

 

func UniqueCopy(UniqueCopy ) -> XmlNode

Parameters:

  • :

Value

Returns the string content.

 

property Value: nullable String read write;

 

String? Value { get; set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Value: String? { get{} set{} }
// Toffee
var Value: String { get{} set{} }

 

String Value { __get; __set; }

 

Property Value() As String?

 

Attribute

Find an attribute by name (or nil)

 

property Attribute[aName: not nullable String]: nullable XmlAttribute read;

 

XmlAttribute? Attribute[String! aName] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Attribute(_ aName: String) -> XmlAttribute? { get{} }
// Toffee
subscript Attribute(_ aName: String) -> XmlAttribute { get{} }

 

XmlAttribute Attribute[String aName] { __get; }

 

ReadOnly Property Attribute(aName As String) As XmlAttribute?

Attribute

Find an attribute by name (or nil)

 

property Attribute[aName: not nullable String; aNamespace: nullable XmlNamespace]: nullable XmlAttribute read;

 

XmlAttribute? Attribute[String! aName, XmlNamespace? aNamespace] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Attribute(_ aName: String, _ aNamespace: XmlNamespace?) -> XmlAttribute? { get{} }
// Toffee
subscript Attribute(_ aName: String, _ aNamespace: XmlNamespace) -> XmlAttribute { get{} }

 

XmlAttribute Attribute[String aName, XmlNamespace aNamespace] { __get; }

 

ReadOnly Property Attribute(aName As String, aNamespace As XmlNamespace?) As XmlAttribute?

Attributes

Returns all attributes.

 

property Attributes: not nullable IEnumerable<XmlAttribute> read;

 

IEnumerable<XmlAttribute>! Attributes { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Attributes: IEnumerable<XmlAttribute> { get{} }
// Toffee
var Attributes: INSFastEnumeration<XmlAttribute> { get{} }

 

Iterable<XmlAttribute> Attributes { __get; }

 

ReadOnly Property Attributes() As IEnumerable<XmlAttribute>

ChildIndex

Returns the index in the parent element.

 

property ChildIndex: Int32 read;

 

Int32 ChildIndex { get; }

 

var ChildIndex: Int32 { get{} }

 

Integer ChildIndex { __get; }

 

ReadOnly Property ChildIndex() As Int32

CloseTagRange

Returns the position in the original file of the closing tag.

 

property CloseTagRange: XmlRange read write;

 

XmlRange CloseTagRange { get; set; }

 

var CloseTagRange: XmlRange { get{} set{} }

 

XmlRange CloseTagRange { __get; __set; }

 

Property CloseTagRange() As XmlRange

DefaultNamespace

Default namespace when no prefix is specified.

 

property DefaultNamespace: XmlNamespace read;

 

XmlNamespace DefaultNamespace { get; }

 

var DefaultNamespace: XmlNamespace { get{} }

 

XmlNamespace DefaultNamespace { __get; }

 

ReadOnly Property DefaultNamespace() As XmlNamespace

DefinedNamespaces

Sequence of namespaces defined in this element.

 

property DefinedNamespaces: not nullable IEnumerable<XmlNamespace> read;

 

IEnumerable<XmlNamespace>! DefinedNamespaces { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var DefinedNamespaces: IEnumerable<XmlNamespace> { get{} }
// Toffee
var DefinedNamespaces: INSFastEnumeration<XmlNamespace> { get{} }

 

Iterable<XmlNamespace> DefinedNamespaces { __get; }

 

ReadOnly Property DefinedNamespaces() As IEnumerable<XmlNamespace>

Document    (declared in XmlNode)

Gets the document this node is in.

 

property Document: nullable XmlDocument read write;

 

XmlDocument? Document { get; set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Document: XmlDocument? { get{} set{} }
// Toffee
var Document: XmlDocument { get{} set{} }

 

XmlDocument Document { __get; __set; }

 

Property Document() As XmlDocument?

Elements

Returns all child elements.

 

property Elements: not nullable IEnumerable<XmlElement> read;

 

IEnumerable<XmlElement>! Elements { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Elements: IEnumerable<XmlElement> { get{} }
// Toffee
var Elements: INSFastEnumeration<XmlElement> { get{} }

 

Iterable<XmlElement> Elements { __get; }

 

ReadOnly Property Elements() As IEnumerable<XmlElement>

EndTagName

Returns the name of the end tag.

 

property EndTagName: String read write;

 

String EndTagName { get; set; }

 

var EndTagName: String { get{} set{} }

 

String EndTagName { __get; __set; }

 

Property EndTagName() As String

FullName

Returns the full name of this element including namespace.

 

property FullName: not nullable String read;

 

String! FullName { get; }

 

var FullName: String { get{} }

 

String FullName { __get; }

 

ReadOnly Property FullName() As String

IsEmpty

True if this element is empty and no child nodes.

 

property IsEmpty: Boolean read;

 

Boolean IsEmpty { get; }

 

var IsEmpty: Boolean { get{} }

 

Boolean IsEmpty { __get; }

 

ReadOnly Property IsEmpty() As Boolean

LocalName

Returns the name of this node without any prefix.

 

property LocalName: not nullable String read write;

 

String! LocalName { get; set; }

 

var LocalName: String { get{} set{} }

 

String LocalName { __get; __set; }

 

Property LocalName() As String

Namespace

Get the namespace for a prefix, only returns a value if it's defined on this node.

 

property Namespace[aPrefix: String]: nullable XmlNamespace read;

 

XmlNamespace? Namespace[String aPrefix] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Namespace(_ aPrefix: String) -> XmlNamespace? { get{} }
// Toffee
subscript Namespace(_ aPrefix: String) -> XmlNamespace { get{} }

 

XmlNamespace Namespace[String aPrefix] { __get; }

 

ReadOnly Property Namespace(aPrefix As String) As XmlNamespace?

Namespace

Get the namespace for an url, only returns a value if it's defined on this node.

 

property Namespace[aUri: Uri]: nullable XmlNamespace read;

 

XmlNamespace? Namespace[Uri aUri] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript Namespace(_ aUri: Uri) -> XmlNamespace? { get{} }
// Toffee
subscript Namespace(_ aUri: Uri) -> XmlNamespace { get{} }

 

XmlNamespace Namespace[Uri aUri] { __get; }

 

ReadOnly Property Namespace(aUri As Uri) As XmlNamespace?

Namespace

Returns the namespace for this element.

 

property Namespace: XmlNamespace read write;

 

XmlNamespace Namespace { get; set; }

 

var Namespace: XmlNamespace { get{} set{} }

 

XmlNamespace Namespace { __get; __set; }

 

Property Namespace() As XmlNamespace

NamespaceByUri

 

property NamespaceByUri[aUri: String]: nullable XmlNamespace read;

 

XmlNamespace? NamespaceByUri[String aUri] { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
subscript NamespaceByUri(_ aUri: String) -> XmlNamespace? { get{} }
// Toffee
subscript NamespaceByUri(_ aUri: String) -> XmlNamespace { get{} }

 

XmlNamespace NamespaceByUri[String aUri] { __get; }

 

ReadOnly Property NamespaceByUri(aUri As String) As XmlNamespace?

NodeRange    (declared in XmlNode)

Returns the original range of this node during parsing.

 

property NodeRange: XmlRange read write;

 

XmlRange NodeRange { get; set; }

 

var NodeRange: XmlRange { get{} set{} }

 

XmlRange NodeRange { __get; __set; }

 

Property NodeRange() As XmlRange

Nodes

Returns all nodes.

 

property Nodes: ImmutableList<XmlNode> read;

 

ImmutableList<XmlNode> Nodes { get; }

 

var Nodes: ImmutableList<XmlNode> { get{} }

 

ImmutableList<XmlNode> Nodes { __get; }

 

ReadOnly Property Nodes() As ImmutableList<XmlNode>

NodeType    (declared in XmlNode)

Contains the type of this node.

 

property NodeType: XmlNodeType read;

 

XmlNodeType NodeType { get; }

 

var NodeType: XmlNodeType { get{} }

 

XmlNodeType NodeType { __get; }

 

ReadOnly Property NodeType() As XmlNodeType

OpenTagEndColumn

Contains the column of the opening tag ending.

 

property OpenTagEndColumn: Int32 read write;

 

Int32 OpenTagEndColumn { get; set; }

 

var OpenTagEndColumn: Int32 { get{} set{} }

 

Integer OpenTagEndColumn { __get; __set; }

 

Property OpenTagEndColumn() As Int32

OpenTagEndLine

Contains the line of the opening tag ending.

 

property OpenTagEndLine: Int32 read write;

 

Int32 OpenTagEndLine { get; set; }

 

var OpenTagEndLine: Int32 { get{} set{} }

 

Integer OpenTagEndLine { __get; __set; }

 

Property OpenTagEndLine() As Int32

Parent    (declared in XmlNode)

Returns the parent element.

 

property Parent: nullable XmlElement read;

 

XmlElement? Parent { get; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Parent: XmlElement? { get{} }
// Toffee
var Parent: XmlElement { get{} }

 

XmlElement Parent { __get; }

 

ReadOnly Property Parent() As XmlElement?

PreserveSpace

Preserve whitespace when serializign this node.

 

property PreserveSpace: Boolean read write;

 

Boolean PreserveSpace { get; set; }

 

var PreserveSpace: Boolean { get{} set{} }

 

Boolean PreserveSpace { __get; __set; }

 

Property PreserveSpace() As Boolean

Value

Returns the string content.

 

property Value: nullable String read write;

 

String? Value { get; set; }

 

// .NET, .NET Standard 2.0, Island, ToffeeV2
var Value: String? { get{} set{} }
// Toffee
var Value: String { get{} set{} }

 

String Value { __get; __set; }

 

Property Value() As String?

 

constructor    (declared in XmlNode) .NET, .NET Standard 2.0, Cooper, Island, ToffeeV2

 

constructor

 

XmlElement()

 

init()

 

XmlElement()

 

Sub New()

constructor init()    (declared in XmlNode) Toffee

 

init(init )

Parameters:

  • :

constructor withName(not nullable String): InstanceType

Create a new node with a name .

 

constructor withName(aLocalName: not nullable String)

 

XmlElement withName(String! aLocalName)

 

init(withName aLocalName: String)

 

XmlElement withName(String aLocalName)

 

Sub New withName(aLocalName As String)

Parameters:

  • aLocalName:

constructor withName(not nullable String) Value(not nullable String): InstanceType

Create a new node with a name and value.

 

constructor withName(aLocalName: not nullable String) Value(aValue: not nullable String)

 

XmlElement withName(String! aLocalName) Value(String! aValue)

 

init(withName aLocalName: String, Value aValue: String)

 

XmlElement withName(String aLocalName) Value(String aValue)

 

Sub New withName(aLocalName As String) Value(aValue As String)

Parameters:

  • aLocalName:
  • aValue:

Add (not nullable XmlAttribute)

 

method Add(aAttribute: not nullable XmlAttribute)

 

void Add(XmlAttribute! aAttribute)

 

func Add(_ aAttribute: XmlAttribute)

 

void Add(XmlAttribute aAttribute)

 

Sub Add(aAttribute As XmlAttribute)

Parameters:

  • aAttribute:

Add (not nullable XmlCData)

 

method Add(aCData: not nullable XmlCData)

 

void Add(XmlCData! aCData)

 

func Add(_ aCData: XmlCData)

 

void Add(XmlCData aCData)

 

Sub Add(aCData As XmlCData)

Parameters:

  • aCData:

Add (not nullable XmlComment)

 

method Add(aComment: not nullable XmlComment)

 

void Add(XmlComment! aComment)

 

func Add(_ aComment: XmlComment)

 

void Add(XmlComment aComment)

 

Sub Add(aComment As XmlComment)

Parameters:

  • aComment:

Add (not nullable IEnumerable<Object>)

 

method Add(aData: not nullable IEnumerable<Object>)

 

void Add(IEnumerable<Object>! aData)

 

// Toffee
func Add(_ aData: INSFastEnumeration<Object>)
// ToffeeV2
func Add(_ aData: IEnumerable<NSObject>)

 

void Add(Iterable<Object> aData)

 

Sub Add(aData As IEnumerable<Object>)

Parameters:

  • aData:

Add (not nullable IEnumerable<XmlElement>)

 

method Add(aData: not nullable IEnumerable<XmlElement>)

 

void Add(IEnumerable<XmlElement>! aData)

 

// Toffee
func Add(_ aData: INSFastEnumeration<XmlElement>)
// ToffeeV2
func Add(_ aData: IEnumerable<XmlElement>)

 

void Add(Iterable<XmlElement> aData)

 

Sub Add(aData As IEnumerable<XmlElement>)

Parameters:

  • aData:

Add (not nullable DateTime)

 

method Add(aDateTime: not nullable DateTime)

 

void Add(DateTime! aDateTime)

 

func Add(_ aDateTime: DateTime)

 

void Add(DateTime aDateTime)

 

Sub Add(aDateTime As DateTime)

Parameters:

  • aDateTime:

Add (not nullable XmlElement)

 

method Add(aElement: not nullable XmlElement)

 

void Add(XmlElement! aElement)

 

func Add(_ aElement: XmlElement)

 

void Add(XmlElement aElement)

 

Sub Add(aElement As XmlElement)

Parameters:

  • aElement:

Add (not nullable String)

 

method Add(aString: not nullable String)

 

void Add(String! aString)

 

func Add(_ aString: String)

 

void Add(String aString)

 

Sub Add(aString As String)

Parameters:

  • aString:

AddAttribute

Add an attribute to this node.

 

method AddAttribute(aAttribute: not nullable XmlAttribute)

 

void AddAttribute(XmlAttribute! aAttribute)

 

func AddAttribute(_ aAttribute: XmlAttribute)

 

void AddAttribute(XmlAttribute aAttribute)

 

Sub AddAttribute(aAttribute As XmlAttribute)

Parameters:

  • aAttribute:

AddElement (not nullable XmlElement) atIndex(Int32)

Adda sub element and returns it.

 

method AddElement(aElement: not nullable XmlElement) atIndex(aIndex: Int32)

 

void AddElement(XmlElement! aElement) atIndex(Int32 aIndex)

 

func AddElement(_ aElement: XmlElement, atIndex aIndex: Int32)

 

void AddElement(XmlElement aElement) atIndex(Integer aIndex)

 

Sub AddElement(aElement As XmlElement) atIndex(aIndex As Int32)

Parameters:

  • aElement:
  • aIndex:

AddElement (not nullable String, nullable XmlNamespace, nullable String) atIndex(Int32): not nullable XmlElement

Adda sub element and returns it.

 

method AddElement(aName: not nullable String; aNamespace: nullable XmlNamespace; aValue: nullable String) atIndex(aIndex: Int32): not nullable XmlElement

 

XmlElement! AddElement(String! aName, XmlNamespace? aNamespace, String? aValue) atIndex(Int32 aIndex)

 

// Toffee
func AddElement(_ aName: String, _ aNamespace: XmlNamespace, _ aValue: String, atIndex aIndex: Int32) -> XmlElement
// ToffeeV2
func AddElement(_ aName: String, _ aNamespace: XmlNamespace?, _ aValue: String?, atIndex aIndex: Int32) -> XmlElement

 

XmlElement AddElement(String aName, XmlNamespace aNamespace, String aValue) atIndex(Integer aIndex)

 

Function AddElement(aName As String, aNamespace As XmlNamespace?, aValue As String?) atIndex(aIndex As Int32) As XmlElement

Parameters:

  • aName:
  • aNamespace:
  • aValue:
  • aIndex:

AddElement (not nullable XmlElement)

Adda sub element and returns it.

 

method AddElement(aElement: not nullable XmlElement)

 

void AddElement(XmlElement! aElement)

 

func AddElement(_ aElement: XmlElement)

 

void AddElement(XmlElement aElement)

 

Sub AddElement(aElement As XmlElement)

Parameters:

  • aElement:

AddElement (not nullable String, nullable XmlNamespace, nullable String): not nullable XmlElement

Adda sub element and returns it.

 

method AddElement(aName: not nullable String; aNamespace: nullable XmlNamespace; aValue: nullable String): not nullable XmlElement

 

XmlElement! AddElement(String! aName, XmlNamespace? aNamespace, String? aValue)

 

// Toffee
func AddElement(_ aName: String, _ aNamespace: XmlNamespace, _ aValue: String) -> XmlElement
// ToffeeV2
func AddElement(_ aName: String, _ aNamespace: XmlNamespace?, _ aValue: String?) -> XmlElement

 

XmlElement AddElement(String aName, XmlNamespace aNamespace, String aValue)

 

Function AddElement(aName As String, aNamespace As XmlNamespace?, aValue As String?) As XmlElement

Parameters:

  • aName:
  • aNamespace:
  • aValue:

AddElements

Add 0 or more elements.

 

method AddElements(aElements: not nullable IEnumerable<XmlElement>)

 

void AddElements(IEnumerable<XmlElement>! aElements)

 

// Toffee
func AddElements(_ aElements: INSFastEnumeration<XmlElement>)
// ToffeeV2
func AddElements(_ aElements: IEnumerable<XmlElement>)

 

void AddElements(Iterable<XmlElement> aElements)

 

Sub AddElements(aElements As IEnumerable<XmlElement>)

Parameters:

  • aElements:

AddNamespace (not nullable XmlNamespace)

Add an xml namespace definition to this node.

 

method AddNamespace(aNamespace: not nullable XmlNamespace)

 

void AddNamespace(XmlNamespace! aNamespace)

 

func AddNamespace(_ aNamespace: XmlNamespace)

 

void AddNamespace(XmlNamespace aNamespace)

 

Sub AddNamespace(aNamespace As XmlNamespace)

Parameters:

  • aNamespace:

AddNamespace (nullable String, not nullable String): XmlNamespace

 

method AddNamespace(aPrefix: nullable String; aUri: not nullable String): XmlNamespace

 

XmlNamespace AddNamespace(String? aPrefix, String! aUri)

 

// Toffee
func AddNamespace(_ aPrefix: String, _ aUri: String) -> XmlNamespace
// ToffeeV2
func AddNamespace(_ aPrefix: String?, _ aUri: String) -> XmlNamespace

 

XmlNamespace AddNamespace(String aPrefix, String aUri)

 

Function AddNamespace(aPrefix As String?, aUri As String) As XmlNamespace

Parameters:

  • aPrefix:
  • aUri:

AddNamespace (nullable String, not nullable Uri): XmlNamespace

Add an xml namespace definition to this node.

 

method AddNamespace(aPrefix: nullable String; aUri: not nullable Uri): XmlNamespace

 

XmlNamespace AddNamespace(String? aPrefix, Uri! aUri)

 

// Toffee
func AddNamespace(_ aPrefix: String, _ aUri: Uri) -> XmlNamespace
// ToffeeV2
func AddNamespace(_ aPrefix: String?, _ aUri: Uri) -> XmlNamespace

 

XmlNamespace AddNamespace(String aPrefix, Uri aUri)

 

Function AddNamespace(aPrefix As String?, aUri As Uri) As XmlNamespace

Parameters:

  • aPrefix:
  • aUri:

AddNode

Add a raw sub mode.

 

method AddNode(aNode: not nullable XmlNode)

 

void AddNode(XmlNode! aNode)

 

func AddNode(_ aNode: XmlNode)

 

void AddNode(XmlNode aNode)

 

Sub AddNode(aNode As XmlNode)

Parameters:

  • aNode:

description  override Toffee

 

func description(description ) -> NSString

Parameters:

  • :

ElementsWithName

Find a child element by name.

 

method ElementsWithName(aLocalName: not nullable String; aNamespace: nullable XmlNamespace): not nullable IEnumerable<XmlElement>

 

IEnumerable<XmlElement>! ElementsWithName(String! aLocalName, XmlNamespace? aNamespace)

 

// Toffee
func ElementsWithName(_ aLocalName: String, _ aNamespace: XmlNamespace) -> INSFastEnumeration<XmlElement>
// ToffeeV2
func ElementsWithName(_ aLocalName: String, _ aNamespace: XmlNamespace?) -> IEnumerable<XmlElement>

 

Iterable<XmlElement> ElementsWithName(String aLocalName, XmlNamespace aNamespace)

 

Function ElementsWithName(aLocalName As String, aNamespace As XmlNamespace?) As IEnumerable<XmlElement>

Parameters:

  • aLocalName:
  • aNamespace:

ElementsWithNamespace

Find a child element by name.

 

method ElementsWithNamespace(aNamespace: nullable XmlNamespace): not nullable IEnumerable<XmlElement>

 

IEnumerable<XmlElement>! ElementsWithNamespace(XmlNamespace? aNamespace)

 

// Toffee
func ElementsWithNamespace(_ aNamespace: XmlNamespace) -> INSFastEnumeration<XmlElement>
// ToffeeV2
func ElementsWithNamespace(_ aNamespace: XmlNamespace?) -> IEnumerable<XmlElement>

 

Iterable<XmlElement> ElementsWithNamespace(XmlNamespace aNamespace)

 

Function ElementsWithNamespace(aNamespace As XmlNamespace?) As IEnumerable<XmlElement>

Parameters:

  • aNamespace:

FirstElementWithName

Find a child element by name.

 

method FirstElementWithName(aLocalName: not nullable String; aNamespace: nullable XmlNamespace): nullable XmlElement

 

XmlElement? FirstElementWithName(String! aLocalName, XmlNamespace? aNamespace)

 

// Toffee
func FirstElementWithName(_ aLocalName: String, _ aNamespace: XmlNamespace) -> XmlElement
// ToffeeV2
func FirstElementWithName(_ aLocalName: String, _ aNamespace: XmlNamespace?) -> XmlElement?

 

XmlElement FirstElementWithName(String aLocalName, XmlNamespace aNamespace)

 

Function FirstElementWithName(aLocalName As String, aNamespace As XmlNamespace?) As XmlElement?

Parameters:

  • aLocalName:
  • aNamespace:

GetValue

Retuns the string content of this node, optionally including nested elements.

 

method GetValue(aWithNested: Boolean): nullable String

 

String? GetValue(Boolean aWithNested)

 

// Toffee
func GetValue(_ aWithNested: Boolean) -> String
// ToffeeV2
func GetValue(_ aWithNested: Boolean) -> String?

 

String GetValue(Boolean aWithNested)

 

Function GetValue(aWithNested As Boolean) As String?

Parameters:

  • aWithNested:

RemoveAllElements .NET, .NET Standard 2.0, Cooper, Island, ToffeeV2

Remove all child elements.

 

method RemoveAllElements

 

void RemoveAllElements()

 

func RemoveAllElements()

 

void RemoveAllElements()

 

Sub RemoveAllElements()

RemoveAllElements RemoveAllElements()  virtual Toffee

 

func RemoveAllElements(RemoveAllElements )

Parameters:

  • :

RemoveAttribute (not nullable XmlAttribute)

Remove an attribute by name.

 

method RemoveAttribute(aAttribute: not nullable XmlAttribute)

 

void RemoveAttribute(XmlAttribute! aAttribute)

 

func RemoveAttribute(_ aAttribute: XmlAttribute)

 

void RemoveAttribute(XmlAttribute aAttribute)

 

Sub RemoveAttribute(aAttribute As XmlAttribute)

Parameters:

  • aAttribute:

RemoveAttribute (not nullable String, nullable XmlNamespace): nullable XmlAttribute

Remove an attribute by name.

 

method RemoveAttribute(aName: not nullable String; aNamespace: nullable XmlNamespace): nullable XmlAttribute

 

XmlAttribute? RemoveAttribute(String! aName, XmlNamespace? aNamespace)

 

// Toffee
func RemoveAttribute(_ aName: String, _ aNamespace: XmlNamespace) -> XmlAttribute
// ToffeeV2
func RemoveAttribute(_ aName: String, _ aNamespace: XmlNamespace?) -> XmlAttribute?

 

XmlAttribute RemoveAttribute(String aName, XmlNamespace aNamespace)

 

Function RemoveAttribute(aName As String, aNamespace As XmlNamespace?) As XmlAttribute?

Parameters:

  • aName:
  • aNamespace:

RemoveElement

Remove an element.

 

method RemoveElement(aElement: not nullable XmlElement)

 

void RemoveElement(XmlElement! aElement)

 

func RemoveElement(_ aElement: XmlElement)

 

void RemoveElement(XmlElement aElement)

 

Sub RemoveElement(aElement As XmlElement)

Parameters:

  • aElement:

RemoveElementsWithName

Remove an element by name.

 

method RemoveElementsWithName(aName: not nullable String; aNamespace: nullable XmlNamespace)

 

void RemoveElementsWithName(String! aName, XmlNamespace? aNamespace)

 

// Toffee
func RemoveElementsWithName(_ aName: String, _ aNamespace: XmlNamespace)
// ToffeeV2
func RemoveElementsWithName(_ aName: String, _ aNamespace: XmlNamespace?)

 

void RemoveElementsWithName(String aName, XmlNamespace aNamespace)

 

Sub RemoveElementsWithName(aName As String, aNamespace As XmlNamespace?)

Parameters:

  • aName:
  • aNamespace:

RemoveNamespace (not nullable XmlNamespace)

Remove a namespace.

 

method RemoveNamespace(aNamespace: not nullable XmlNamespace)

 

void RemoveNamespace(XmlNamespace! aNamespace)

 

func RemoveNamespace(_ aNamespace: XmlNamespace)

 

void RemoveNamespace(XmlNamespace aNamespace)

 

Sub RemoveNamespace(aNamespace As XmlNamespace)

Parameters:

  • aNamespace:

RemoveNamespace (not nullable String)

Remove a namespace.

 

method RemoveNamespace(aPrefix: not nullable String)

 

void RemoveNamespace(String! aPrefix)

 

func RemoveNamespace(_ aPrefix: String)

 

void RemoveNamespace(String aPrefix)

 

Sub RemoveNamespace(aPrefix As String)

Parameters:

  • aPrefix:

ReplaceElement

Replace an element with another.

 

method ReplaceElement(aExistingElement: not nullable XmlElement) withElement(aNewElement: not nullable XmlElement)

 

void ReplaceElement(XmlElement! aExistingElement) withElement(XmlElement! aNewElement)

 

func ReplaceElement(_ aExistingElement: XmlElement, withElement aNewElement: XmlElement)

 

void ReplaceElement(XmlElement aExistingElement) withElement(XmlElement aNewElement)

 

Sub ReplaceElement(aExistingElement As XmlElement) withElement(aNewElement As XmlElement)

Parameters:

  • aExistingElement:
  • aNewElement:

SetAttribute

Adds or replaces an attribute

 

method SetAttribute(aName: not nullable String; aNamespace: nullable XmlNamespace; aValue: not nullable String)

 

void SetAttribute(String! aName, XmlNamespace? aNamespace, String! aValue)

 

// Toffee
func SetAttribute(_ aName: String, _ aNamespace: XmlNamespace, _ aValue: String)
// ToffeeV2
func SetAttribute(_ aName: String, _ aNamespace: XmlNamespace?, _ aValue: String)

 

void SetAttribute(String aName, XmlNamespace aNamespace, String aValue)

 

Sub SetAttribute(aName As String, aNamespace As XmlNamespace?, aValue As String)

Parameters:

  • aName:
  • aNamespace:
  • aValue:

toString Cooper

 

method toString: PlatformString

 

PlatformString toString()

 

func toString() -> PlatformString

 

PlatformString toString()

 

Function toString() As PlatformString

ToString  override ToffeeV2

 

func ToString() -> String

ToString (Boolean, Boolean, XmlFormattingOptions): String  override

Convert an element to string.

 

method ToString(aSaveFormatted: Boolean; aFormatInsideTags: Boolean; aFormatOptions: XmlFormattingOptions): String

 

String ToString(Boolean aSaveFormatted, Boolean aFormatInsideTags, XmlFormattingOptions aFormatOptions)

 

func ToString(_ aSaveFormatted: Boolean, _ aFormatInsideTags: Boolean, _ aFormatOptions: XmlFormattingOptions) -> String

 

String ToString(Boolean aSaveFormatted, Boolean aFormatInsideTags, XmlFormattingOptions aFormatOptions)

 

Function ToString(aSaveFormatted As Boolean, aFormatInsideTags As Boolean, aFormatOptions As XmlFormattingOptions) As String

Parameters:

  • aSaveFormatted:
  • aFormatInsideTags:
  • aFormatOptions:

ToString ToString(): String  override Toffee

 

func ToString(ToString ) -> String

Parameters:

  • :

UniqueCopy  override .NET, .NET Standard 2.0, Cooper, Island, ToffeeV2

Clone this element.

 

method UniqueCopy: not nullable XmlNode

 

XmlNode! UniqueCopy()

 

func UniqueCopy() -> XmlNode

 

XmlNode UniqueCopy()

 

Function UniqueCopy() As XmlNode

UniqueCopy UniqueCopy(): not nullable XmlNode  override Toffee

 

func UniqueCopy(UniqueCopy ) -> XmlNode

Parameters:

  • :