Created
April 30, 2014 13:27
-
-
Save ilyabrin/26abcccb394b1ba611f9 to your computer and use it in GitHub Desktop.
tree.js formatting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'sinatra' | |
| require 'rexml/document' | |
| include REXML | |
| providers = File.new('providers.xml') | |
| services = File.new('services.xml') | |
| dev_time_start = Time.now # developer | |
| p = Document.new(providers) | |
| s = Document.new(services) | |
| p.elements.each("kp-dealer/provider/id") do |element| | |
| element.get_text.value | |
| end | |
| abort('stop') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment