LunarParser
LunarParser copied to clipboard
Add support to YAML
Support for YAML. Should use the same interface / naming conventions as the JSON and XML parsers.
More info on the format http://www.yaml.org/start.html
Hi Relfos, first of all thanks for sharing you Work! Unfortunately i am having a little issue while converting XML to YAML.
For example the following XML:
is converted to YAML as:
--- # : xmlNode: childNode: item1:Value 1 item2:Value 2
Which is not parseable. A parseable YAML string would be:
xmlNode: childNode: item1: Value 1 item2: Value 2
The first two Lines seem to be obsolete, and "item1:Value 1" needs to be "item1: Value 1".
Hope this might be helpful, Simon
Hi Simon, this library support for YAML is still very experimental, as while I use this library exhaustively for several products, the only part that is really battle tested is JSON and XML.
Can you include a bit of code that generates that example of conversion from XML to YAML with those sample values? That would make it faster for me to fix the problem, thank you!