Class LibXML::XML::Namespace
In: lib/libxml/namespace.rb
Parent: Object

Methods

<=>   each   to_s  

Included Modules

Comparable Enumerable

Public Instance methods

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

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

Usage:

  namespace.each do |ns|
    ..
  end

Returns the string represenation of a namespace.

Usage:

  namespace.to_s

[Validate]