Nokogiri XSD validation issues

Hi All,
I am using nokogiri gem(1.4.1) for xsd validation, it works well in my local machine and doesn’t in my server, it didn’t validate some of the xml tags can anybody help, below is my code.

          inut_xml=request.raw_post

           errors =[]

	xsd = Nokogiri::XML::Schema(File.read("#{Rails.root}/public/dwp-integration-resource.xsd"))

	doc = Nokogiri::XML(input_xml)

	xsd.validate(doc).each do |error|

		errors << error.message

	end

regards,
Loganathan

http://www.ruby-forum.com/topic/2441482#new