CUSTOM ERROR MARKERS

Hi,
How to display error markers in XML/JSON document.
Also, is it possible to directly check XML against schema (XSD) and automatically display the error markers ?

Thanks
Hi,

If you're using our XML parser (from Alternet.Parsers.Advanced namespace) you can turn it's SyntaxOptions.SyntaxErrors, so it will display error markers for erroneous syntax. It only reports errors in case open/close tags do not match.
JSON parser already has this option on, but again it only validates syntax.
It should be possible to use XSD schema validation (https://docs.microsoft.com/en-us/dotnet/standard/data/xml/xml-schema-xsd-validation-with-xmlschemaset)
and JSON schema validation (https://www.newtonsoft.com/json/help/html/JsonSchema.htm) to validate XML/JSON documents against schema and provide a feedback as error markers.
We will create sample demo and upload it to this post shortly.

Regards,
Dmitry
Hi,
I've uploaded sample demo there:
https://www.alternetsoft.com/forum/XMLJSONValidator.zip
Regards,
Andrew