[Home] [By Thread] [By Date] [Recent Entries]

  • From: Roger L Costello <costello@m...>
  • To: "xml-dev@l..." <xml-dev@l...>
  • 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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member