method

do_parse

ruby latest stable - Class: XSD::XMLParser::REXMLParser

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

do_parse(string_or_readable)
public

No documentation available.

# File lib/xsd/xmlparser/rexmlparser.rb, line 21
  def do_parse(string_or_readable)
    source = nil
    source = REXML::SourceFactory.create_from(string_or_readable)
    source.encoding = charset if charset
    # Listener passes a String in utf-8.
    @charset = 'utf-8'
    REXML::Document.parse_stream(source, self)
  end