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]
What does "equivalent" mean for empty elements?

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]


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