I recall seeing yaml functions in the library  https://github.com/Armatiek/saxon-extensions.

Best regards,
Øyvind 

tir. 26. jul. 2022, 15:36 skrev Hans-Juergen Rennau <hrennau@yahoo.de>:
Strong, strong backing from the Western Fankurve (the cheap places under no roof and without seats) for Eliot's request! BaseX, we all know it, is a miracle of data integration (once one has discovered the secret of json:doc(), html:doc(), csv:doc()), and YAML is missing! I believe that it is far from trivial (although the common use of YAML would be trivial, but the devil might be in the specified detail), yet it would be really great if BaseX found a way to fill this gap. OpenAPI is sometimes supplied only in YAML! Waving my flag! - Hans-Jürgen

Am Dienstag, 26. Juli 2022 um 15:25:29 MESZ hat Marco Lettere <m.lettere@gmail.com> Folgendes geschrieben:


Hi Elliot,

I remember having asked info about a possible YAML serialization format on the Slack Xml.com channel one year ago.

They don't really have a nice opinion about Yaml and no-one looked really interested in supporting it.

Thus I think there are philosophy matters here :-)

M.

On 26/07/22 15:11, Eliot Kimber wrote:

I found myself needing to operate on some YAML documents and tried to find an XQuery YAML parser and did not find one, at least not one of sufficient completeness.

 

It seems like kind of an obvious missing thing in the XQuery world so just curious if I missed something?

 

I don’t have time myself to write one—it can’t be that hard but it’s not that critical of a need for me. I ended up using the Python PyYAML library, which let me quickly convert YAML to JSON, which then I could of course process just fine with XQuery.

 

Thanks,

 

E.

_____________________________________________

Eliot Kimber

Sr Staff Content Engineer

O: 512 554 9368

M: 512 554 9368

servicenow.com

LinkedIn | Twitter | YouTube | Facebook