<commit_before>"# xml2j-gen" 

This is the code generator that goes with xml2j (core).
Since the code generator relies on the Saxon XSLT and XQuery Processor (SAXON 6.5.5), you'll need to get it: http://prdownloads.sourceforge.net/saxon/saxon6-5-5.zip and include the saxon.jar to your build path. For your convenience I also included it in the libs folder.

If you need to generate an XSD from XML I recommend: https://devutilsonline.com/xsd-xml/generate-xsd-from-xml
This service allows you to generate an XSD using various options, of which the default works very well (Venetian Blind Design). To make sure your XSD covers the optional elements as well, paste in a sufficiently large XML sample.

**INSTALLATION**
* Add XML2J_HOME to your environment (home of the XML2J Generator)


**Code Generation** 
* java -jar xml2j.jar -wtutorials/choice -ccfg/cfg.xml

In the example above:
* -w is the working directory for the choice project
* -c is the fully qualified name of the configuration file

To see possible arguments (help): 
* java -jar xml2j.jar

** SAMPLES **
I have added a samples directory with among others SEPA. In here I am also using Spring Data with MongoDB to persists transactions to Mongo. You will need to have [xml2j-springdata](https://github.com/lolkedijkstra/xml2j-springdata.git) as well if you want to use these samples.<commit_msg>fixed the readme<commit_after>"# xml2j-gen" 

This is the code generator that goes with xml2j (core).
Since the code generator relies on the Saxon XSLT and XQuery Processor (SAXON 6.5.5), you'll need to get it: http://prdownloads.sourceforge.net/saxon/saxon6-5-5.zip and include the saxon.jar to your build path. For your convenience I also included it in the libs folder.

If you need to generate an XSD from XML I recommend: https://devutilsonline.com/xsd-xml/generate-xsd-from-xml
This service allows you to generate an XSD using various options, of which the default works very well (Venetian Blind Design). To make sure your XSD covers the optional elements as well, paste in a sufficiently large XML sample.

**INSTALLATION**
* Add XML2J_HOME to your environment (home of the XML2J Generator)


**Code Generation** 
* java -jar xml2j.jar -wtutorials/choice -ccfg/cfg.xml

In the example above:
* -w is the working directory for the choice project
* -c is the fully qualified name of the configuration file

To see possible arguments (help): 
* java -jar xml2j.jar

**SAMPLES**
I have added a samples directory with among others SEPA. In here I am also using Spring Data with MongoDB to persists transactions to Mongo. You will need to have [xml2j-springdata](https://github.com/lolkedijkstra/xml2j-springdata.git) as well if you want to use these samples.
{'fraction_non_alphanumeric': 0.0712973171628078, 'fraction_numerical': 0.010290334435869165, 'mean_word_length': 4.264990328820116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 18}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1578526', 'n_tokens_mistral': 814, 'n_tokens_neox': 778, 'n_words': 385}