#NEWLINE# def readSection( self , sectionElement ) : #NEWLINE# #INDENT# section = LawSection ( ) #NEWLINE# name = text = None #NEWLINE# node = sectionElement . firstChild ( ) #NEWLINE# while ( ( ( name is None ) or ( text is None ) ) and ( not node . isNull ( ) ) ) : #NEWLINE# #INDENT# if ( node . toElement ( ) . tagName ( ) == LAW_SECTION_TITLE_TAG_NAME ) : #NEWLINE# #INDENT# section . setName ( self . getText ( node ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( node . toElement ( ) . tagName ( ) == LAW_SECTION_TEXT_TAG_NAME ) : #NEWLINE# #INDENT# section . setText ( self . getText ( node ) ) #NEWLINE# #UNINDENT# #UNINDENT# node = node . nextSibling ( ) #NEWLINE# #UNINDENT# return section