W3C home > Mailing lists > Public > xml-dist-app@w3.org > October 2004

XML Definition Question

From: Daniel Zingaro <daniel_zingaro@cogeco.ca>
Date: Sun, 17 Oct 2004 23:52:16 -0400
Message-ID: <01b001c4b4c5$dc587c40$bb00a8c0@Daniel>
To: <xml-dist-app@w3.org>
Hi all,

I have a question about the XML definition, found at

I am working on an XML parser for a university course, and am confused about the sentences derived from the document nonterminal. The specifications says that

      document ::= prolog element Misc* - Char* RestrictedChar Char*

I am not understanding something, because it looks to me in this definition that only one element is allowed in the specification (otherwise element would be written element+). I know this is not true, since underneath this, it goes on to explain that you can have any number of elements in the XML document. Would someone please explain how this can be true and how this document grammar is correct?

Received on Monday, 18 October 2004 03:52:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:26 UTC