Sha256: 3f49739c8c60ac881170b6c0e004eb3a9b66ceb13b49b3cfb12d0ffd489323ef
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
#! /usr/local/bin/ruby require 'xml/parser' p = XML::Parser.new(nil, " ") p.setReturnNSTriplet(true); def p.startDoctypeDecl(name, sysid, pubid, has_internal) end def p.endDoctypeDecl() end def p.elementDecl(name, model) end def p.attlistDecl(name, elname, attname, att_type, dflt, isreq) end def p.xmlDecl(version, enc, standalone) end def p.entityDecl(name, param, value, base, sysid, pubid, notation) end def p.startElement(name, attrs) end def p.endElement(name) end p.parse($<.read) do |t, n, d| p([t, n, d]) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mame-xmlparser-0.6.81.1 | samples/doctypei.rb |