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.
检查字符串是否是 Jdom2 的有效 XML 的最佳方法是什么?
将它放在 try/catch 块中并使用 JDOM 2 对其进行解析.....然后如果您需要处理 JDOMException 它是无效的。
滚滚