Xml Reference has been edited by Hadrian Zbarcea (Feb 17, 2009).

(View changes)

Content:

Camel Xml Reference

This page contains a link to the XML reference guides and XML schema documents for Xml Configuration with Camel releases. You can refer to http://activemq.apache.org/camel/schema/spring/ to see the individual XSDs available.

Released Schemas

Reference XML Schema
1.6.0 Reference http://camel.apache.org/schema/spring/camel-spring-1.6.0.xsd
1.5.0 Reference http://activemq.apache.org/camel/schema/spring/camel-spring-1.5.0.xsd
1.4.0 Reference http://activemq.apache.org/camel/schema/spring/camel-spring-1.4.0.xsd
1.3.0 Reference http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd
1.2.0 Reference http://activemq.apache.org/camel/schema/spring/camel-spring-1.2.0.xsd
1.1.0 Reference http://activemq.apache.org/camel/schema/spring/camel-spring-1.1.0.xsd
1.0.0 Reference http://activemq.apache.org/camel/schema/spring/camel-spring-1.0.0.xsd

SNAPSHOT Schemas

References Schema
2.0 SNAPSHOT Reference http://camel.apache.org/camel/schema/spring/camel-spring-2.0-SNAPSHOT.xsd

Using the XSDs in configuration files

When you are using Spring's 2.5 XML handling to parse the XML then you need to refer to the XSD locations in your XML document.

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

<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-1.6.0.xsd">

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

<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">

Your IDE won't be able to fetch this XSD, you'll have to manually associate a specific release; however it does mean that you won't have to upgrade your XML config file with each Camel release; as it will resolve this XSD using the bundled XSD inside the camel-spring.jar.

Reply via email to