Class: XML::DOM::DOMEntityResolverImpl

Inherits:
Object
  • Object
show all
Includes:
DOMEntityResolver
Defined in:
lib/xml/dom2/domentityresolverimpl.rb

Instance Method Summary collapse

Instance Method Details

#resolveEntity(publicId, systemId) ⇒ Object

DOMInputSource resolveEntity(publicId, systemId)



16
17
18
19
20
21
22
# File 'lib/xml/dom2/domentityresolverimpl.rb', line 16

def resolveEntity(publicId, systemId)
  ret = DOMInputSource.new
  ret.publicId = publicId
  ret.systemId = systemId
  ret.byteStream = open(systemId, 'rb')
  ret
end