编辑:
我的问题与下面的问题类似:
Converting XML to JSON using XML Schema- 使用Java而不是JavaScript
- 双向转换(
XML->JSON
和JSON->XML
) - 一般的Java库,不涉及Node.js
- 实时进行转换
类似于 String json = convertToJSON(xml, xmlSchema)
和 String xml = convertToXML(json, xmlSchema)
的东西。
编辑:
我的问题与下面的问题类似:
Converting XML to JSON using XML SchemaXML->JSON
和JSON->XML
)类似于 String json = convertToJSON(xml, xmlSchema)
和 String xml = convertToXML(json, xmlSchema)
的东西。