[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Document Root

  • From: Rick JELLIFFE <ricko@g...>
  • To: John Prout <jprout@o...>
  • Date: Thu, 02 Nov 2000 17:01:13 +0800

document root
> John Prout wrote:
> 
> Greetings
> 
> I was just using the latest version of XSV on the W3C site to validate
> an XML Schema. A warning it reported was :
> 
> "No declaration for document root was found, validation was lax"

> Does anyone know what causes this warning ? Is it saying that I need
> to declare the root element for a document in the Schema ? I can't
> find any reference to this in the XML Schemas documents.

No, you do not need to declare what the root element is.  There is no
way to do this in XML Schemas.

(I am not an expert in XSV messages but I expect that) what the message
means is that when XSV tried to validate the element that it found at
the root, it could not locate a declaration for that element in the
schema it is using.

The most likely explanations are

 * you have made a typo in the spelling of the element, for example
uppercase or lowercase, either in the instance or in the schema
 * your namespace URI has not been updated to the latest schema version
(funny error message if that is the case)  
 * you did not put a namespace on the schema element at all, and XSV
thinks there is no schema element and barfs.

Do any of these fit?  

"Validation was lax" means that the schema processor has tried to do the
best job it can, working through the document and validating any
elements or attributes which are in namespaces that it can find schemas
for.

Rick Jelliffe

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.