Next / Previous / Contents / Shipman's homepage

10.2. Gps.readNode() (static method)

This method constructs a Gps instance from its XML representation.

birdnotes.py
# - - -   G p s . r e a d N o d e

#   @staticmethod
    def readNode ( node ):
        """Convert from XML
        """
        waypoint  =  node.attrib [ rnc.WAYPOINT_A ]
        text  =  node.text
        return  Gps ( waypoint, text )

    readNode  =  staticmethod ( readNode )