【发布时间】:2018-09-13 19:05:00
【问题描述】:
我想显示完整的 xml 文档,包括标签。 我试过这个:
//The variable f refers to the xml file
URL url = f.toURI().toURL();
webEngine.load(url.toString());
但这会将 xml 显示为 html,不包括标签。 有人可以帮忙吗?
【问题讨论】:
我想显示完整的 xml 文档,包括标签。 我试过这个:
//The variable f refers to the xml file
URL url = f.toURI().toURL();
webEngine.load(url.toString());
但这会将 xml 显示为 html,不包括标签。 有人可以帮忙吗?
【问题讨论】:
我使用 JEditorPane 而不是 WebView 来显示 XML 树,它工作正常并且很容易实现
【讨论】: