|
Re: XML validation & content assist w/o doctype or namespace [message #221317 is a reply to message #221308] |
Fri, 12 September 2008 17:46 |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
You can create a custom Resolver class that if that particular XML file
is found, then have it load the appropriate XSD. This would always
load the XSD for that file, with out having to go into the catalog.
Dave
Chris W wrote:
> We'd like to enable the default XML Editor's validation and content
> assistance feature, but on an XML file that does not have doctype or
> namespace.
>
> We have XML documents w/ namespaces for which we associate XSD with
> their namespaces via XML Catalog entries. This works great. But, we
> don't have control over this particular XML document, so we're trying to
> figure out the best way to provide validation and content assistance w/o
> a namespace.
>
> Looking at how XML content assistance is performed, I see that
> XMLAssociationProvider.getCMElementDeclaration(...) gets the XSD
> registry for a given namespace and subsequent processing creates
> wrappers for each assistance candidate. I'm thinking that I could add
> to this [empty] result by creating an arbitrary XML Catalog registry
> containing the supporting XSD and somehow explicitly retrieve the
> associated XSD and add selection candidates to the ContentAssistRequest.
>
> What's the best way to implement a solution? Suggestions? Appreciate
> your help.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03303 seconds