K
K
kirawa2014-07-22 10:57:28
Java
kirawa, 2014-07-22 10:57:28

How to check jsoup content parser?

Hello! I need to parse only xml documents. I have many different links and, as it were, when I refer to some of them, I sometimes get html content and my program stops. Is it possible to somehow check something like if Html Then ERROR otherwise everything is fine

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
anyd3v, 2014-07-22
@anyd3v

Html is the same xml. If you derive a definition rule, then what is the problem? Are your xml wrapped in html tag too? if not, start with this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question