Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » xml validation (external xsd)
xml validation (external xsd) [message #168632] Fri, 05 May 2006 12:43 Go to next message
Ryszard Perkowski is currently offline Ryszard PerkowskiFriend
Messages: 2
Registered: July 2009
Junior Member
Hi, I've been looking all over wtp to find a method of validating xml file
with a xml scheme and provide auto-completion mechanism in eclipse based
on that xsd file.

I read an article "Eclipse Validators" by Lawrence Mandel, and it seems
easy to implement a methanism of reporting errors but that doesnt provide
the auto-completion feature. Is there any way I could specify external xsd
file that wtp could use to validate my xml file an provide some
auto-completion based on that xsd file?
Re: xml validation (external xsd) [message #168891 is a reply to message #168632] Wed, 10 May 2006 03:59 Go to previous messageGo to next message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Ryszard Perkowski wrote:

> Hi, I've been looking all over wtp to find a method of validating xml file
> with a xml scheme and provide auto-completion mechanism in eclipse based
> on that xsd file.

> I read an article "Eclipse Validators" by Lawrence Mandel, and it seems
> easy to implement a methanism of reporting errors but that doesnt provide
> the auto-completion feature. Is there any way I could specify external xsd
> file that wtp could use to validate my xml file an provide some
> auto-completion based on that xsd file?

Yes, use the XML editor. Autocomplete should just work. Try
File->New->Examples->Editing and Validating XML Files.
Re: xml validation (external xsd) [message #169480 is a reply to message #168891] Wed, 17 May 2006 10:15 Go to previous messageGo to next message
Ryszard Perkowski is currently offline Ryszard PerkowskiFriend
Messages: 2
Registered: July 2009
Junior Member
Alright... I'll try to change the question.
What is the easiest way of validating file without xmlns declaration
against local xsd file? do I have to somehow modify my UriResolver, adding
to it path to my xsd file? If so how can I refer to a file without xmlns?
Re: xml validation (external xsd) [message #169859 is a reply to message #169480] Tue, 23 May 2006 15:09 Go to previous message
Lawrence Mandel is currently offline Lawrence MandelFriend
Messages: 486
Registered: July 2009
Senior Member
In this case if you don't want to specify a namespace or an
xsi:noSchemaNamespace I believe you'll need to provide a custom validator.
The XML validator and editor require the namespace declaration or a
pointer to a specific schema to know which schema to retrieve for a given
XML document.

Lawrence
Previous Topic:Re: How can I add plugins
Next Topic:NullPointerException when opening an XML file
Goto Forum:
  


Current Time: Sun Dec 21 20:55:39 GMT 2014

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

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