method

namespace

v1_8_6_287 - Show latest stable - Class: REXML::Attribute
namespace(arg=nil)
public

Returns the namespace URL, if defined, or nil otherwise

 e = Element.new("el")
 e.add_attributes({"xmlns:ns", "http://url"})
 e.namespace( "ns" )              # -> "http://url"