xmlxsdxsd-validationxsi

Best way to find and specify XML Schema (XSD) locations


I've often dealt with sort of problem - schema locations. Sometimes you have to write configuration XML file or any other XML file that includes a lot of links like this:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:aop="http://www.springframework.org/schema/aop"
       xsi:schemaLocation="http://www.springframework.org/schema/aop
       http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd"> 

And every time I have to deal with some instrument I wonder: where should I look for it? How could I know what links and options I should use in the header of my XML?

Please, tell me, how do you find out what is needed to put in there and where do you look for it commonly?

How do you know how exactly modify the header if there is need to describe a use of another technology in the same XML?


Solution

  • How to find an XSD

    How to specify an XSD location