Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我能够从 xml 模式创建 java 对象,并且创建新的 xml 也可以。
现在使用我的 java 对象,我如何搜索特定标签并将其更新回 xml?
您可以使用 的实例Marshaller将对象写回 XML。如果要将更改应用回现有 DOM,则可以使用Binder. Binder当您希望保留文档中的未映射内容时,此功能很有用。
Marshaller
Binder
了解更多信息