#NEWLINE# @ staticmethod #NEWLINE# def get_slivers( xml , filter = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# xpath = './default:sliver | ./sliver' #NEWLINE# sliver_elems = xml . xpath ( xpath ) #NEWLINE# slivers = [ ] #NEWLINE# for sliver_elem in sliver_elems : #NEWLINE# #INDENT# sliver = Sliver ( sliver_elem . attrib , sliver_elem ) #NEWLINE# if ( 'component_id' in xml . attrib ) : #NEWLINE# #INDENT# sliver [ 'component_id' ] = xml . attrib [ 'component_id' ] #NEWLINE# #UNINDENT# sliver [ 'tags' ] = SFAv1Sliver . get_sliver_attributes ( sliver_elem ) #NEWLINE# slivers . append ( sliver ) #NEWLINE# #UNINDENT# return slivers