You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2021/09/14 08:42:07 UTC
[camel] branch main updated: CAMEL-16861: Polished xtokenize
language
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 1f3c58f CAMEL-16861: Polished xtokenize language
1f3c58f is described below
commit 1f3c58f3a5514e7004d655d798564b52d8bb5394
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Sep 14 10:39:39 2021 +0200
CAMEL-16861: Polished xtokenize language
---
.../src/main/docs/modules/eips/pages/split-eip.adoc | 6 ++++--
.../modules/languages/pages/xtokenize-language.adoc | 18 ++++++++++--------
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc
index e984f95..baafcb0 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/split-eip.adoc
@@ -193,7 +193,7 @@ from("direct:streaming")
.to("activemq:my.parts")
----
-== Streaming big XML payloads using Tokenizer language
+== Streaming big XML payloads using XML Tokenize language
There are two tokenizers that can be used to tokenize an XML payload. The first tokenizer uses the same principle as in the text tokenizer to scan the XML payload and extract a sequence of tokens.
@@ -206,7 +206,8 @@ If you have a big XML payload, from a file source, and want to split it in strea
The Camel StAX component can also be used to split big XML files in a streaming mode. See more details at StAX.
====
-For example you may have a XML payload structured as follows
+For example, you may have an XML payload structured as follows:
+
[source,xml]
----
<orders>
@@ -264,6 +265,7 @@ If you want to inherit namespaces from a root/parent tag, then you can do this a
----
And in Java DSL its as follows:
+
[source,java]
----
from("file:inbox")
diff --git a/core/camel-xml-jaxp/src/main/docs/modules/languages/pages/xtokenize-language.adoc b/core/camel-xml-jaxp/src/main/docs/modules/languages/pages/xtokenize-language.adoc
index 08aa32f..c20faa3 100644
--- a/core/camel-xml-jaxp/src/main/docs/modules/languages/pages/xtokenize-language.adoc
+++ b/core/camel-xml-jaxp/src/main/docs/modules/languages/pages/xtokenize-language.adoc
@@ -9,15 +9,13 @@ include::{cq-version}@camel-quarkus:ROOT:partial$reference/languages/xtokenize.a
*Since Camel {since}*
-The xml tokenizer language is a built-in language in camel-core, which
-is a truly XML-aware tokenizer that can be used with the Splitter as the
-conventional Tokenizer to efficiently and
-effectively tokenize XML documents. XMLTokenizer is capable of not only
-recognizing XML namespaces and hierarchical structures of the document
-but also more efficiently tokenizing XML documents than the conventional
-Tokenizer.
+The XML Tokenize language is a built-in language in `camel-xml-jaxp`, which
+is a truly XML-aware tokenizer that can be used with the xref:{eip-vc}:eips:split-eip.adoc[Split] EIP
+as the conventional xref:tokenize-language.adoc[Tokenize] to efficiently and
+effectively tokenize XML documents.
-For more details see Splitter.
+XML Tokenize is capable of not only recognizing XML namespaces and hierarchical structures of the document
+but also more efficiently tokenizing XML documents than the conventional xref:tokenize-language.adoc[Tokenize] language.
== XML Tokenizer Options
@@ -35,3 +33,7 @@ The XML Tokenize language supports 4 options, which are listed below.
| trim | true | Boolean | Whether to trim the value to remove leading and trailing whitespaces and line breaks
|===
// language options: END
+
+== Example
+
+See xref:{eip-vc}:eips:split-eip.adoc[Split] EIP which has examples using the XML Tokenize language.