如何在 Apache Nifi 中将 XML 解析为 JSON
How to parse XML to JSON in Apache Nifi
我开始使用 Apache Nifi,我有几个具有不同结构的 XML 文件来提取字段,然后调用一些 API 丰富并在转换为 JSON 和 POST 后在不同的API。
是否有关于使用哪些组件的参考资料?
我建议使用 ConvertRecord 处理器将 XML 转换为 JSON ConvertRecord Processor. I am not the most familiar with using it for XML, but have used it for converting CSV to JSON and it works flawlessly. Just make sure to configure the XMLReader service accordingly. XML Reader
我不确定您要尝试执行的所有其他操作,但这将有助于 XML 转换为 JSON。
作为像我这样刚开始使用Nifi的人的参考。这个不错 post https://dev.to/tspannhw/processing-fixed-width-and-complex-files-58i7 包含几乎所有处理器都可以用于文件操作。
我开始使用 Apache Nifi,我有几个具有不同结构的 XML 文件来提取字段,然后调用一些 API 丰富并在转换为 JSON 和 POST 后在不同的API。
是否有关于使用哪些组件的参考资料?
我建议使用 ConvertRecord 处理器将 XML 转换为 JSON ConvertRecord Processor. I am not the most familiar with using it for XML, but have used it for converting CSV to JSON and it works flawlessly. Just make sure to configure the XMLReader service accordingly. XML Reader
我不确定您要尝试执行的所有其他操作,但这将有助于 XML 转换为 JSON。
作为像我这样刚开始使用Nifi的人的参考。这个不错 post https://dev.to/tspannhw/processing-fixed-width-and-complex-files-58i7 包含几乎所有处理器都可以用于文件操作。