new(document = nil, encoding = nil) new(document = nil, parser, context, encoding = nil)
[DOM3?]
Parse
doctree = parser.parse(xml, parse_ext) xml: string or stream of XML contents parse_ext: flag whether parse external entities or not
[Validate]