You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it seems like less code to use template strings to produce XML documents for libvirt, this approach can be error prone and may lead to security problems if escaping is not handled properly. We should adopt a library such as libxml2 or xml.etree for managing this in most cases.
The text was updated successfully, but these errors were encountered:
it seems that you want a class to compose the xml for libvirt. How you want this feature:
1 - Pass a dictionary in python with the information and generate a libvirt xml as output?
2 - Create a class, with functions like setOS, setArch to create the xml
aglitke: we looked at using libvirt-gobject to help us manipulate xml files. The problem is this is not available on rhel5
It's a wrapper library for libvirt using gobject introspection to provide the python bindings.
On Sun, Oct 13, 2013 at 08:38:31AM -0700, shaohef wrote:
aglitke: we looked at using libvirt-gobject to help us manipulate xml files. The problem is this is not available on rhel5
It's a wrapper library for libvirt using gobject introspection to provide the python bindings.
While it seems like less code to use template strings to produce XML documents for libvirt, this approach can be error prone and may lead to security problems if escaping is not handled properly. We should adopt a library such as libxml2 or xml.etree for managing this in most cases.
The text was updated successfully, but these errors were encountered: