prefix()
public
Returns the namespace of the
attribute.
e = Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
e.attributes.get_attribute( "a" ).prefix
e.attributes.get_attribute( "b" ).prefix
a = Attribute.new( "x", "y" )
a.prefix
Show source
def prefix
pf = super
if pf == ""
pf = @element.prefix if @element
end
pf
end