camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Camel > Xml Reference
Date Wed, 17 Feb 2010 14:30:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=CAMEL&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="http://cwiki.apache.org/confluence/display/CAMEL/Xml+Reference">Xml
Reference</a></h2>
     <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~hzbarcea">Hadrian
Zbarcea</a>
    </h4>
     
          <br/>
     <div class="notificationGreySide">
         <h2><a name="XmlReference-CamelXmlReference"></a>Camel Xml Reference</h2>

<p>This page contains a link to the XML reference guides and XML schema documents for
<a href="/confluence/display/CAMEL/Xml+Configuration" title="Xml Configuration">Xml
Configuration</a> with Camel releases. You can refer to <a href="http://camel.apache.org/schema/spring/"
rel="nofollow">http://camel.apache.org/schema/spring/</a> to see the individual XSDs
available.</p>

<h3><a name="XmlReference-ReleasedSchemas"></a>Released Schemas</h3>

<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Version </th>
<th class='confluenceTh'> XML Schema </th>
</tr>
<tr>
<td class='confluenceTd'> 2.2.0 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-2.2.0.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-2.2.0.xsd</a> </td>
</tr>
<tr>
<td class='confluenceTd'> 2.1.0 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-2.1.0.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-2.1.0.xsd</a> </td>
</tr>
<tr>
<td class='confluenceTd'> 2.0.0 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-2.0.0.xsd</a> </td>
</tr>
<tr>
<td class='confluenceTd'> 2.0-M3 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-2.0-M3.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-2.0-M3.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 2.0-M2 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-2.0-M2.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-2.0-M2.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 2.0-M1 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-2.0-M1.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-2.0-M1.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 1.6.2 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-1.6.2.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-1.6.2.xsd</a> </td>
</tr>
<tr>
<td class='confluenceTd'> 1.6.1 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-1.6.1.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-1.6.1.xsd</a> </td>
</tr>
<tr>
<td class='confluenceTd'> 1.6.0 </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/schema/spring/camel-spring-1.6.0.xsd"
rel="nofollow">http://camel.apache.org/schema/spring/camel-spring-1.6.0.xsd</a> </td>
</tr>
<tr>
<td class='confluenceTd'> 1.5.0 </td>
<td class='confluenceTd'> <a href="http://activemq.apache.org/camel/schema/spring/camel-spring-1.5.0.xsd"
rel="nofollow">http://activemq.apache.org/camel/schema/spring/camel-spring-1.5.0.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 1.4.0 </td>
<td class='confluenceTd'> <a href="http://activemq.apache.org/camel/schema/spring/camel-spring-1.4.0.xsd"
rel="nofollow">http://activemq.apache.org/camel/schema/spring/camel-spring-1.4.0.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 1.3.0 </td>
<td class='confluenceTd'> <a href="http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd"
rel="nofollow">http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 1.2.0 </td>
<td class='confluenceTd'> <a href="http://activemq.apache.org/camel/schema/spring/camel-spring-1.2.0.xsd"
rel="nofollow">http://activemq.apache.org/camel/schema/spring/camel-spring-1.2.0.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 1.1.0 </td>
<td class='confluenceTd'> <a href="http://activemq.apache.org/camel/schema/spring/camel-spring-1.1.0.xsd"
rel="nofollow">http://activemq.apache.org/camel/schema/spring/camel-spring-1.1.0.xsd</a>
</td>
</tr>
<tr>
<td class='confluenceTd'> 1.0.0 </td>
<td class='confluenceTd'> <a href="http://activemq.apache.org/camel/schema/spring/camel-spring-1.0.0.xsd"
rel="nofollow">http://activemq.apache.org/camel/schema/spring/camel-spring-1.0.0.xsd</a>
</td>
</tr>
</tbody></table>


<h3><a name="XmlReference-SNAPSHOTSchemas"></a>SNAPSHOT Schemas</h3>
<table class='confluenceTable'><tbody>
<tr>
<th class='confluenceTh'> Version </th>
<th class='confluenceTh'> Schema </th>
</tr>
<tr>
<td class='confluenceTd'> 2.1 SNAPSHOT </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/camel/schema/spring/camel-spring-2.1-SNAPSHOT.xsd"
rel="nofollow">http://camel.apache.org/camel/schema/spring/camel-spring-2.1-SNAPSHOT.xsd</a>
</td>
</tr>
</tbody></table>


<h2><a name="XmlReference-UsingtheXSDsinconfigurationfiles"></a>Using the
XSDs in configuration files</h2>

<p>When you are using <a href="/confluence/display/CAMEL/Spring" title="Spring">Spring</a>'s
2.5 XML handling to parse the XML then you need to refer to the XSD locations in your XML
document.</p>

<p>You can refer to a specific version of the XSD in your XML as follows</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
&lt;beans 
  xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>

</span>  xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
</span>  xsi:schemaLocation="

    http:<span class="code-comment">//www.springframework.org/schema/beans
</span>      http:<span class="code-comment">//www.springframework.org/schema/beans/spring-beans-2.5.xsd
</span>
    http:<span class="code-comment">//activemq.apache.org/camel/schema/spring 
</span>      http:<span class="code-comment">//activemq.apache.org/camel/schema/spring/camel-spring-2.2.0.xsd"&gt;</span>
</pre>
</div></div>

<p>or if you prefer you can use a generic XSD without the version number</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
&lt;beans 
  xmlns=<span class="code-quote">"http:<span class="code-comment">//www.springframework.org/schema/beans"</span>

</span>  xmlns:xsi=<span class="code-quote">"http:<span class="code-comment">//www.w3.org/2001/XMLSchema-instance"</span>
</span>  xsi:schemaLocation="

    http:<span class="code-comment">//www.springframework.org/schema/beans
</span>      http:<span class="code-comment">//www.springframework.org/schema/beans/spring-beans.xsd
</span> 
    http:<span class="code-comment">//activemq.apache.org/camel/schema/spring
</span>      http:<span class="code-comment">//activemq.apache.org/camel/schema/spring/camel-spring.xsd"&gt;</span>
</pre>
</div></div>

<p>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.</p>
     </div>
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>

       <a href="http://cwiki.apache.org/confluence/display/CAMEL/Xml+Reference">View
Online</a>
       |
       <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=59987&revisedVersion=23&originalVersion=22">View
Change</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/CAMEL/Xml+Reference?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message