0.0
No commit activity in last 3 years
No release in over 3 years
As it is basically a converter of xml file to rails nested form it takes help from nokogiri do some hacks of nokogiri and update the xml file and create an updated.xml file
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

XmlToForm¶ ↑

XmlToForm gem enables you to upload any xml file and it will convert it to nested Rails Form with the help of <fieldset> and <legend> tags, then you can update that file and you will get an updated.xml file.

Installation¶ ↑

Add this line to your application’s Gemfile:

gem 'xml_to_form'

And then execute:

$ bundle install

Copy the migration file:

$ rake xml_to_form:install:migrations

Migrate it in db:

$ rake db:migrate

Usage¶ ↑

To use this gem you just need to mount it in your route file config/routes.rb

mount XmlToForm::Engine => '/xml_handler'

Then hit the url localhost:3000/xml_handler

then you will see a file upload button to upload a xml file after uploading a file you will see nested rails form for updating xml file whatever value you will update it will update the xml file and will create an updated.xml file.