[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] XML Validation via local XSD file

Hello,

I have a problem in my RCP application where we use the webtools xml editor and validation. We are moving from DTD to XSD for xml validation. We use XStream to render out our java objects to xml and need a way to validate them using XSD. So...we now use JAXB to render out the class xsd files. So now i have the xml and the xsd. Next, I want to be able to click on an xml file in the rcp project navigator and click validate. Then I want the xml to be validated with a local xsd file. When i get the xml file to link to the xsd file, i get "cvc-elt.1: Cannot find the declaration of element". After doing some research, it looks like i need to enable namespace-aware(ness) and have no idea how to turn that on. This is long and confusing..i apologize for that, but if anyone could help me out, that would be great!

Ideally I would like to use uri for a local namespace maybe using this extension: org.eclipse.wst.xml.core.catalogContributions but so far I haven't found much documentation on this. Does this allow my RCP app to register an XSD file to a local uri and then allow me to put that uri in my xml file? Clearly i need help.

Thanks!