Re: [xml-dev] Is there a short string that is commonly used to represent "/>"?

From
Dan Brickley <>
To
Roger L Costello <>
Date
2022-02-19T15:42:18Z
ID
<>
Thread
Re: [xml-dev] Is there a short string that is commonly used to represent "/>"?


On Sat, 19 Feb 2022 at 13:03, Roger L Costello <[email protected]> wrote:
Hi Folks,

For many relational operators there is a short string that represents the operator, e.g.,

        <=      le
        !=      ne

In XML there is a short string that represents reserved symbols, e.g.,

        &       amp
        <       lt

Consider this empty XML element:

        <Test/>

The "/>" symbol indicates the element is empty.

Is there a short string that is commonly used to represent the symbol that indicates the element is empty?

        />      ???

/Roger


”Self-closing tag”?

 calls them “empty-element tags”, and gives a short name in the grammar:

Tags for Empty Elements
[44]   EmptyElemTag   ::=   '<' Name (S Attribute)* S? '/>'[WFC: Unique Att Spec]