Lists Home |
Date Index |
- From: "Michael J. Fitzgerald" <email@example.com>
- To: yimin zhu <firstname.lastname@example.org>
- Date: Fri, 22 Sep 2000 12:57:21 -0700
Actually, the namespace declaration does not point to a validating schema,
though it appears to. In section 2 of the "Namespaces in XML"
recommendation, in regards to the namespace name ("x-schema:bookschema.xml"
in your example) it states "It is not a goal that it be directly usable for
retrieval of a schema (if any exists)." See
http://www.w3.org/tr/rec-xml-names. That stated, I won't be surprised if
this behavior changes.
Some sources show runtime validation happening in a DOCTYPE declaration, but
it remains to be seen, as XML Schema is still in working draft and
shrink-wrapped validators are out a ways. E.g., <!DOCTYPE bookschema SYSTEM
"bookschema.xsd">. Check out http://www.w3.org/XML/Schema for some links to
current work on schema validators.
From: yimin zhu [mailto:email@example.com]
Sent: Friday, September 22, 2000 11:29 AM
Subject: XML validation
It seems that in order to validate an XML file against a schema the location
of a schema file has to be included in the XML file, i.e. <book
xmlns="x-schema:bookschema.xml">...</book>. Are there any other ways to do
XML validation at runtime?
Timberline Software Corp.