0

非常に単純な 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を使用して、私はしたいです

  1. テキストフィールドの名前をbooks
  2. 次に、 Chamber of Secretsを 1 つの要素として、Goblet of Fire を別の要素としてサブフィールドbook-items を作成します。

EvaluateXpath プロセッサを使用して値を抽出しています。テキスト フィールドを個別のオブジェクトとして抽出する方法がわかりません

4

1 に答える 1