非常に単純な xml ファイルのサンプルを次に示します。
<?xml version="1.0" encoding="UTF-8"?>
<bookstore><book category="children">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
<text>There are several harry potter books: -Chamber of Secrets -Goblet of Fire -</text>
</book>
</bookstore>
NiFiを使用して、私はしたいです
- テキストフィールドの名前を
books
- 次に、 Chamber of Secretsを 1 つの要素として、Goblet of Fire を別の要素としてサブフィールド
book-items
を作成します。
EvaluateXpath プロセッサを使用して値を抽出しています。テキスト フィールドを個別のオブジェクトとして抽出する方法がわかりません