Best way of dealing with empty attributes

Sept. 24, 2014
9:45 a.m.
Hi, we often have the case where element attributes may turn out to be None. This leads to an error in lxml when creating an Element, or serialising it in ElementTree. Is it possible to configure the behaviour is such situations? Either to ignore the attribute or just create it with no value? Charlie -- Charlie Clark Managing Director Clark Consulting & Research German Office Kronenstr. 27a Düsseldorf D- 40217 Tel: +49-211-600-3657 Mobile: +49-178-782-6226
3805
Age (days ago)
3805
Last active (days ago)
1 comments
2 participants
participants (2)
-
Charlie Clark
-
Stefan Behnel