Re: [libvirt] [test-API][PATCH] Fix xml parser problem when node have both attribute and value

2012-08-05 Thread Guannan Ren
On 08/02/2012 06:25 PM, Wayne Sun wrote: When xml node have both attribute and value at first level, the parser will broke. After fix, the node key will have a dictionary with both value and attr inside. For example, the xml node: capacity unit='bytes'536870912000/capacity will be

[libvirt] [test-API][PATCH] Fix xml parser problem when node have both attribute and value

2012-08-02 Thread Wayne Sun
When xml node have both attribute and value at first level, the parser will broke. After fix, the node key will have a dictionary with both value and attr inside. For example, the xml node: capacity unit='bytes'536870912000/capacity will be parsed into: {u'capacity': {'attr': {u'unit':