1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-27 12:50:35 +00:00
Files
UXP/parser/html/java/htmlparser/ruby-gcj/test/fonts.rb
T
2020-01-17 09:19:28 +08:00

12 lines
254 B
Ruby

require 'nu/validator'
require 'open-uri'
ARGV.each do |arg|
doc = Nu::Validator::parse(open(arg))
doc.xpath("//*[local-name()='font']").each do |font|
font.attributes.each do |name, attr|
puts "#{name} => #{attr.value}"
end
end
end