I was wondering if you can successfully serialize any arbitrary XML document to a YAML representing, ideally without losing information (attributes, comments, etc.), and convert the result back to the original XML representation.
I would guess that YAML to XML conversions is easier.
Apart from that, it would surely be possible to write a little XQuery module that performs all the conversions (just a matter of time?).
Marco Lettere m.lettere@gmail.com schrieb am Mi., 12. Aug. 2020, 18:31:
@Marco: Do you know which conversions are provided by FasterXML: arbitrary XML → YAML, arbitrary YAML → XML, or both? If the underlying conversion rules are promising, we could include them a 'fasterxml' format in BaseX (similar to the 'jsonml' format).
As far as I can understand from the docs and the code on github there Jackson is a sort of hub with several dataformat modules which are able to parse and serialize from the various formats.
I don't know whether, with the term arbitrary, you mean to be able to provide your own syntax for the XML serialization. In this case I am not sure.
M.