each( xpath=nil )
Instance Public methods
Iterates through all of the child Elements,
optionally filtering them by a given XPath
xpath
optional. If supplied, this is a String XPath,
and is used to filter the children, so that only matching children are
yielded. Note that XPaths are automatically filtered for Elements, so that non-Element children will not be
yielded
doc = Document.new '<a><b/><c/><d/>sean<b/><c/><d/></a>'
doc.r