Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » xml validation (external xsd)
xml validation (external xsd) [message #168632] Fri, 05 May 2006 08:43 Go to next message
Eclipse UserFriend
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] Tue, 09 May 2006 23:59 Go to previous messageGo to next message
Eclipse UserFriend
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 06:15 Go to previous messageGo to next message
Eclipse UserFriend
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 11:09 Go to previous message
Eclipse UserFriend
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: Fri May 09 09:08:20 EDT 2025

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

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

Back to the top