Creates a new parser by parsing the specified file or uri.
Creates a new reader by parsing the specified io object.
Parameters:
encoding - The document encoding, defaults to nil. Valid values are the encoding constants defined on XML::Encoding.
Creates a new parser by parsing the specified string.
[Validate]