nori icon indicating copy to clipboard operation
nori copied to clipboard

Strange error when passing malformed xml

Open deemytch opened this issue 7 years ago • 0 comments

data = "<?xml version=\"1.0\" encoding=\"utf-8\">\n<request>\n <opcode>0</opcode>\n</request>\n" Nori.new.parse data NoMethodError: undefined method 'add_node' for nil:NilClass Question sign is omitted at the end of <?xml...?> header Expected kind of "Malformed XML" or "Parsing error', but got a syntax error exception.

deemytch avatar Jun 20 '17 16:06 deemytch