Request #422

CDATA in XML output

Added by Shi Jin over 10 years ago. Updated over 10 years ago.

Status:ClosedStart date:12/01/2010
Priority:NormalDue 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 command
856 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 code
puts 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

Revision 427322eb
Added by Abel Coronado almost 4 years ago

B #5291 Solved bug VM Instances error in order by ID (#422)

Revision 6a3c5b3f
Added by Abel Coronado almost 4 years ago

B #5291 Solved bug VM Instances error in order by ID (#422)

(cherry picked from commit 427322ebb57305a919e9183acea3108091b5242d)

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

Also available in: Atom PDF