[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
What does "equivalent" mean for empty elements?
- From: Roger L Costello <costello@mitre.org>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Sat, 5 Feb 2022 19:39:40 +0000
Hi Folks,
By definition these two forms are equivalent:
<A></A>
<A/>
Suppose a parser processes the first form and produces, among other things, a series of pairs (token kind, token value). Upon encountering this:
<A>
the parser produces:
(START_TAG_NAME, "A")
Upon encountering this:
</A>
the parser produces:
(END_TAG_NAME, "A")
Should this:
<A/>
result in the parser producing the same two pairs?
What does "equivalent" mean?
Assertion: "equivalent" means both forms result in the parser producing the same two pairs:
(START_TAG_NAME, "A")
(END_TAG_NAME, "A")
Do you agree?
/Roger
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]