xml.dom.Node.previousSibling

Node.previousSibling

The node that immediately precedes this one with the same parent. For instance the element with an end-tag that comes just before the self element’s start-tag. Of course, XML documents are made up of more than just elements so the previous sibling could be text, a comment, or something else. If this node is the first child of the parent, this attribute will be None. This is a read-only attribute.

doc_python
2016-10-07 17:47:52
Comments
Leave a Comment

Please login to continue.