Here is my xml file
<gui>
<object class="wxPanel" name="new">
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxTextCtrl" name="a"></object>
</object>
<option>1</option>
<flag>wxEXPAND</flag>
</object>
</object>
</gui>
I want to get exactly what is in between the gui tag
So I would want this:
<object class="wxPanel" name="new">
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<object class="wxTextCtrl" name="a"></object>
</object>
<option>1</option>
<flag>wxEXPAND</flag>
</object>
</object>
I am currently using
minidom.parse("path to xml").getElementsByTagName('gui')[0].firstChild.nodeValue
However this does not work with getting xml as a string.
try toxml