Robottinosino Robottinosino - 1 year ago 135
YAML Question

XML to plain text (currently using YAML, hit its limits though, need a better API)

I have 1000s of XML files with complex nested structures.

I need to see the XML files as plain text and be able to read back the data from TXT.

So far, XML-to-YAML has served the purpose perfectly.

YAML formats my content neatly enough and it can be read back.

All good so far.

Recently the XML schema has got more complicated though, and YAML is hitting its own limits, for the specifics see the many articles "against" YAML on Google.

I am not against YAML myself, I am in favour of it actually. It has served me well. Until now.

Here is a simple question: has YAML been superseded by a better "looks good in plain text and is meant for humans to read" system? What's the successor to YAML?

If you need the details of the XML schema that changed to answer this, fine... I can add them. It's optional sections with repetitions, with nested items, with lists of graphs of 3 nodes, with references to IDs to objects defined earlier (think: social security # to refer to a person), etc.

The programming language is Java.

Note: I could transform the XML into TXT using XSLT but how would I read the data back short of defining my own parser/grammar?

Answer Source
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download