Re: [BangPypers] Empty element in xml

2013-11-04 Thread Amit Sethi
> I would not do that at all. There are subtle differences between HTML > and XML, e.g., HTML allows tags that are not explicitly closed with > . Try a sub-element with the or tag. In general, > valid HTML is not necessarily valid XML, and vice versa. The bugs Hmm that is good point. I guess expl

Re: [BangPypers] Empty element in xml

2013-11-04 Thread Gora Mohanty
On 4 November 2013 21:07, Amit Sethi wrote: > I ended up using method=html for writing the xml. > > tree.write(filename, encoding="utf-8", xml_declaration=True, method='html') > > I am not sure if there are going to be any problems with this but for > the time being my nosetests seem to be working

Re: [BangPypers] Empty element in xml

2013-11-04 Thread Amit Sethi
I ended up using method=html for writing the xml. tree.write(filename, encoding="utf-8", xml_declaration=True, method='html') I am not sure if there are going to be any problems with this but for the time being my nosetests seem to be working fine Thanks Amit On Mon, Nov 4, 2013 at 8:46 AM, Go