Tag

A tag is the generic name for either an XML start tag or an end tag. An element is delimited with start and end-tags. A start tag consists of a field name surrounded by angle brackets. An end tag is the same as a start tag, with the addition of a forward slash immediately preceding the field name. For example, the start tag for the field named "Tag" looks like this:

<Tag>

while the end tag for the same field looks like this:

</Tag>

W3C XML defines empty-element tags, which are used when an element has no content. They have the form <Tag/>. ACORD XML does not allow empty-element tags. In addition, ACORD XML does not allow the form <Tag></Tag> as this is synonymous with the previous example of an empty-element tag.

The key rule of ACORD XML syntax is that each tag is either an element or an aggregate. Data is contained between the element start tag and its respective end tag. An aggregate tag begins a sequence of enclosed elements or child aggregates, which must end with a matching tag, for example, <Aggregate> ... </Aggregate>.

ACORD XML does not require any white space between adjacent tags.

Last edited Mar 26, 2016 at 8:44 PM by natewaite, version 2