Get value from text node as well as attribute