wxpython stc.StyledTextCtrl formatting xml

Hi

iam showing xml files in stc.StyledTextCtrl. Some of the xml files contains unformatted xml.

Example:

SV SR


how do i format above xml like this:

SV SR

can i format xml string using lxml pretty print and then replace xml in stc.StyledTextCtrl with formatted string.

what is the correct way to handle this.

That sounds reasonable.

···

On Thursday, December 11, 2014 5:36:02 AM UTC-8, Nagarajan Babu wrote:

can i format xml string using lxml pretty print and then replace xml in stc.StyledTextCtrl with formatted string.

thank you.

···

On Friday, December 12, 2014 12:30:11 AM UTC+5:30, Nathan McCorkle wrote:

On Thursday, December 11, 2014 5:36:02 AM UTC-8, Nagarajan Babu wrote:

can i format xml string using lxml pretty print and then replace xml in stc.StyledTextCtrl with formatted string.

That sounds reasonable.