weso / rdfshape-client

Web client for RDFShape API with human-friendly validations and visualizations.
https://rdfshape.weso.es
MIT License
11 stars 5 forks source link

Fixed XML parser failures on some HTML outputs of ShapeForms #91

Closed ulitol97 closed 2 years ago

ulitol97 commented 2 years ago

On some inputs, ShapeForms returns HTML with several root-level elements. For instance:

<form>
  ...form HTML
</form>
<span>...</span>

Our client-side XML formatter expected a single root element and crashed in these cases. This is temporarily fixed by wrapping the whole output of ShapeForms in <span>, </span> and removing those after the formatting.

Working example: https://rdfshape.weso.es/link/16479681963