123456789_123456789_123456789_123456789_123456789_

Class: XMLRPC::XMLParser::NQXMLTreeParser

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: XMLRPC::XMLParser::AbstractTreeParser
Defined in: lib/xmlrpc/parser.rb

Overview

class XMLParser

Class Method Summary

Instance Method Summary

AbstractTreeParser - Inherited

#parseMethodCall, #parseMethodResponse, #array, #assert, #base64, #boolean, #data, #dateTime, #double, #fault,
#hasOnlyOneChild

Returns, when successfully the only child-node.

#integer, #member, #methodCall, #methodName, #methodResponse, #name, #nodeMustBe, #param, #params,
#removeWhitespacesAndComments

Removes all whitespaces but in the tags i4, i8, int, boolean.…

#string, #struct,
#text

_nodeType is defined in the subclass.

#text_zero_one

The node node has empty string or string.

#v_nil, #value

Constructor Details

.newNQXMLTreeParser

[ GitHub ]

  
# File 'lib/xmlrpc/parser.rb', line 697

def initialize
  require "nqxml/treeparser"
end

Instance Method Details

#_nodeType(node) (private)

[ GitHub ]

  
# File 'lib/xmlrpc/parser.rb', line 703

def _nodeType(node)
  node.nodeType
end

#createCleanedTree(str) (private)

[ GitHub ]

  
# File 'lib/xmlrpc/parser.rb', line 715

def createCleanedTree(str)
  doc = ::NQXML::TreeParser.new(str).document.rootNode
  removeWhitespacesAndComments(doc)
  doc
end

#methodCall_document(node) (private)

[ GitHub ]

  
# File 'lib/xmlrpc/parser.rb', line 711

def methodCall_document(node)
  methodCall(node)
end

#methodResponse_document(node) (private)

[ GitHub ]

  
# File 'lib/xmlrpc/parser.rb', line 707

def methodResponse_document(node)
  methodResponse(node)
end