You are using parseString to parse netxml, but this is not a sugguested way in autotest. You can add your function in virtttest/libvirt_xml/network.py. In this module, we do the all thing about network xml.

If you need any help about libvirt_xml module, please AT me anytime. 

Thanx