Gerrit Schutte wrote:
> 
> I am evaluating XMLmind editor presently.
> One option I miss desperately: I would want to validate my document
> against a XML schema that is not explicitly mentioned in the document 
> itself
> via the 'xsi:schemaLocation' attribute but resides somewhere in the file 
> system.
> Is this possible?
> 

Sure. It is even recommended not to pollute your XML documents with 
'xsi:schemaLocation' and al.



--> You need to write a *minimal* *configuration* *file* to do that. 
Such configuration file look like this:

example2.xxe:
---
<?xml version='1.0' encoding='ISO-8859-1'?>
<configuration name="Example2"
   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>

   <detect>
     <rootElementNamespace 
 >http://www.xmlmind.com/xmleditor/schema/example2</rootElementNamespace>
   </detect>

   <schema>
     <location>http://www.xmlmind.com/xmleditor/schema/example2
               example2.xsd</location>
   </schema>
</configuration>
---

* Rename example2.xxe to something more meaningful.
* Replace name="Example2" by the actual name of your configuration.
* Replace the target namespace 
"http://www.xmlmind.com/xmleditor/schema/example2"; of the schema by the 
actual one.
* Replace "example2.xsd" by the absolute or relative (to example2.xxe) 
URL of you schema.



--> Now copy your version of example2.xxe anywhere in the addon/ 
subdirectory of XXE user preferences directory:

[[[XXE user preferences directory is:

     * $HOME/.xxe/ on Linux, Mac, and more generally, on Unix.
     * %APPDATA%\XMLmind\XMLeditor\ on Windows 2000, XP, Vista.

       Example: C:\Documents and Settings\john\Application 
Data\XMLmind\XMLeditor\ on Windows 2000 and XP. 
C:\Users\john\AppData\Roaming\XMLmind\XMLeditor\ on Windows Vista.]]]


Then restart XMLmind XML Editor.



--> More information in 
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/index.html


Reply via email to