문제

What is the best way to check if a string is valid XML for Jdom2?

도움이 되었습니까?

해결책

Put it in a try/catch block and parse it with JDOM 2..... then if you need to handle the JDOMException it is not valid.

rolfl

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top