class LibXML::XML::Namespace

def <=>(other)

considered equal if their prefixes and hrefs are the same.
Compares two namespace objects. Namespace objects are

namespace1 <=> namespace2
call-seq:
def <=>(other)
  if self.prefix.nil? and other.prefix.nil?
    self.href <=> other.href
  elsif self.prefix.nil?
    -1
  elsif other.prefix.nil?
    1
  else
    self.prefix <=> other.prefix
  end
end

def each

end
..
namespace.each do |ns|
Usage:

the first namespace in the loop is the current namespace.
Use the each method to iterate over the list. Note
libxml stores namespaces in memory as a linked list.

namespace.each {|ns| .. }
call-seq:
def each
  ns = self
  while ns
    yield ns
    ns = ns.next
  end
end

def to_s

namespace.to_s
Usage:

Returns the string represenation of a namespace.

namespace.to_s -> "string"
call-seq:
def to_s
  if self.prefix
    "#{self.prefix}:#{self.href}"
  else
    self.href
  end
end