<commit_before>= 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 <tt>updated.xml</tt> file.

== Installation

Add this line to your application's Gemfile:

<tt>gem 'xml_to_form'</tt>

And then execute:

<tt>$ bundle install</tt>

Copy the migration file:

<tt>$ rake xml_to_form:install:migrations</tt>

Migrate it in db:

<tt>$ rake db:migrate</tt>

== Usage

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

<tt>mount XmlToForm::Engine => "/xml_handler" </tt>

Then hit the url <tt> localhost:3000/xml_handler</tt>:<commit_msg>readme update<commit_after>= 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 <tt>updated.xml</tt> file.

== Installation

Add this line to your application's Gemfile:

<tt>gem 'xml_to_form'</tt>

And then execute:

<tt>$ bundle install</tt>

Copy the migration file:

<tt>$ rake xml_to_form:install:migrations</tt>

Migrate it in db:

<tt>$ rake db:migrate</tt>

== Usage

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

<tt>mount XmlToForm::Engine => "/xml_handler" </tt>

Then hit the url <tt> localhost:3000/xml_handler/upload_file</tt>:
{'fraction_non_alphanumeric': 0.1076388888888889, 'fraction_numerical': 0.005555555555555556, 'mean_word_length': 4.650980392156863, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1138333', 'n_tokens_mistral': 501, 'n_tokens_neox': 480, 'n_words': 194}