Get whether the element is I{nil} as defined by having an attribute in the I{xsi:nil="true"} @return: True if I{nil}, else False @rtype: boolean
(self)
| 693 | return nocontent and noattrs |
| 694 | |
| 695 | def isnil(self): |
| 696 | """ |
| 697 | Get whether the element is I{nil} as defined by having |
| 698 | an attribute in the I{xsi:nil="true"} |
| 699 | @return: True if I{nil}, else False |
| 700 | @rtype: boolean |
| 701 | """ |
| 702 | nilattr = self.getAttribute('nil', ns=Namespace.xsins) |
| 703 | if nilattr is None: |
| 704 | return False |
| 705 | else: |
| 706 | return nilattr.getValue().lower() == 'true' |
| 707 | |
| 708 | def setnil(self, flag=True): |
| 709 | """ |
no test coverage detected