Class LibXML::XML::NS
In: ext/libxml/libxml.c
Parent: Object

Methods

href   href?   new   next   prefix   prefix?   to_s  

Public Class methods

Create a new namespace attached to the specified node with the give prefix and namespace.

 XML::NS.new(node, "xlink", "http://www.w3.org/1999/xlink")

[Source]

/*
 * call-seq:
 *    initialize(node, "href", "prefix")
 * 
 * Create a new namespace attached to the specified node with the
 * give prefix and namespace.
 *
 *  XML::NS.new(node, "xlink", "http://www.w3.org/1999/xlink")
 */
VALUE
ruby_xml_ns_initialize(VALUE self, VALUE node, VALUE href, VALUE prefix) {

Public Instance methods

Obtain the namespace’s href.

[Source]

/*
 * call-seq:
 *    ns.href -> "href"
 * 
 * Obtain the namespace's href.
 */
VALUE
ruby_xml_ns_href_get(VALUE self) {

Determine whether this namespace has an href.

[Source]

/*
 * call-seq:
 *    ns.href? -> (true|false)
 * 
 * Determine whether this namespace has an href.
 */
VALUE
ruby_xml_ns_href_q(VALUE self) {

Obtain the next namespace.

[Source]

/*
 * call-seq:
 *    ns.next -> ns
 * 
 * Obtain the next namespace.
 */
VALUE
ruby_xml_ns_next(VALUE self) {

Obtain the namespace’s prefix.

[Source]

/*
 * call-seq:
 *    ns.prefix -> "prefix"
 *    ns.to_s   -> "prefix"
 * 
 * Obtain the namespace's prefix.
 */
VALUE
ruby_xml_ns_prefix_get(VALUE self) {

Determine whether this namespace has a prefix.

[Source]

/*
 * call-seq:
 *    ns.prefix? -> (true|false)
 * 
 * Determine whether this namespace has a prefix.
 */
VALUE
ruby_xml_ns_prefix_q(VALUE self) {

Obtain the namespace’s prefix.

[Source]

/*
 * call-seq:
 *    ns.prefix -> "prefix"
 *    ns.to_s   -> "prefix"
 * 
 * Obtain the namespace's prefix.
 */
VALUE
ruby_xml_ns_prefix_get(VALUE self) {

[Validate]