Repository: camel Updated Branches: refs/heads/master 97d0805fb -> 3bb6b4d4d
Added camel-xmlbeans docs to Gitbook Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/d8fae673 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/d8fae673 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/d8fae673 Branch: refs/heads/master Commit: d8fae673075132640567d49f803e02ca2278ad42 Parents: 97d0805 Author: Andrea Cosentino <anco...@gmail.com> Authored: Thu Jun 9 11:50:20 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Thu Jun 9 11:50:20 2016 +0200 ---------------------------------------------------------------------- .../camel-xmlbeans/src/main/docs/xmlbeans.adoc | 36 ++++++++++++++++++++ docs/user-manual/en/SUMMARY.md | 1 + 2 files changed, 37 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d8fae673/components/camel-xmlbeans/src/main/docs/xmlbeans.adoc ---------------------------------------------------------------------- diff --git a/components/camel-xmlbeans/src/main/docs/xmlbeans.adoc b/components/camel-xmlbeans/src/main/docs/xmlbeans.adoc new file mode 100644 index 0000000..1b960c6 --- /dev/null +++ b/components/camel-xmlbeans/src/main/docs/xmlbeans.adoc @@ -0,0 +1,36 @@ +[[XmlBeans-XmlBeans]] +XmlBeans +~~~~~~~~ + +XmlBeans is a link:data-format.html[Data Format] which uses the +http://xmlbeans.apache.org/[XmlBeans library] to unmarshal an XML +payload into Java objects or to marshal Java objects into an XML +payload. + +[source,java] +------------------------------- +from("activemq:My.Queue"). + unmarshal().xmlBeans(). + to("mqseries:Another.Queue"); +------------------------------- + +[[XmlBeans-Dependencies]] +Dependencies +^^^^^^^^^^^^ + +To use XmlBeans in your camel routes you need to add the dependency on +*camel-xmlbeans* which implements this data format. + +If you use maven you could just add the following to your pom.xml, +substituting the version number for the latest & greatest release (see +link:download.html[the download page for the latest versions]). + +[source,xml] +---------------------------------------------------------- +<dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-xmlbeans</artifactId> + <version>x.x.x</version> + <!-- use the same version as your Camel core version --> +</dependency> +---------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/d8fae673/docs/user-manual/en/SUMMARY.md ---------------------------------------------------------------------- diff --git a/docs/user-manual/en/SUMMARY.md b/docs/user-manual/en/SUMMARY.md index b4ed063..279c0aa 100644 --- a/docs/user-manual/en/SUMMARY.md +++ b/docs/user-manual/en/SUMMARY.md @@ -298,6 +298,7 @@ * [SOAP](soap.adoc) * [Tagsoup](tagsoup.adoc) * [Univocity Parsers](univocity-parsers.adoc) + * [XML Beans](xmlbeans.adoc) * [XML JSON](xmljson.adoc) * [YAML](yaml.adoc)