Sha256: 1ff1f29c30351baf238da67e8d3e749bbd79a50d2b1e2227017477eaa29aa436
Contents?: true
Size: 389 Bytes
Versions: 1
Compression:
Stored size: 389 Bytes
Contents
#! /usr/local/bin/ruby require 'xmlextparser' #if XML::Parser.expatVersion != "1.2" # raise "This program work with expat-1.2" #end p = XML::ExtParser.new def p.startElement(name, attr) idattr = getIdAttribute idvalue = idattr ? attr[idattr] : nil; printf("%s: ID=(%s:%s)\n", name, idattr, idvalue) end begin p.parse($<.read) rescue XML::Parser::Error p([$!, p.line]) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mame-xmlparser-0.6.81.1 | samples/expat-1.2/idtest.rb |