Node factory function synopsis:
text_node :_attrname_, _path_ [, :default_value=>_obj_] [, :optional=>true] [, :mapping=>_m_]
Node that maps an XML
node’s text (the element’s first child text node resp. the
attribute’s value) to a (string) attribute of the mapped object.
path (an XPath expression) locates the XML node, attrname (a symbol) names the
attribute. :default_value is the default value,
:optional=>true is equivalent to :default_value=>nil (see superclass
documentation for details). m is the mapping; it
defaults to the current default mapping
# File lib/xml/mapping/standard_nodes.rb, line 23 def initialize(*args) path,*args = super(*args) @path = XML::XXPath.new(path) args end