[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: Invalid XML
"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 http://www.snee.com/bob
<bob@ snee.com> see http://www.snee.com/bob/xsltquickly
for info on book "XSLT Quickly" from Manning
Publications.
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"?> <library> <book> <title>Book
Name</title> <chapters> <name>first
chapter</name> <name>second</name> ... <name>last</name> <subsection> <name>I
expect this to be illegal, since name is defined in chapters, and also somewhere else in its content, namely
subsection.</name> </subsection> </chapters>
</book> </library>
Thanks very much,
Dan
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|