-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Hello @highsource
We are using jsonix to parse WMS GetCapabilities. It works great in most cases, but when using a "customized" GetCapabilities, it fails with marshalling errors.
For example, when trying with this one: http://services.data.shom.fr/ncwms2/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities, it fails on the edal:ExtendedCapabilities element.
I saw that it is possible to tell jsonix to ignore unknown elements (with the allowDom option).
More generally, we would like JSONIX to unmarshall only the elements defined in the definition file, and ignore the other ones.
In the test project https://plnkr.co/edit/PWww2EV50SgYVmfEVpP9?p=preview, if we add a custom element under Service or Capability/Layer, it works (see wms_working_text.xml) but if we add a custom element under Capability (see wms_failing_test.xml) it fails (error are seen in the browser console).
Is there a rule about where the custom elements are allowed? Is it possible to add a custom element anywhere in the XML, making JSONIX to just ignore them if it doesn't know them from the definition file?
Thanks for your help!