def xpath(self, path):
            """Get or set the value at a relative path."""
            path = path.split('/')
            element = self
            for tag in path:
                if tag in element.children:
                    element = element.children[tag]
                else:
                    raise KeyError('path does not exist')
            return element.value
Get or set the value at a relative path.
recipes/Python/577703_Item_Properties/recipe-577703.py