Is it possible to manually specify "no namespace" schema to use for XML for wst xml editor [message #659864] |
Tue, 15 March 2011 19:53 |
Max Mising name Messages: 54 Registered: September 2010 |
Member |
|
|
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
[Updated on: Tue, 15 March 2011 20:26] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02109 seconds