-
Is it possible to get parser to throw Error if XML document is provied for the parser?
This is "nicely" parsed as JSON object, but I would rather get Error to be thrown :)
|
Beta Was this translation helpful? Give feedback.
Answered by
eemeli
Nov 23, 2023
Replies: 1 comment 3 replies
-
The short answer here is "no", given that this is an explicit feature of the library:
But if you're e.g. using the |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
RopoMen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The short answer here is "no", given that this is an explicit feature of the library:
But if you're e.g. using the
parseDocument
API, you can check thaterrors
array of the output is empty.