OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] Invalid XML

[ Lists Home | Date Index | Thread Index ]

"Validity" means that the document has a DOCTYPE declaration that points to a DTD and the document conforms to the declarations in that DTD. Your sample shows no reference to a DTD, so validity is not an issue. It is well-formed, which is why parsers have no problem with it.
Bob DuCharme            www.snee.com/bob         <bob@ 
snee.com>  see http://www.snee.com/bob/xsltquickly for
info on book "XSLT Quickly" from Manning Publications.

From: Daniel Zingaro [mailto:daniel_zingaro@cogeco.ca]
Sent: Tuesday, October 19, 2004 3:50 PM
To: xml-dev@lists.xml.org
Subject: [xml-dev] Invalid XML

Hi all,
According to the XML specification, I believe the following nesting structure to be invalid in XML. However, rxp on my Windows machine issues no warnings to me when parsed. Is this in fact invalid?
 <?xml version="1.1"?>
<title>Book Name</title>
<name>first chapter</name>
<name>I expect this to be illegal, since name is defined in chapters,
and also somewhere else in its content, namely subsection.</name>
Thanks very much,


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS