Class: NQXML::Node (Ruby 2.2.2)
Description: Class : NQXML::Node - Ruby 2.2.2

- Home
- Core 2.2.2
- Std-lib 2.2.2
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- xmlrpc/parser.rb

### Parent

Object

### Methods

- #[]
- #childNodes
- #hasChildNodes
- #nodeName
- #nodeType
- #nodeValue
- #removeChild

### Class/Module Index

Quicksearch

- NQXML
- NQXML::Node
- XMLRPC
- XMLRPC::Base64
- XMLRPC::BasicServer
- XMLRPC::CGIServer
- XMLRPC::Client
- XMLRPC::Client::Proxy
- XMLRPC::Config
- XMLRPC::Convert
- XMLRPC::Create
- XMLRPC::DateTime
- XMLRPC::FaultException
- XMLRPC::Marshal
- XMLRPC::Marshallable
- XMLRPC::ModRubyServer
- XMLRPC::ParseContentType
- XMLRPC::ParserWriterChooseMixin
- XMLRPC::Server
- XMLRPC::Service
- XMLRPC::Service::BasicInterface
- XMLRPC::Service::Interface
- XMLRPC::Service::PublicInstanceMethodsInterface
- XMLRPC::WEBrickServlet
- XMLRPC::XMLParser
- XMLRPC::XMLParser::AbstractStreamParser
- XMLRPC::XMLParser::AbstractTreeParser
- XMLRPC::XMLParser::LibXMLStreamParser
- XMLRPC::XMLParser::LibXMLStreamParser::LibXMLStreamListener
- XMLRPC::XMLParser::NQXMLParser
- XMLRPC::XMLParser::NQXMLStreamParser
- XMLRPC::XMLParser::NQXMLStreamParser::XMLRPCParser
- XMLRPC::XMLParser::NQXMLTreeParser
- XMLRPC::XMLParser::REXMLStreamParser
- XMLRPC::XMLParser::REXMLStreamParser::StreamListener
- XMLRPC::XMLParser::StreamParserMixin
- XMLRPC::XMLParser::XMLParser
- XMLRPC::XMLParser::XMLScanStreamParser
- XMLRPC::XMLParser::XMLScanStreamParser::XMLScanParser
- XMLRPC::XMLParser::XMLStreamParser
- XMLRPC::XMLParser::XMLTreeParser
- XMLRPC::XMLWriter
- XMLRPC::XMLWriter::Abstract
- XMLRPC::XMLWriter::Simple
- XMLRPC::XMLWriter::XMLParser

No matching classes.

# NQXML::Node

### Public Instance Methods

[](index) click to toggle source

                   # File xmlrpc/parser.rb, line 24
    def [] (index)
      @children[index]
    end

childNodes() click to toggle source

                   # File xmlrpc/parser.rb, line 18
    def childNodes
      @children
    end

hasChildNodes() click to toggle source

                   # File xmlrpc/parser.rb, line 21
    def hasChildNodes
      not @children.empty?
    end

nodeName() click to toggle source

                   # File xmlrpc/parser.rb, line 41
    def nodeName
      #TODO: error when wrong Entity-type
      @entity.name
    end

nodeType() click to toggle source

                   # File xmlrpc/parser.rb, line 28
    def nodeType
      if @entity.instance_of? NQXML::Text then :TEXT
      elsif @entity.instance_of? NQXML::Comment then :COMMENT
      #elsif @entity.instance_of? NQXML::Element then :ELEMENT
      elsif @entity.instance_of? NQXML::Tag then :ELEMENT
      else :ELSE
      end
    end

nodeValue() click to toggle source

                   # File xmlrpc/parser.rb, line 37
    def nodeValue
      #TODO: error when wrong Entity-type
      @entity.text
    end

removeChild(node) click to toggle source

                   # File xmlrpc/parser.rb, line 15
    def removeChild(node)
      @children.delete(node)
    end