Set the type as any when implicit. An implicit is when an element has not body and no type defined. @return: self @rtype: L{Element}
(self)
| 383 | self.implany() |
| 384 | |
| 385 | def implany(self): |
| 386 | """ |
| 387 | Set the type as any when implicit. |
| 388 | An implicit <xs:any/> is when an element has not |
| 389 | body and no type defined. |
| 390 | @return: self |
| 391 | @rtype: L{Element} |
| 392 | """ |
| 393 | if self.type is None and self.ref is None and self.root.isempty(): |
| 394 | self.type = self.anytype() |
| 395 | return self |
| 396 | |
| 397 | def childtags(self): |
| 398 | return ('attribute', 'simpleType', 'complexType', 'any',) |