company logo

XMLElement - XML element

Inherits:  XMLValue

An XML element describes the attribute area, the type and the value for an XML element. Strings are referenced in the original text and should not be replaced.

Usually, XMLElements consist of either a number of sub-ordinated elements (as address in the example below or (text) data (as city and street in the example).

Considering, however, html, which has very much in common with xml, additional data (text) may appear infront of the first, between or after the last sub element. This is supported by the XMLElement by introducing additional __text_data elements for each untagged text string. When creating an XMLString for outpput, __text_data elements are created as untagged data, i.e. the __text_data element exists internally, but not in the output.

<address>

<street>Old Street</street>

<city>New City</city>

</address>

<!-- example with untagged data -->

<address>

Permanent residence:

<street>Old Street</street>

<city>New City</city>

</address>

Attributes
    Functions