Class | LibXML::XML::NS |
In: |
ext/libxml/libxml.c
|
Parent: | Object |
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")
/* * 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) {
Obtain the namespace’s href.
/* * 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.
/* * 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.
/* * call-seq: * ns.next -> ns * * Obtain the next namespace. */ VALUE ruby_xml_ns_next(VALUE self) {
Obtain the namespace’s prefix.
/* * 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.
/* * call-seq: * ns.prefix? -> (true|false) * * Determine whether this namespace has a prefix. */ VALUE ruby_xml_ns_prefix_q(VALUE self) {