The primary mechanism for defining rules in NRules is using the fluent DSL in C#. Behind that DSL is the API to define rules at runtime (see
https://github.com/NRules/NRules/wiki/Rule-Builder). So, if you have your rules in XML or some other form, you can use the RuleBuilder to create NRules rules.