|
Re: Is it possible to manually specify schema to use for XML for wst xml editor? [message #659853 is a reply to message #659838] |
Tue, 15 March 2011 19:16 |
Ed Merks Messages: 33264 Registered: July 2009 |
Senior Member |
|
|
Max,
I think WTP has some type of registry in which you can specify which
namespaces map to which schema location. If you can't find it in the
preferences, please ask about in on the WTP newsgroup/forum.
Max wrote:
> Basically I have an application that allows for editing of xml files.
> These xml files are generated using jaxb. We have a schema file that
> was generated from the jaxb context that we can use for content
> assistance but the only way I can get it to work is to manually add an
> attribute in the root element that specifies the location of the xsd
> to use. So our xml when generated looks like this:
>
>
> <rootTag>
> <someObject xsi:type="objectTypeA" attributA="something">
> <someOtherElemet attributeB="anything"/>
> </someObject>
> </rootTag>
>
>
> By default edting this xml file, I get no content assistance, but if I
> change it to this in the editor, I get content assistance.
>
>
> <rootTag xsi:noNamespaceSchemaLocation="/some/path/to/schema.xsd">
> <someObject xsi:type="objectTypeA" attributA="something">
> <someOtherElemet attributeB="anything"/>
> </someObject>
> </rootTag>
>
>
> Does anyone know of any settings where I can specify the default
> noNamespaceSchemaLocation to use?
>
> Thanks
>
> Max
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.12153 seconds