CDATA in XML output
|Target version:||Release 2.0.1|
I've discussed this in the mailing list .
It turned out that in order to properly parse CDATA in the XML outout of "onevm show -x", one need to remove the spaces and newlines in the XML output. I think the key is in onevm command
856 puts vm.to_xml(true)
If it is changed to not using pretty output, everything works as before.
or as the 1.4 code
This change is fairly recent. Previous versions I used still works.
1. Is there a reason why pretty XML output is needed?
2. Is it possible to make the pretty XML an option to the "onevm show -x" command.
3. Is there a better way to let a ruby code to parse CDATA in the XML output no matter if it is pretty or not?