Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.Este conteúdo não está disponível no idioma selecionado.
2.32. Configuring YAML Streams
Procedure 2.1. Task
- Configure your reader to process YAML files as shown:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure the YAML stream to contain multiple documents. The reader handles this by adding a document element as a child of the root element. An XML-serialized YAML stream with one empty YAML document looks like this:
<yaml> <document> </document> </yaml>
<yaml> <document> </document> </yaml>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure Smooks programmatically to read a YAML configuration by exploiting the
YamlReaderConfigurator
class:Copy to Clipboard Copied! Toggle word wrap Toggle overflow