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 Fri, 24 Jul 2009 06:23: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/~davsclaus">Claus
Ibsen</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.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.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.0 SNAPSHOT </td>
<td class='confluenceTd'> <a href="http://camel.apache.org/camel/schema/spring/camel-spring-2.0-SNAPSHOT.xsd"
rel="nofollow">http://camel.apache.org/camel/schema/spring/camel-spring-2.0-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>

<style type="text/css">
@import url(/confluence/download/resources/confluence.ext.code:code/shStyles.css);
</style>
<!--[if IE]>
<style type="text/css">
    .code textarea, .code input { padding: 0 !important; }
</style>
<![endif]-->
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shCore.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushCSharp.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushPhp.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushJScript.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushVb.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushSql.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushXml.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushShell.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushDelphi.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushPython.js"></script>
<script class="javascript" src="/confluence/download/resources/confluence.ext.code:code/shBrushJava.js"></script>
<div class="code">
<textarea name="newcodemacro" class="java:nocontrols:nogutter" rows="10" readonly="readonly">&lt;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.0-M2.xsd"&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</div>


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

<div class="code">
<textarea name="newcodemacro" class="java:nocontrols:nogutter" rows="10" readonly="readonly">&lt;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"&gt;</textarea>
<script class="javascript">
    if(!window.newcodemacro_initialised)
    {
        window.newcodemacro_initialised = true;
        window.oldonloadmethod = window.onload;
        window.onload = function(){
            dp.SyntaxHighlighter.HighlightAll('newcodemacro');
            if(window.oldonloadmethod)
            {
                window.oldonloadmethod();
            }
        }
    }

</script>
</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=20&originalVersion=19">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