From: andrew mcelroy Date: 2011-08-23T00:33:58+09:00 Subject: Re: Chilkat Upload for Ruby Released On Mon, Aug 22, 2011 at 5:20 AM, Brajmohan S. wrote: > I am working on RHEL 5. I have to build a web automation framwork using > Ruby. when I am trying to read a XML file using Chilkat ruby I am > getting following error. Chilkat is a commercial proprietary library. You really should be contacting the software firm that writes that software. For reading XML you may want to consider using Nokogiri or hpricot. Nokogiri is faster, but can be harder to set up if you dont have libxml present. Andrew McElroy > > Ruby code where I am getting the error. > > require 'rubygems' > require 'Chilkat' > > ... > > ... > > xml = Chilkat::CkXml.new() > xml.LoadXmlFile('/root/Desktop/XML/Vendor_Registration_Flow01.xml') > @strContent = Chilkat::CkString.new() > @strTag = Chilkat::CkString.new() > @strXml = Chilkat::CkString.new() > @processNode = xml.SearchForTag(nil,"t:test_case") > > ... > > .... > > While running the code I am getting this message -- > > /root/Desktop/readxml.rb:14:in `LoadXmlFile': Expected argument 0 of > type CkXml *, but got Chilkat::CkXml # (TypeError) > in SWIG method 'LoadXmlFile' > from /root/Desktop/readxml.rb:14:in `
' > > > Please help me in resolving the error. > > Thanks. > > -- > Posted via http://www.ruby-forum.com/. > >