1.1 --- a/libxml2dom/__init__.py Sat Sep 11 23:24:39 2004 +0000
1.2 +++ b/libxml2dom/__init__.py Mon Sep 27 20:20:37 2004 +0000
1.3 @@ -183,6 +183,12 @@
1.4 else:
1.5 return Node(self._node.parent)
1.6
1.7 + def _previousSibling(self):
1.8 + if self._node.prev is not None:
1.9 + return Node(self._node.prev)
1.10 + else:
1.11 + return None
1.12 +
1.13 def _nextSibling(self):
1.14 if self._node.next is not None:
1.15 return Node(self._node.next)
1.16 @@ -352,6 +358,7 @@
1.17 parentNode = property(_parentNode)
1.18 nodeType = property(_nodeType)
1.19 attributes = property(_attributes)
1.20 + previousSibling = property(_previousSibling)
1.21 nextSibling = property(_nextSibling)
1.22
1.23 def isSameNode(self, other):