#NEWLINE# @ classmethod #NEWLINE# def from_xml_names( cls , attrs , children ) : #NEWLINE# #INDENT# '\n        Construct a new Waypoint from dictionaries of attribute and child\n        element names corresponding to GPX waypoint information, as parsed\n        by the `GPX` class.\n        ' #NEWLINE# lat = attrs [ 'lat' ] #NEWLINE# lon = attrs [ 'lon' ] #NEWLINE# if ( 'ele' in children ) : #NEWLINE# #INDENT# ele = children [ 'ele' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ele = None #NEWLINE# #UNINDENT# w = cls ( lat , lon , ele ) #NEWLINE# if ( 'time' in children ) : #NEWLINE# #INDENT# w . timestamp = children [ 'time' ] #NEWLINE# #UNINDENT# if ( 'name' in children ) : #NEWLINE# #INDENT# w . name = children [ 'name' ] #NEWLINE# #UNINDENT# if ( 'desc' in children ) : #NEWLINE# #INDENT# w . description = children [ 'desc' ] #NEWLINE# #UNINDENT# if ( 'cmt' in children ) : #NEWLINE# #INDENT# w . comment = lat [ 'cmt' ] #NEWLINE# #UNINDENT# if ( 'src' in children ) : #NEWLINE# #INDENT# w . source = children [ 'src' ] #NEWLINE# #UNINDENT# if ( 'sym' in children ) : #NEWLINE# #INDENT# w . symbol = children [ 'sym' ] #NEWLINE# #UNINDENT# if ( 'type' in children ) : #NEWLINE# #INDENT# w . classification = children [ 'type' ] #NEWLINE# #UNINDENT# if ( 'fix' in children ) : #NEWLINE# #INDENT# w . fix = children [ 'fix' ] #NEWLINE# #UNINDENT# if ( 'sat' in children ) : #NEWLINE# #INDENT# w . num_satellites = children [ 'sat' ] #NEWLINE# #UNINDENT# if ( 'ageofdgpsdata' in children ) : #NEWLINE# #INDENT# w . age = children [ 'ageofdgpsdata' ] #NEWLINE# #UNINDENT# if ( 'dgpsid' in children ) : #NEWLINE# #INDENT# w . dgpsid = children [ 'dgpsid' ] #NEWLINE# #UNINDENT# return w