Author: buildbot
Date: Tue Apr 2 00:25:02 2013
New Revision: 856929
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/book-in-one-page.html
websites/production/camel/content/cache/main.pageCache
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
</div></div>
+<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> character.</p>
+
+<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.setContextPath(Person.class.getPackage().getName());
+jaxbDataFormat.setSchema(<span
class="code-quote">"classpath:person.xsd,classpath:address.xsd"</span>);
+</pre>
+</div></div>
+
+<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"><marshal></span>
+ <span class="code-tag"><jaxb id=<span class="code-quote">"jaxb"</span>
schema=<span
class="code-quote">"classpath:person.xsd,classpath:address.xsd"</span>/></span>
+<span class="code-tag"></marshal></span>
+</pre>
+</div></div>
+
+
<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.