XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Is there a short string that is commonly used torepresent "/>"?



On Sat, 19 Feb 2022 at 13:03, Roger L Costello <costello@mitre.org> 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”?

https://www.w3.org/TR/xml/#sec-starttags
 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]


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS