如何使用Apache Camel使用Spring Boot更改以下XML文件的作者标签
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
</catalog>
我如何使用Apache Camel和Spring Boot更改上面XML文件的作者标签
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
</catalog>
how can i change the author tag of above xml file using apache camel with spring boot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用XSLT。创建自己的模板文件以进行转换。
https://camel.apache.org/components/3.18.x/ xslt-component.html
您也可以在Spring Boot中使用它。
You should use XSLT. Create your own template file for transformation.
https://camel.apache.org/components/3.18.x/xslt-component.html
You can use it in Spring Boot too.