Syntax Questions

Chris Maden crism at
Thu Jul 29 22:55:08 BST 1999

[Samuel R. Blackburn]
> It says there can be only one top level element in a document.  The
> spec says in section 2.1 that a document contains one or more
> elements.

   [1]  document ::= prolog element Misc*                 

> MSXML doesn't like multiple colons in an element name. It will not
> parse the following:
> <I:Love:Cookies>With Milk</I:Love:Cookies>
> But rules 4 and 5 do not impose this restriction.

The namespaces spec (<URL:>) does.
MSXML implements XML+namespaces; there's no requirement that all XML
parsers do, but it's probably a good idea to at least follow the
syntactic restrictions, since colons in XML 1.0 names are reserved for
experimental use pending publication of the namespaces Recommendation,
which has since happened.

<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL> <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list