Class: Quickbooks::DtdParser

Inherits:
QbxmlParser show all
Includes:
Support::ClassBuilder
Defined in:
lib/quickbooks/dtd_parser.rb

Constant Summary

Constants included from Support::QBXML

Support::QBXML::COMMENT_END, Support::QBXML::COMMENT_MATCHER, Support::QBXML::COMMENT_START, Support::QBXML::XML_COMMENT, Support::QBXML::XML_DOCUMENT, Support::QBXML::XML_ELEMENT, Support::QBXML::XML_NODE, Support::QBXML::XML_NODE_SET, Support::QBXML::XML_TEXT

Constants included from Support::API

Support::API::API_ROOT, Support::API::DEFAULT_LOG_LEVEL, Support::API::RUBY_SCHEMA_PATH, Support::API::SCHEMA_MAP, Support::API::XML_SCHEMA_PATH

Instance Attribute Summary

Attributes inherited from QbxmlParser

#schema_type

Instance Method Summary collapse

Methods inherited from QbxmlParser

#initialize, #parse

Methods included from Support::QBXML

#cleanup_qbxml, #is_leaf_node?, #qbxml_class_defined?, #set_required_attributes

Methods included from Support

#inflector, #log, #simple_class_name, #to_attribute_name

Constructor Details

This class inherits a constructor from Quickbooks::QbxmlParser

Instance Method Details

#parse_file(qbxml_file) ⇒ Object



4
5
6
7
8
# File 'lib/quickbooks/dtd_parser.rb', line 4

def parse_file(qbxml_file)
  parse( 
    cleanup_qbxml(
      File.read(qbxml_file)))
end