Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML validation with noNamespaceSchemaLocation
XML validation with noNamespaceSchemaLocation [message #150563] Sat, 03 December 2005 06:21 Go to next message
Eclipse UserFriend
Originally posted by: kendrew89.yahoo.com.hk

Hi all,

I'm trying with the XML validation, and it works fine with a schema with
target namespace. However, for schema without namespace, it checks the
well-formness but not the validation. The information box says "The XML
file is well formed. Warning: No grammar constraints detected for the
document."

Shall I do some settings for this or is it a bug (feature!)?

Another minor problem: when I create the example XML project, it is always
placed under the workspace directory even if I specify a non-default
directory. Any idea?

Regards,
Kendrew
Re: XML validation with noNamespaceSchemaLocation [message #150953 is a reply to message #150563] Tue, 06 December 2005 17:54 Go to previous message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
Hi Kendrew,

>I'm trying with the XML validation, and it works fine with a schema with
>target namespace. However, for schema without namespace, it checks the
>well-formness but not the validation. The information box says "The XML
>file is well formed. Warning: No grammar constraints detected for the
>document."
>
>Shall I do some settings for this or is it a bug (feature!)?

For an XML file with no DTD or schema specified the only validation that
can be performed is well formedness validation. The XML file specifies no
grammar to perform validation against. If you want validation against a
specific grammar (schema or DTD) you need to specify that grammar in the
XML document.

>Another minor problem: when I create the example XML project, it is
always
>placed under the workspace directory even if I specify a non-default
>directory. Any idea?

If you have another use for the example please open a defect against the
Web Tools -> wst.xml component. Please provide specific instructions
detailing the steps to produce the problem and what your expected results
are.

Thanks,

Lawrence
Previous Topic:import cannot be resolved
Next Topic:customize response element name - tomcat
Goto Forum:
  


Current Time: Thu Apr 18 17:51:52 GMT 2024

Powered by FUDForum. Page generated in 0.01818 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top