camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r856929 - in /websites/production/camel/content: book-in-one-page.html cache/main.pageCache
Date Tue, 02 Apr 2013 00:25:03 GMT
Author: buildbot
Date: Tue Apr  2 00:25:02 2013
New Revision: 856929

Production update by buildbot for camel


Modified: websites/production/camel/content/book-in-one-page.html
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Tue Apr  2 00:25:02 2013
@@ -11596,6 +11596,30 @@ You can setup which encoding to use when
+<h3><a shape="rect" name="BookInOnePage-Schemavalidation"></a>Schema validation</h3>
+<p><b>Available as of Camel 2.11</b></p>
+<p>The JAXB <a shape="rect" href="data-format.html" title="Data Format">Data
Format</a> supports validation by marshalling and unmarshalling from/to XML. Your can
use the prefix <b>classpath:</b>, <b><a shape="rect" class="external-link"
href="file:*" rel="nofollow">file:*</a> or *http:</b> to specify how the resource
should by resolved. You can separate multiple schema files by using the <b>','</b>
+<p>Using the Java DSL, you can configure it in the following way:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+JaxbDataFormat jaxbDataFormat = <span class="code-keyword">new</span> JaxbDataFormat();
+jaxbDataFormat.setSchema(<span class="code-quote">"classpath:person.xsd,classpath:address.xsd"</span>);
+<p>You can do the same using the XML DSL:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;marshal&gt;</span>
+    <span class="code-tag">&lt;jaxb id=<span class="code-quote">"jaxb"</span>
schema=<span class="code-quote">"classpath:person.xsd,classpath:address.xsd"</span>/&gt;</span>
+<span class="code-tag">&lt;/marshal&gt;</span>
 <h3><a shape="rect" name="BookInOnePage-Dependencies"></a>Dependencies</h3>
 <p>To use JAXB in your camel routes you need to add the a dependency on <b>camel-jaxb</b>
which implements this data format. </p>

Modified: websites/production/camel/content/cache/main.pageCache
Binary files - no diff available.

View raw message