The XML binding from yaml.org might be a good start (https://yaml.org/xml). I have opened a little issue for a future YAML Module [1].
@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).
@Martin: Thanks for the link to Norm’s demo, I’ll have a look at it.
[1] https://github.com/BaseXdb/basex/issues/1921
On Wed, Aug 12, 2020 at 2:47 PM Marco Lettere m.lettere@gmail.com wrote:
Hm, not sure but maybe FasterXML's Jackson? It supports alternative non JSON data formats among which YAML, XML. But maybe that one is a huge dependency. M.
On 12/08/20 12:38, Christian Grün wrote:
Hi Marco, hi Fabrice,
YAML serialization would be a nice feature indeed.
Are you aware of existing (ideally bidirectional) mappings that would be appropriate for general use?
Cheers Christian
Marco Lettere m.lettere@gmail.com schrieb am Mi., 12. Aug. 2020, 12:04:
Dear BaseX team,
just out of curiosity, could you imagine what kind of effort it would be to provide YAML as another serialization method for BaseX in addition to XML, HTML, JSON, CSV?
The datamodel seems pretty close to the JSON one so maybe a very similar transformation to XML could be implemented ...
Ciao,
Marco.