XmlElement design corresponds to the element of the XML document. It allows access to the name, attributes, content, and children.
LightweightPart
Name | Type | Description |
---|---|---|
xmlName | string | Name of the XML element. By default, the partName is used as an xmlName |
Attributes | list | Attributes are a flattened 'plist' of name/value pairs (all strings). By default, there are no attributes in the element, and thus the value is {} |
Content | string | Content string. The design takes care of the handling of special characters such as '<¡¯, '>' and '&¡¯. Note: Elements with content cannot also have child elements. |
Name | Type | Description |
---|---|---|
AllowedComponents | list | The rule specifies that instance of XMLElement may contain other XMLElements |
ChildElements | list | Returns all children that are derived from XMLElement |
HasAttributes | boolean | Returns True, if the XMLElement contains attributes |