XML::Parser#string is deprecated : Getting too many warnings


#1

Hi ,

I am doing XML parsing to get data from xml documents inside a Rails
project. I get my job done but there are too many warnings in between.I
dont understand how can i avoid this.
the error warnings are :

warning: Passing no parameters to XML::Parser.new is deprecated. Pass
an instance of XML::Parser::Context instead.
XML::Parser#string is deprecated. Use XML::Parser.string instead

I am using Libxml for parsing.Can anyone please provide some help in
this regards?