Request #422
CDATA in XML output
Status: | Closed | Start date: | 12/01/2010 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | Release 2.0.1 | |||
Pull request: |
Description
Hi there,
I've discussed this in the mailing list [1].
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 command856 puts vm.to_xml(true)
If it is changed to not using pretty output, everything works as before.puts vm.to_xml(false)
or as the 1.4 codeputs vm.to_xml
This change is fairly recent. Previous versions I used still works.
My questions
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?
Thanks.
Shi
[1] http://lists.opennebula.org/pipermail/users-opennebula.org/2010-November/003386.html
Associated revisions
History
#1 Updated by Ruben S. Montero over 10 years ago
- Status changed from New to Closed
- Target version set to Release 2.0.1
This has been fixed in 2.0.1