Locked History Actions

XmlAttribute

XmlAttribute

Defines an attribute for an XML element. Is only valid when parent is XmlElement.

<XmlElement name="example" elementName="Foo">
  <XmlAttribute attributeName="Bar">
    <String value="My Attribute!" />
  </XmlAttribute>
</XmlElement>

<Foo Bar="My Attribute!"/>

Attributes:

  • name -- Name of the data model [optional]

  • minOccurs -- The minimum number of times this block must occur [optional]

  • maxOccurs -- The maximum number of times this block can occur [optional]

  • isStatic -- This element should be treated as a token when parsing, defaults to False [optional]

  • token -- (Peach 2.3)This element should be treated as a token when parsing, defaults to False [optional]

  • mutable -- (Peach 2.3) Is data element changeable (should it be mutated), defaults to true [optional]

  • attributeName -- Name of XML element [required]

  • ns -- XML namespace [optional]

Valid Child-Elements: