Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can refer to a specific version of the XSD in your XML as follows

Code Block
xml
xml
<beans 
  xmlns="http://www.springframework.org/schema/beans" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="

    http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

    http://activemq.apache.org/camel/schema/spring 
      http://activemq.apache.org/camel/schema/spring/camel-spring-2.2.0.xsd">

or if you prefer you can use a generic XSD without the version number

Code Block
xml
xml
<beans 
  xmlns="http://www.springframework.org/schema/beans" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="

    http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans.xsd
 
    http://activemq.apache.org/camel/schema/spring
      http://activemq.apache.org/camel/schema/spring/camel-spring.xsd">

...