Next / Previous / Contents / Shipman's homepage

11.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)