I know I can parse XML using Hpricot, but is it also possible to create files? All the tutorials I found only demonstrate parsing.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Nah. Hpricot is only for parsing XML. It does not allow to build documents.
But you might want to take a look at Nokogiri, which allows you to parse and build documents.