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

**URL:** <https://www.ruby-forum.com/t/xml-parser-string-is-deprecated-getting-too-many-warnings/160071>\
**Category:** Rails\
**Created:** [February 11, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/xml-parser-string-is-deprecated-getting-too-many-warnings/160071 "2009-02-11T14:29:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![manisha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@manisha](https://www.ruby-forum.com/u/manisha)\
**Post date:** [February 11, 2009, 2:29pm UTC](https://www.ruby-forum.com/t/xml-parser-string-is-deprecated-getting-too-many-warnings/160071/1 "2009-02-11T14:29:31Z")

</div>

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?
