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" )
Show source
def namespace arg=nil
arg = prefix if arg.nil?
@element.namespace arg
end