<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<collection version="2.4.5">
  <group name="DC Series Groups" comment="https://en.wikipedia.org/wiki/List_of_The_New_52_publications">
    <filtersanddefaults rulesetmode="AND" />
    <group name="Cosmic">
      <filtersanddefaults rulesetmode="AND" />
      <group name="OA" comment="Any and all lantern related">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Green Lantern" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Green Lantern|| Green Lantern Annual||Green Lantern:" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContains" value="Corps" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Green Lantern" />
        </ruleset>
        <ruleset name="Green Lantern Corps" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Green Lantern Corps|| Green Lantern Corps Annual||The New Corps" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Corps" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Green Lantern Corps" />
        </ruleset>
        <ruleset name="Red Lanterns" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Red Lanterns|| Red Lanterns Annual" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Red Lantern" />
        </ruleset>
        <ruleset name="Larfleeze" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Larfleeze|| Larfleeze Annual" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Larfleeze" />
        </ruleset>
        <ruleset name="Hal Jordon" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Hal Jordan" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hal Jordan" />
        </ruleset>
        <ruleset name="Abin Sur" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Abin Sur" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Abin Sur" />
        </ruleset>
        <ruleset name="Sinestro" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Sinestro" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Sinestro" />
        </ruleset>
        <ruleset name="Ganthet" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Ganthet" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Ganthet" />
        </ruleset>
        <ruleset name="Guy Gardner" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Guy Gardner" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="OA" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Guy Gardner" />
        </ruleset>
      </group>
      <group name="Thanagar">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Thanagar" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="thanagar" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Thanagar" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Thanagar" />
        </ruleset>
        <ruleset name="Atom and Hawkman" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Atom and Hawkman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Atom and Hawkman" />
          <action field="SeriesGroup" modifier="SetValue" value="Thanagar" />
        </ruleset>
        <ruleset name="Hawkman" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Hawkman||The Savage Hawkman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hawkman" />
          <action field="SeriesGroup" modifier="SetValue" value="Thanagar" />
        </ruleset>
        <ruleset name="Hawkgirl" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Hawkgirl" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hawkgirl" />
          <action field="SeriesGroup" modifier="SetValue" value="Thanagar" />
        </ruleset>
        <ruleset name="Hawkworld" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Hawkworld" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hawkworld" />
          <action field="SeriesGroup" modifier="SetValue" value="Thanagar" />
        </ruleset>
      </group>
      <group name="New Genesis">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="The Forever People" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="The Forever People||Forever People" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="New Genesis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Forever People" />
        </ruleset>
        <ruleset name="Mister Miracle" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Mister Miracle" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="New Genesis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Mister Miracle" />
        </ruleset>
        <ruleset name="The New Gods" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="The New Gods||New Gods" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="New Genesis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The New Gods" />
        </ruleset>
        <ruleset name="New Genesis" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="Genesis" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="New Genesis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="New Genesis" />
        </ruleset>
        <ruleset name="Orion" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Orion" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="New Genesis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Orion" />
        </ruleset>
        <ruleset name="Forager" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Bug!||Forager" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="The Edge" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Bug!" />
        </ruleset>
      </group>
      <group name="Apokolips">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Darkseid" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Darkseid" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Apokolips" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Darkseid" />
        </ruleset>
      </group>
      <group name="Gods">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Son of Vulcan" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Son of Vulcan" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gods" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Son of Vulcan" />
        </ruleset>
      </group>
      <group name="Hell">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Reign In Hell" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="Reign In Hell" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Hell" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Reign In Hell" />
        </ruleset>
        <ruleset name="Etrigan" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Demon Knights||Etrigan||Blood of the Demon||Demon" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Hell" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Etrigan" />
        </ruleset>
        <ruleset name="Lucifer" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Lucifer" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Hell" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Lucifer" />
        </ruleset>
      </group>
      <ruleset name="Threshold" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Threshold" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Threshold" />
      </ruleset>
      <ruleset name="Alpha Centurioin" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Alpha Centurion" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Cosmic" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Alpha Centurion" />
      </ruleset>
      <ruleset name="Telos" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Telos" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Cosmic" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Telos" />
      </ruleset>
      <ruleset name="The Spectre" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="The Spectre" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Cosmic" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Spectre" />
      </ruleset>
      <ruleset name="Eclipso" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Eclipso" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Cosmic" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Eclipso" />
      </ruleset>
      <ruleset name="Lobo" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Lobo" />
        <rule field="Series" modifier="NotContainsAnyOf" value="Superman" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Cosmic" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Lobo" />
      </ruleset>
    </group>
    <group name="Earth">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Captain Atom" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Captain Atom" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Captain Atom" />
      </ruleset>
      <ruleset name="Mister Terrific" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Mister Terrific" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Mister Terrific" />
      </ruleset>
      <ruleset name="Booster Gold" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Booster Gold" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Booster Gold" />
      </ruleset>
      <ruleset name="Dr. Fate" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Dr Fate||Fate||Dr. Fate" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Dr. Fate" />
      </ruleset>
      <ruleset name="The Question" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Question||The Question" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Question" />
      </ruleset>
      <ruleset name="Shazam" rulesetmode="AND">
        <rule field="Publisher" modifier="ContainsAnyOf" value="DC Comics||M. F. Enterprise||fawcett||miller" />
        <rule field="Series" modifier="ContainsAnyOf" value="Shazam||Captain Marvel||America's Greatest Comics||Whiz Comics||Mary Marvel||The Marvel Family||Shazam!||Captain Marvel Jr||the marvel family||whiz comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shazam" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="Publisher" modifier="SetValue" value="DC Comics" />
      </ruleset>
      <ruleset name="Ambush Bug" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Ambush Bug" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ambush Bug" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="The Atom" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="The Atom||Giant-Size Atom||atom archives||atom Special||atom" />
        <rule field="Publisher" modifier="ContainsAnyOf" value="DC Comics||Charlton" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Atom" />
        <action field="Publisher" modifier="SetValue" value="DC Comics" />
      </ruleset>
      <ruleset name="Solo" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Solo" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Solo" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Martian Manhunter" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Martian Manhunter" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Martian Manhunter" />
      </ruleset>
      <ruleset name="Plastic Man" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Plastic Man" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Plastic Man" />
      </ruleset>
      <ruleset name="Black Lightning" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Black Lightning" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Lightning" />
      </ruleset>
      <ruleset name="Red Tornado" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Red Tornado" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Red Tornado" />
      </ruleset>
      <ruleset name="Blue Beetle" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Blue Beetle||The Blue Beetle" />
        <rule field="Publisher" modifier="ContainsAnyOf" value="DC Comics||Charlton||Fox Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blue Beetle" />
        <action field="Publisher" modifier="SetValue" value="DC Comics" />
      </ruleset>
      <ruleset name="Static Shock" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Static Shock||Static" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Static Shock" />
      </ruleset>
      <ruleset name="Katana" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Katana" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Katana" />
      </ruleset>
      <ruleset name="Beast Boy" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Beast Boy" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Beast Boy" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Starfire" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Starfire" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Starfire" />
      </ruleset>
      <ruleset name="Deathstroke" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Deathstroke" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Deathstroke" />
      </ruleset>
      <ruleset name="Zatanna" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Zatanna" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="NotStartsWith" value="Seven Soldiers" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Zatanna" />
      </ruleset>
      <ruleset name="Anima" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Anima" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Anima" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Cosmic Boy" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Cosmic Boy" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Cosmic Boy" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Cyborg" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Cyborg" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Cyborg" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Raven" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Raven" />
        <rule field="Series" modifier="NotContains" value="Birds of Prey" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Raven" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="All-Star Western" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="IsAnyOf" value="All-Star Western|| Jonah Hex" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="All-Star Western" />
      </ruleset>
      <ruleset name="Grifter" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Grifter" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Grifter" />
      </ruleset>
      <ruleset name="Voodoo" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Voodoo" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Voodoo" />
      </ruleset>
      <ruleset name="G.I. Combat" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="G.I. Combat||Star-Spangled War Stories" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="G.I. Combat" />
      </ruleset>
      <ruleset name="The Spirit" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="The Spirit" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Spirit" />
      </ruleset>
      <ruleset name="Weird Western Tales" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Weird Western Tales" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Weird Western Tales" />
      </ruleset>
      <ruleset name="The Authority" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="The Authority" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Authority" />
      </ruleset>
      <ruleset name="Human Bomb" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Human Bomb" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Human Bomb" />
      </ruleset>
      <ruleset name="Infinity Man" rulesetmode="AND">
        <rule field="Series" modifier="StartsWith" value="Infinity Man" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Infinity Man" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Joe Kubert" rulesetmode="AND">
        <rule field="Series" modifier="StartsWith" value="Joe Kubert" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Joe Kubert" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="The Ray" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="The Ray" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Ray" />
      </ruleset>
      <ruleset name="Phantom Lady" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Phantom Lady" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Phantom Lady" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Amethyst" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Amethyst||Sword of Sorcery" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Amethyst" />
      </ruleset>
      <ruleset name="Shadowdragon" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Shadowdragon" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shadowdragon" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Checkmate" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Checkmate" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Checkmate" />
      </ruleset>
      <ruleset name="Black Condor" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Black Condor" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Condor" />
      </ruleset>
      <ruleset name="Xombi" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Xombi" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Xombi" />
      </ruleset>
      <ruleset name="Cave Carson" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Cave Carson" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Cave Carson" />
      </ruleset>
      <ruleset name="Richard Dargon" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="kung fu fighter" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Richard Dargon" />
      </ruleset>
      <ruleset name="Jonah Hex" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Jonah Hex" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Jonah Hex" />
      </ruleset>
      <ruleset name="Manhunter" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Manhunter" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Manhunter" />
      </ruleset>
      <ruleset name="Animal Man" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Animal Man" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Animal Man" />
      </ruleset>
      <ruleset name="I, Vampire" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="I, Vampire" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="I, Vampire" />
      </ruleset>
      <ruleset name="Swamp Thing" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Swamp Thing" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Swamp Thing" />
      </ruleset>
      <ruleset name="Dial H" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Dial H" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Dial H" />
      </ruleset>
      <ruleset name="The Phantom Stranger" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="The Phantom Stranger||Conjurors" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Phantom Stranger" />
      </ruleset>
      <ruleset name="Constantine" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Constantine||Hellblazer" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Constantine" />
      </ruleset>
      <ruleset name="Frankenstein, Agent of S.H.A.D.E" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Frankenstein" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Frankenstein" />
      </ruleset>
      <ruleset name="Resurrection Man" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Resurrection Man" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Resurrection Man" />
      </ruleset>
      <ruleset name="Black Adam" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Black Adam" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Adam" />
      </ruleset>
      <ruleset name="Deadman" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Deadman" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Deadman" />
      </ruleset>
      <ruleset name="Shade" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Shade" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shade" />
      </ruleset>
      <ruleset name="Shade, The Changing Girl" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Shade, The Changing Girl" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shade, The Changing Girl" />
      </ruleset>
      <ruleset name="iZombie" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="iZombie" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="iZombie" />
      </ruleset>
      <ruleset name="Klarion" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Klarion" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Klarion" />
      </ruleset>
      <ruleset name="Blue Devil" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Blue Devil" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blue Devil" />
      </ruleset>
    </group>
    <group name="Earth Teams">
      <filtersanddefaults rulesetmode="AND" />
      <group name="Justice League">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Justice League" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Justice League||Justice League:||The New Frontier||Justice||Injustice" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League" />
        </ruleset>
        <ruleset name="DC Universe Presents" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="DC Universe" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="DC Universe" />
        </ruleset>
        <ruleset name="Earth 2" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Earth 2" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Earth 2" />
        </ruleset>
        <ruleset name="Justice League of America" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Justice League of America||Justice League of America's Vibe||The 99||JLA" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League of America" />
        </ruleset>
        <ruleset name="Justice League International" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Justice League International" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League International" />
        </ruleset>
        <ruleset name="Justice Society of America" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Justice Society of America||The Justice Society||JSA" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice Society of America" />
        </ruleset>
        <ruleset name="The Brave and the Bold" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Brave and the Bold" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Justice League" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Brave and the Bold" />
        </ruleset>
      </group>
      <group name="Legion Of Doom">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Legion Of Doom" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Legion Of Doom||Villains United" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Legion Of Doom" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Legion Of Doom" />
        </ruleset>
        <ruleset name="Secret Society of Super-Villains" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Secret Society of Super-Villains" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Legion Of Doom" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Secret Society of Super-Villains" />
        </ruleset>
        <ruleset name="Legion of Super-Villains" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Legion of Super-Villains" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Legion Of Doom" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Legion of Super-Villains" />
        </ruleset>
      </group>
      <ruleset name="The Outsiders" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="The Outsiders||Outsiders||outsider" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Outsiders" />
      </ruleset>
      <ruleset name="Justice League Dark" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Justice League Dark" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League Dark" />
      </ruleset>
      <ruleset name="Bombshells" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="DC Comics Bombshells||DC comics: Bombshells||Bombshells" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Bombshells" />
      </ruleset>
      <ruleset name="All-Star Squadron" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="All-Star Squadron" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="All-Star Squadron" />
      </ruleset>
      <ruleset name="Batman/Superman" rulesetmode="AND">
        <rule field="Series" modifier="IsAnyOf" value="Batman/Superman|| Superman/Batman||World's Finest Comics||world's finest" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Batman - Superman" />
      </ruleset>
      <ruleset name="Trinity" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="IsAnyOf" value="Batman/Superman/Wonder Woman: Trinity||Trinity||Trinity " />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Trinity" />
      </ruleset>
      <ruleset name="Legends of Tomorrow" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Legends of Tomorrow" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Legends of Tomorrow" />
      </ruleset>
      <ruleset name="Ame-Comi" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Ame-Comi" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ame-Comi" />
      </ruleset>
      <ruleset name="Legion of Super Heroes" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="ContainsAnyOf" value="Legion of Super Heroes||Legion of Super-Heroes||Legion: Secret Origin||Legion Lost||R.E.B.E.L.S.||Starman||The Legion" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Legion of Super Heroes" />
      </ruleset>
      <ruleset name="The Ravagers" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="The Ravagers" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Ravagers" />
      </ruleset>
      <ruleset name="Doom Patrol" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Doom Patrol" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Doom Patrol" />
      </ruleset>
      <ruleset name="Young Justice" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Young Justice" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Young Justice" />
      </ruleset>
      <ruleset name="Titans" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Titans||Teen Titans||Tiny Titans" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Titans" />
      </ruleset>
      <ruleset name="Young All-Stars" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Young All-Stars" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Young All-Stars" />
      </ruleset>
      <ruleset name="DC Super hero girls" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="DC Super hero girls" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="DC Super Hero Girls" />
      </ruleset>
      <ruleset name="Infinity, Inc." rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Infinity, Inc." />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Infinity Inc." />
      </ruleset>
      <ruleset name="Super Sons" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Super Sons" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Super Sons" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
      </ruleset>
      <ruleset name="Suicide Squad" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Suicide Squad" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Suicide Squad" />
      </ruleset>
      <ruleset name="The Movement" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="The Movement" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Movement" />
      </ruleset>
      <ruleset name="T.H.U.N.D.E.R. Agents" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="IsAnyOf" value="T.H.U.N.D.E.R. Agents|| THUNDER Agents|| Thunder Agents" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="T.H.U.N.D.E.R. Agents" />
      </ruleset>
      <ruleset name="The Green Team" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="The Green Team" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Green Team" />
      </ruleset>
      <ruleset name="Stormwatch" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Stormwatch" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Stormwatch" />
      </ruleset>
      <ruleset name="Team 7" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Team 7" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Team 7" />
      </ruleset>
      <ruleset name="Blackhawks" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Blackhawks||Blackhawk" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blackhawks" />
      </ruleset>
      <ruleset name="Men of War" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Men of War" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Men of War" />
      </ruleset>
      <ruleset name="Birds of Prey" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Birds of Prey" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Birds of Prey" />
      </ruleset>
      <ruleset name="Secret Six" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Secret Six" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Secret Six" />
      </ruleset>
      <ruleset name="Argus" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Argus" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Argus" />
      </ruleset>
      <ruleset name="Sovereign Seven" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Sovereign Seven" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Sovereign Seven" />
      </ruleset>
      <ruleset name="Shadow Cabinet" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Shadow Cabinet" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shadow Cabinet" />
      </ruleset>
      <ruleset name="S.T.A.R. Corps" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="S.T.A.R. Corps" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="S.T.A.R. Corps" />
      </ruleset>
      <ruleset name="Xenobrood" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="xenobrood" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Xenobrood" />
      </ruleset>
      <ruleset name="Midnighter and Apollo" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Midnighter and Apollo" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Midnighter and Apollo" />
      </ruleset>
      <ruleset name="Blood Pack" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Blood Pack" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blood Pack" />
      </ruleset>
      <ruleset name="Trinity of Sin" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Trinity of Sin" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="NotContainsAnyOf" value="Batman / Superman / Wonder Woman: Trinity" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Trinity of Sin" />
      </ruleset>
      <ruleset name="Secret Seven" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Secret Seven" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Secret Seven" />
      </ruleset>
      <ruleset name="Shadowpact" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Shadowpact" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shadowpact" />
      </ruleset>
      <ruleset name="Seven Soldiers" rulesetmode="AND">
        <rule field="Series" modifier="StartsWith" value="Seven Soldiers" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Seven Soldiers" />
      </ruleset>
      <ruleset name="Hawk and Dove" rulesetmode="AND">
        <rule field="Series" modifier="IsAnyOf" value="Hawk and Dove|| Hawk &amp; Dove||The Hawk and The Dove" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Hawk and Dove" />
      </ruleset>
      <ruleset name="Night Force" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Is" value="Night Force" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth Teams" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Night Force" />
      </ruleset>
    </group>
    <group name="Earth Cities">
      <filtersanddefaults rulesetmode="AND" />
      <group name="Atlantis" comment="Any and all Charater related to aquaman">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Aquaman" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Aquaman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Flashpoint" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Atlantis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Aquaman" />
        </ruleset>
        <ruleset name="Arion" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Arion" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotStartsWith" value="Seven Soldiers" />
          <rule field="Series" modifier="NotContains" value="Klarion" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Atlantis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Arion" />
        </ruleset>
        <ruleset name="Atlantis" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="The Atlantis Chronicles" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Atlantis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Atlantis" />
        </ruleset>
        <ruleset name="Backlash" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Backlash" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Atlantis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Backlash" />
        </ruleset>
        <ruleset name="Mera" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Mera" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContains" value="Emerald" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Atlantis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Mera" />
        </ruleset>
      </group>
      <group name="Central City" comment="Any and all Charater related to the flash">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Citizen Cold" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Citizen Cold" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Citizen Cold" />
        </ruleset>
        <ruleset name="Grodd" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Grodd" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Grodd" />
        </ruleset>
        <ruleset name="Kid Flash" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Kid Flash" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotStartsWith" value="Sins of Youth" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Kid Flash" />
        </ruleset>
        <ruleset name="Reverse Flash" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Reverse Flash" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Reverse Flash" />
        </ruleset>
        <ruleset name="The Flash" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="The Flash||Flash||Giant Flash||Speed Force||Flash 80" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContains" value="Flash Gordon" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Flash" />
        </ruleset>
        <ruleset name="Firestorm" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Firestorm||The Fury of Firestorm: The Nuclear Men" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Firestorm" />
        </ruleset>
        <ruleset name="Impulse" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Impulse" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Central City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Impulse" />
        </ruleset>
      </group>
      <group name="Gotham" comment="Any and all Charater related to batman">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Batgirl" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Batgirl" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batgirl" />
        </ruleset>
        <ruleset name="Batman" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Batman||Batman:||Batman,||Detective Comics||Dark Knight||Dark Knights" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Robin" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Superman" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Son of Batman" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Batman / Superman / Wonder Woman: Trinity" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Brave and The Bold" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Beyond" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batman" />
        </ruleset>
        <ruleset name="Robin" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Robin" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Robin hood||Red Robin" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Robin" />
        </ruleset>
        <ruleset name="Batwing" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Batwing" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batwing" />
        </ruleset>
        <ruleset name="Batwoman" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Batwoman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batwoman" />
        </ruleset>
        <ruleset name="Catwoman" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Catwoman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Catwoman" />
        </ruleset>
        <ruleset name="Nightwing" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Nightwing" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Nightwing" />
        </ruleset>
        <ruleset name="Redhood and the Outlaws" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="Red Hood and the Outlaws||Red Hood" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Red Hood" />
        </ruleset>
        <ruleset name="Talon" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Talon" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Talon" />
        </ruleset>
        <ruleset name="Arkham Asylum" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Arkham Asylum||Arkham" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Batman|| Robin" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Arkham Asylum" />
        </ruleset>
        <ruleset name="Bruce Wayne" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Bruce Wayne" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batman" />
        </ruleset>
        <ruleset name="Azrael" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Azrael" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Azrael" />
        </ruleset>
        <ruleset name="Aztek" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Aztek" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Aztek" />
        </ruleset>
        <ruleset name="Hitman" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="Hitman" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hitman" />
        </ruleset>
        <ruleset name="Huntress" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Huntress" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Huntress" />
        </ruleset>
        <ruleset name="Scarecrow" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Scarecrow" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Scarecrow" />
        </ruleset>
        <ruleset name="Night of the Owls" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Night of the owls" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batman" />
        </ruleset>
        <ruleset name="Oracle" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Oracle" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Oracle" />
        </ruleset>
        <ruleset name="Penguin" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Penguin" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Penguin" />
        </ruleset>
        <ruleset name="Ra's Al Ghul" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Ra's Al Ghul" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Ra's Al Ghul" />
        </ruleset>
        <ruleset name="Solomon Grundy" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Solomon Grundy" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Solomon Grundy" />
        </ruleset>
        <ruleset name="Damian" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Son of Batman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Damian" />
        </ruleset>
        <ruleset name="Gotham City" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="Gotham Academy||Gotham by Midnight||Gotham Central||Gotham City Sirens||Gotham Girls||Gotham Underground||Gotham City" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Gotham" />
        </ruleset>
        <ruleset name="Grayson" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Grayson" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Grayson" />
        </ruleset>
        <ruleset name="Harley Quinn" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Harley Quinn||harley" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Harley Quinn" />
        </ruleset>
        <ruleset name="Battle For The Cowl" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Battle For The Cowl" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Battle For The Cowl" />
        </ruleset>
        <ruleset name="Anarky" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Anarky" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Anarky" />
        </ruleset>
        <ruleset name="Simon Dark" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Simon Dark" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Simon Dark" />
        </ruleset>
        <ruleset name="Scratch" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="Scratch" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Scratch" />
        </ruleset>
        <ruleset name="The Joker" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="joker" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Joker" />
        </ruleset>
        <ruleset name="Deadshot" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Deadshot" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Joker" />
        </ruleset>
        <ruleset name="Man Bat" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="Man-Bat||Man Bat" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Man Bat" />
        </ruleset>
        <ruleset name="Batman Beyond" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="ContainsAnyOf" value="Batman Beyond" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Batman Beyond" />
        </ruleset>
        <ruleset name="Mother Panic" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Mother Panic" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Mother Panic" />
        </ruleset>
        <ruleset name="Poison Ivy" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Poison Ivy" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Poison Ivy" />
        </ruleset>
        <ruleset name="Bane" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Bane" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Bane" />
        </ruleset>
        <ruleset name="Bat-mite" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Bat-mite" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Bat-mite" />
        </ruleset>
        <ruleset name="OMAC" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="OMAC||O.M.A.C." />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="O.M.A.C." />
        </ruleset>
        <ruleset name="Red Robin" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Red Robin" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContains" value="Robin hood" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gotham City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Red Robin" />
        </ruleset>
      </group>
      <group name="Metropolis" comment="Any and all related to superman">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Superboy" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Superboy" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Superboy" />
        </ruleset>
        <ruleset name="Supergirl" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Supergirl" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Supergirl" />
        </ruleset>
        <ruleset name="Superman" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContains" value="Lois Lane" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Batman / Superman / Wonder Woman: Trinity" />
          <rule field="Series" modifier="ContainsAnyOf" value="Superman||The World Of Smallville||the world of metropolis||the world of krypton||Super-man||Action Comics||Adventure Comics||The Man of steel||Smallville" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Superman" />
        </ruleset>
        <ruleset name="Power Girl" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Power Girl" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Power Girl" />
        </ruleset>
        <ruleset name="Bizarro" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Bizarro" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Bizarro" />
        </ruleset>
        <ruleset name="Lois Lane" rulesetmode="AND">
          <rule field="Publisher" modifier="ContainsAnyOf" value="DC Comics||Colour comics" />
          <rule field="Series" modifier="Contains" value="Lois Lane" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Lois Lane" />
          <action field="Publisher" modifier="SetValue" value="DC Comics" />
        </ruleset>
        <ruleset name="Jimmy Olsen" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Jimmy Olsen" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Jimmy Olsen" />
        </ruleset>
        <ruleset name="Supermen of America" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="Supermen of America" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Supermen of America" />
        </ruleset>
        <ruleset name="Guardians of Metropolis" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Guardians of Metropolis" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Guardians of Metropolis" />
        </ruleset>
        <ruleset name="Superwoman" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Superwoman" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Superwoman" />
        </ruleset>
        <ruleset name="Steel" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Steel" />
          <rule field="Series" modifier="NotContainsAnyOf" value="The Man of steel" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Metropolis" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Steel" />
        </ruleset>
      </group>
      <group name="Starling City" comment="Any and all Charater related to green arrow">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Artemis" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Artemis" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Starling City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Artemis" />
        </ruleset>
        <ruleset name="Arsenal" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Arsenal" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Starling City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Arsenal" />
        </ruleset>
        <ruleset name="Green Arrow" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Green Arrow||Arrow" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContainsAnyOf" value="arrowsmith" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Starling City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Green Arrow" />
        </ruleset>
        <ruleset name="Black Canary" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Black Canary" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Starling City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Canary" />
        </ruleset>
        <ruleset name="Connor Hawke" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Connor Hawke" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Starling City" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Connor Hawke" />
        </ruleset>
      </group>
      <group name="Themyscira" comment="Any and all Charater related to wonder woman">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Wonder Woman" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Wonder Woman||Sensation Comics" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Flashpoint" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Batman / Superman / Wonder Woman: Trinity" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Themyscira" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Wonder Woman" />
        </ruleset>
        <ruleset name="Amazons" rulesetmode="AND">
          <rule field="Series" modifier="ContainsAnyOf" value="Amazons Attack||Amazon" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Themyscira" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Amazons" />
        </ruleset>
        <ruleset name="Donna Troy" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Donna Troy" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Themyscira" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Donna Troy" />
        </ruleset>
        <ruleset name="Wonder Girl" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Wonder Girl" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="Earth Cities" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Themyscira" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Wonder Girl" />
        </ruleset>
      </group>
    </group>
    <group name="Crossovers">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Crisis on Infinite Earths" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Crisis on Infinite Earths" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Crisis on Infinite Earths" />
      </ruleset>
      <ruleset name="Convergence" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Convergence" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Convergence" />
      </ruleset>
      <ruleset name="Armageddon" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Armageddon" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Armageddon" />
      </ruleset>
      <ruleset name="Dark Nights" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Dark Nights" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Dark Nights" />
      </ruleset>
      <ruleset name="Doomsday Clock" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Doomsday Clock" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Doomsday Clock" />
      </ruleset>
      <ruleset name="Flashpoint" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Flashpoint" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Flashpoint" />
      </ruleset>
      <ruleset name="Blackest Night" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Blackest Night" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blackest Night" />
      </ruleset>
      <ruleset name="Brightest Day" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Brightest Day" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Brightest Day" />
      </ruleset>
      <ruleset name="Futures End" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Futures End" />
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Futures End" />
      </ruleset>
      <ruleset name="The Multiverse" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="The Multiversity" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Multiversity" />
      </ruleset>
      <ruleset name="Forever Evil" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Forever Evil" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Forever Evil" />
      </ruleset>
      <ruleset name="Cosmic Odyssey" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Cosmic Odyssey" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Cosmic Odyssey" />
      </ruleset>
      <ruleset name="Identity Crisis" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Cosmic Odyssey" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Cosmic Odyssey" />
      </ruleset>
      <ruleset name="Countdown to Infinite Crisis" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Countdown to Infinite Crisis" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Countdown to Infinite Crisis" />
      </ruleset>
      <ruleset name="Infinite Crisis" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Infinite Crisis" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Infinite Crisis" />
      </ruleset>
      <ruleset name="Final Crisis" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Final Crisis" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Final Crisis" />
      </ruleset>
      <ruleset name="Heroes in Crisis" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="DC Comics" />
        <rule field="Series" modifier="Contains" value="Heroes in Crisis" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Heroes in Crisis" />
      </ruleset>
    </group>
    <group name="One Offs">
      <filtersanddefaults rulesetmode="AND" />
      <group name="Crossovers" comment="Character crossovers">
        <filtersanddefaults rulesetmode="AND" />
      </group>
      <group name="Switch-Ups" comment="Comics that switch characters">
        <filtersanddefaults rulesetmode="AND" />
      </group>
      <group name="One Offs1" comment="One Off limited series">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Secret Files" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Contains" value="Secret Files" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League" />
        </ruleset>
        <ruleset name="Secret Origins" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Secret Origins" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Secret Origins" />
        </ruleset>
        <ruleset name="DC 100-Page Super Spectacular" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="DC 100-Page Super Spectacular" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League" />
        </ruleset>
        <ruleset name="Kingdom Come" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Kingdom Come" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Volume" modifier="Is" value="1996" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League" />
        </ruleset>
        <ruleset name="the best of dc" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="the best of dc" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Justice League" />
        </ruleset>
        <ruleset name="Silver Age" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="StartsWith" value="Silver Age" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Silver Age" />
        </ruleset>
        <ruleset name="Salvation Run" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Salvation Run" />
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Salvation Run" />
        </ruleset>
        <ruleset name="1st Issue" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="DC Comics" />
          <rule field="Series" modifier="Is" value="1st issue special" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="1st issue special" />
        </ruleset>
      </group>
    </group>
    <group name="Multiverse">
      <filtersanddefaults rulesetmode="AND" />
    </group>
  </group>
  <group name="Marvel Series Groups" comment="https://en.wikipedia.org/wiki/Category:Lists_of_Marvel_characters_by_organization">
    <filtersanddefaults rulesetmode="AND" />
    <group name="Cosmic" comment="Cosmic characters and groups">
      <filtersanddefaults rulesetmode="AND" />
      <group name="Guardians of The Galaxy">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Star-Lord" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Star-Lord||Old Man Quill" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Guardians of The Galaxy" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star-Lord" />
        </ruleset>
        <ruleset name="Guardians of The Galaxy" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Guardians of The Galaxy||Guardians 3000||Guardians Team-up" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Guardians of The Galaxy" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Guardians of The Galaxy" />
        </ruleset>
        <ruleset name="Groot" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Groot" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Guardians of The Galaxy" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Groot" />
        </ruleset>
        <ruleset name="Rocket Raccoon" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Rocket Raccoon" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Guardians of The Galaxy" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Rocket Raccoon" />
        </ruleset>
        <ruleset name="Drax" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Drax" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Guardians of The Galaxy" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Drax" />
        </ruleset>
        <ruleset name="Gamora" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Gamora" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Guardians of The Galaxy" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Gamora" />
        </ruleset>
      </group>
      <group name="Asgard">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Angela" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Angela" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Asgard" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Angela" />
        </ruleset>
        <ruleset name="Loki" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Loki" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Asgard" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Loki" />
        </ruleset>
        <ruleset name="Thor" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Thor||Journey into Mystery" />
          <rule field="Series" modifier="NotContains" value="Wolverine" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Asgard" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Thor" />
        </ruleset>
      </group>
      <group name="Gods">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Olympus" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Olympus" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gods" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Olympus" />
        </ruleset>
        <ruleset name="Ares" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Ares" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gods" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Ares" />
        </ruleset>
        <ruleset name="Hercules" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Hercules" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Gods" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hercules" />
        </ruleset>
      </group>
      <group name="Eternals">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Eternals" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Eternals||Eternal" />
          <action field="First Series" modifier="SetValue" value="Cosmic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Eternals" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Eternals" />
        </ruleset>
      </group>
      <ruleset name="Thanos" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Thanos||Infinity" />
        <rule field="Series" modifier="NotContainsAnyOf" value="exiles" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Thanos" />
      </ruleset>
      <ruleset name="Nova" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Nova" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Nova" />
      </ruleset>
      <ruleset name="Silver Surfer" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Silver Surfer||Cosmic Powers Unlimited" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Silver Surfer" />
      </ruleset>
      <ruleset name="Ms. Marvel" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Ms. Marvel||Captain Marvel" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ms. Marvel" />
      </ruleset>
      <ruleset name="Doop" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Doop" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Doop" />
      </ruleset>
      <ruleset name="Galactus" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Galactus||Hunger" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Galactus" />
      </ruleset>
      <ruleset name="The Watcher" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="The Watcher||Original Sin||Original Sins" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Watcher" />
      </ruleset>
      <ruleset name="Howard the Duck" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Howard the Duck" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Howard the Duck" />
      </ruleset>
      <ruleset name="Annihilators" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Annihilators" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Annihilators" />
      </ruleset>
      <ruleset name="Galacta" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Galacta" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Galacta" />
      </ruleset>
      <ruleset name="Beta Ray Bill" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Beta Ray Bill" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Beta Ray Bill" />
      </ruleset>
      <ruleset name="Ronan" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Ronan" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ronan" />
      </ruleset>
      <ruleset name="Skrulls" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Skrull" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Skrulls" />
      </ruleset>
      <ruleset name="Captain Universe" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Captain Universe" />
        <action field="First Series" modifier="SetValue" value="Cosmic" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Captain Universe" />
      </ruleset>
    </group>
    <group name="Earth" comment="Earth based characters">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Shang-Chi" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Deadly Hands of Kung-Fu||Master of Kung Fu" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Shang-Chi" />
      </ruleset>
      <ruleset name="Deathlok" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Deathlok" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Deathlok" />
      </ruleset>
      <ruleset name="Miracleman" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Miracleman" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Miracleman" />
      </ruleset>
      <ruleset name="Squirrel Girl" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Squirrel Girl" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Squirrel Girl" />
      </ruleset>
      <ruleset name="Blade" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="NotContains" value="witchblade" />
        <rule field="Series" modifier="Contains" value="blade" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blade" />
      </ruleset>
      <ruleset name="Blue Marvel" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Blue Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Blue Marvel" />
      </ruleset>
      <ruleset name="American Eagle" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="American Eagle" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="American Eagle" />
      </ruleset>
      <ruleset name="Luke Cage" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Luke Cage||Cage" />
        <rule field="Series" modifier="NotContains" value="daredevil" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Luke Cage" />
      </ruleset>
      <ruleset name="Iron Fist" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Iron Fist" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Iron Fist" />
      </ruleset>
      <ruleset name="Ghost Rider" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Ghost Rider||Blaze" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ghost Rider" />
      </ruleset>
      <ruleset name="Moon Knight" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Moon Knight" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Moon Knight" />
      </ruleset>
      <ruleset name="The Punisher" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="The Punisher||Punishermax||Punisher" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Punisher" />
      </ruleset>
      <ruleset name="Misty Knight" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="IsAnyOf" value="Heroes for Hire|| Villians for Hire" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Misty Knight" />
      </ruleset>
      <ruleset name="Jessica Jones" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Jessica Jones||alias" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Jessica Jones" />
      </ruleset>
      <ruleset name="Vision" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Vision" />
        <rule field="Series" modifier="NotContainsAnyOf" value="marvel vision||hulk" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Vision" />
      </ruleset>
      <ruleset name="Black Knight" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Black Knight" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Knight" />
      </ruleset>
      <ruleset name="Backlash" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Backlash" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Backlash" />
      </ruleset>
      <ruleset name="Man-Thing" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Man-Thing" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Man-Thing" />
      </ruleset>
      <ruleset name="Amadeus Cho" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Amadeus Cho" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Amadeus Cho" />
      </ruleset>
      <ruleset name="The Sentry" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="The Sentry" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Sentry" />
      </ruleset>
      <ruleset name="Captain Britain" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Captain Britain" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Captain Britain" />
      </ruleset>
      <ruleset name="Falcon" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Falcon" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Falcon" />
      </ruleset>
      <ruleset name="Doctor Strange" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Doctor Strange||Dr. Strange" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Doctor Strange" />
      </ruleset>
      <ruleset name="Doctor Voodoo" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Doctor Voodoo" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Doctor Voodoo" />
      </ruleset>
      <ruleset name="Ant-Man" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Ant-Man" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ant-Man" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Ultron" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Ultron" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Ultron" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Black Panther" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Black Panther" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Panther" />
      </ruleset>
      <ruleset name="Iron Man" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Iron Man" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Iron Man" />
      </ruleset>
      <ruleset name="War Machine" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="War Machine" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="War Machine" />
      </ruleset>
      <ruleset name="Iron Patriot" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Iron Patriot" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Iron Patriot" />
      </ruleset>
      <ruleset name="Daredevil" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Daredevil" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Daredevil" />
      </ruleset>
      <ruleset name="Elektra" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Elektra" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Elektra" />
      </ruleset>
      <ruleset name="Bullseye" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Bullseye" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Bullseye" />
      </ruleset>
      <ruleset name="Captain America" rulesetmode="AND">
        <rule field="Publisher" modifier="ContainsAnyOf" value="Marvel||timely" />
        <rule field="Series" modifier="ContainsAnyOf" value="Captain America||All-New Invaders||Band of heroes" />
        <rule field="Series" modifier="NotContains" value="Ghost Rider" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Captain America" />
        <action field="Publisher" modifier="SetValue" value="Marvel" />
      </ruleset>
      <ruleset name="Winter Soldier" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Winter Soldier" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Winter Soldier" />
      </ruleset>
      <ruleset name="Steve Rogers" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Steve Rogers" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Steve Rogers" />
      </ruleset>
      <ruleset name="Red Skull" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Red Skull" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Red Skull" />
      </ruleset>
      <ruleset name="Hulk" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Hulk" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Hulk" />
      </ruleset>
      <ruleset name="Red Hulk" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Red Hulk||Red-Hulk" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Red Hulk" />
      </ruleset>
      <ruleset name="She-Hulk" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="She Hulk||She-Hulk" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="She-Hulk" />
      </ruleset>
      <ruleset name="Red She-Hulk" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Red She-Hulk||Red She Hulk" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Red She-Hulk" />
      </ruleset>
      <ruleset name="Abomination" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Abomination" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Abomination" />
      </ruleset>
      <ruleset name="Spider-Man" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Spider-Man||Spider-Verse||Amazing Fantasy||Spidey||web of spider-man||Spider-Island||Spider Men" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Spider-Man" />
      </ruleset>
      <ruleset name="Spider-Girl" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Spider-Girl||Spidergirl||Araña" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Spider-Girl" />
      </ruleset>
      <ruleset name="Carnage" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Carnage" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Carnage" />
      </ruleset>
      <ruleset name="Venom" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Venom" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Venom" />
      </ruleset>
      <ruleset name="Spider-Woman" comment="Jessica Drew – The original Spider-Woman. Level 7 agent." rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Spider-Woman" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Spider-Woman" />
      </ruleset>
      <ruleset name="Scarlet Spider" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Scarlet Spider" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Scarlet Spider" />
      </ruleset>
      <ruleset name="Alpha" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Alpha: Big Time" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Alpha" />
      </ruleset>
      <ruleset name="Goblin" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Hobgoblin||Green Goblin" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Goblin" />
      </ruleset>
      <ruleset name="Morbius" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Morbius||adventure into fear" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Morbius" />
      </ruleset>
      <ruleset name="Spider-Gwen" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Spider-Gwen" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Spider-Gwen" />
      </ruleset>
      <ruleset name="Silk" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Silk" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Silk" />
      </ruleset>
      <ruleset name="Miles Morales" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Miles Morales" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Miles Morales" />
      </ruleset>
      <ruleset name="Peter Parker" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Peter Parker" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Peter Parker" />
      </ruleset>
      <ruleset name="Osborn" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Osborn" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Osborn" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
      </ruleset>
      <ruleset name="Spider-Boy" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Spider-Boy" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Spider-Boy" />
      </ruleset>
      <ruleset name="Spider-Ham" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Spider-Ham" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Spider-Ham" />
      </ruleset>
      <ruleset name="Annex" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Annex" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Annex" />
      </ruleset>
      <ruleset name="The Buzz" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="The Buzz" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="The Buzz" />
      </ruleset>
      <ruleset name="Kingpin" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Kingpin" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Kingpin" />
      </ruleset>
      <ruleset name="Doctor Octopus" rulesetmode="AND">
        <rule field="Series" modifier="ContainsAnyOf" value="Doctor Octopus||dr octopus" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Doctor Octopus" />
      </ruleset>
      <ruleset name="Mary Jane" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Mary Jane" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Mary Jane" />
      </ruleset>
      <ruleset name="Black Cat" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Black Cat" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Earth" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Cat" />
      </ruleset>
    </group>
    <group name="Earth Teams" comment="Earth based teams.">
      <filtersanddefaults rulesetmode="AND" />
      <group name="X-Men">
        <filtersanddefaults rulesetmode="AND" />
        <group name="Teams">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="X-Men Series" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Astonishing X-Men||All-New X-Men||Uncanny X-Men||X-Men||Age of X" />
            <rule field="Series" modifier="NotContainsAnyOf" value="Wolverine||inhumans||Avengers" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Men" />
          </ruleset>
          <ruleset name="New Mutants" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="New Mutants" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="New Mutants" />
          </ruleset>
          <ruleset name="X-Factor" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-Factor" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Factor" />
          </ruleset>
          <ruleset name="XSE" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Is" value="XSE" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Xavier's Security Enforcers" />
          </ruleset>
          <ruleset name="Exiles" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="The all new exiles||exiled" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Exiles" />
          </ruleset>
          <ruleset name="X-Force" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-Force" />
            <rule field="Series" modifier="NotContainsAnyOf" value="Cable||deadpool" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Force" />
          </ruleset>
          <ruleset name="X-Babies" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-Babies" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Babies" />
          </ruleset>
          <ruleset name="X-Campus" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-Campus" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Campus" />
          </ruleset>
          <ruleset name="A Force" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="A Force||A-Force" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Teams" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="A-Force" />
          </ruleset>
        </group>
        <group name="Solo">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Jubilee" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Jubilee" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Jubilee" />
          </ruleset>
          <ruleset name="Magik" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Magik" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Magik" />
          </ruleset>
          <ruleset name="Bishop" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Bishop" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Bishop" />
          </ruleset>
          <ruleset name="Beast" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Beast" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Beast" />
          </ruleset>
          <ruleset name="Firestar" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Firestar" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Firestar" />
          </ruleset>
          <ruleset name="Cloak and Dagger" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Cloak and Dagger" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Cloak and Dagger" />
          </ruleset>
          <ruleset name="Genesis" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Genesis" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Genesis" />
          </ruleset>
          <ruleset name="Namor" rulesetmode="AND">
            <rule field="Publisher" modifier="IsAnyOf" value="Marvel||timely" />
            <rule field="Series" modifier="ContainsAnyOf" value="Namor||Sub-Mariner" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Namro" />
            <action field="Publisher" modifier="SetValue" value="Marvel" />
          </ruleset>
          <ruleset name="X-Man" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-Man" />
            <rule field="Series" modifier="NotContainsAnyOf" value="Bishop" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Man" />
          </ruleset>
          <ruleset name="Sabretooth" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Sabretooth" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Sabretooth" />
          </ruleset>
          <ruleset name="Mystique" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Mystique" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Mystique" />
          </ruleset>
          <ruleset name="Juggernaut" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Juggernaut" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Juggernaut" />
          </ruleset>
          <ruleset name="Archangel" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Archangel" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Archangel" />
          </ruleset>
          <ruleset name="Quicksilver" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Quicksilver" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Quicksilver" />
          </ruleset>
          <ruleset name="Iceman" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Iceman" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Iceman" />
          </ruleset>
          <ruleset name="Psylocke" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Psylocke" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Psylocke" />
          </ruleset>
          <ruleset name="X-Termination" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Is" value="X-Termination" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Men" />
          </ruleset>
          <ruleset name="X-Women" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Is" value="X-Women" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-Men" />
          </ruleset>
          <ruleset name="Apocalypse" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Apocalypse" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Apocalypse" />
          </ruleset>
          <ruleset name="Storm" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Storm||Amazon" />
            <rule field="Series" modifier="NotContains" value="Star Wars" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Storm" />
          </ruleset>
          <ruleset name="Nightcrawler" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Nightcrawler" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Nightcrawler" />
          </ruleset>
          <ruleset name="Longshot" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Longshot" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Longshot" />
          </ruleset>
          <ruleset name="Deadpool" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Deadpool" />
            <rule field="Series" modifier="NotContainsAnyOf" value="Wolverine||Hawkeye" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Deadpool" />
          </ruleset>
          <ruleset name="Gambit" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Gambit" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Gambit" />
          </ruleset>
          <ruleset name="Magneto" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Magneto" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Magneto" />
          </ruleset>
          <ruleset name="Hope" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Generation Hope" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Hope" />
          </ruleset>
          <ruleset name="Cyclops" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Cyclops" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Cyclops" />
          </ruleset>
          <ruleset name="Emma Frost" rulesetmode="AND">
            <rule field="Publisher" modifier="Contains" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Emma Frost" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Emma Frost" />
          </ruleset>
          <ruleset name="Wolverine" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Wolverine||Origin II||Weapon X||Logan" />
            <rule field="Series" modifier="NotContainsAnyOf" value="atlas" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Wolverine" />
          </ruleset>
          <ruleset name="X-23" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-23" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-23" />
          </ruleset>
          <ruleset name="X-51" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="X-51" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="X-51" />
          </ruleset>
          <ruleset name="Daken" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Daken||Dark Wolverine" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Daken" />
          </ruleset>
          <ruleset name="Cable" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Cable||Soldier X" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Cable" />
          </ruleset>
          <ruleset name="Jean Grey" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Jean Grey||Phoenix" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Jean Grey" />
          </ruleset>
          <ruleset name="Legion" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Legion" />
            <rule field="Series" modifier="NotContains" value="Legion of the night" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Legion" />
          </ruleset>
          <ruleset name="Havok" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="ContainsAnyOf" value="Havok||Mutant X" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Havok" />
          </ruleset>
          <ruleset name="Agent X" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Agent X" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Agent X" />
          </ruleset>
          <ruleset name="Colossus" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Colossus" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Colossus" />
          </ruleset>
          <ruleset name="Domino" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Domino" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Domino" />
          </ruleset>
          <ruleset name="Dazzler" rulesetmode="AND">
            <rule field="Publisher" modifier="Is" value="Marvel" />
            <rule field="Series" modifier="Contains" value="Dazzler" />
            <action field="First Series" modifier="SetValue" value="Earth Teams" />
            <action field="Second Series" modifier="SetValue" value="Solo" />
            <action field="SeriesGroup" modifier="SetValue" value="X-Men" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Dazzler" />
          </ruleset>
        </group>
      </group>
      <group name="Avengers">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Avengers" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Avengers||AAFES" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Avengers" />
        </ruleset>
        <ruleset name="A-Next" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="A-Next" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="A-Next" />
        </ruleset>
        <ruleset name="Alpha Flight" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Alpha Flight" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Alpha Flight" />
        </ruleset>
        <ruleset name="A+X" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="A+X||AVX" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="A+X" />
        </ruleset>
        <ruleset name="A-Force" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="A-Force" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="A-Force" />
        </ruleset>
        <ruleset name="AAFES" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="AAFES" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Avengers" />
        </ruleset>
        <ruleset name="Age of Heroes" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Age of Heroes" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Age of Heroes" />
        </ruleset>
        <ruleset name="Ultimates" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Ultimates" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="NotContains" value="Cataclysm" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Ultimates" />
        </ruleset>
        <ruleset name="Marvel Now" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="All-New Marvel Now!" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Marvel Now" />
        </ruleset>
        <ruleset name="New Warriors" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="New Warriors" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="New Warriors" />
        </ruleset>
        <ruleset name="Marvel Tales" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Marvel Tales" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Avengers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Marvel Tales" />
        </ruleset>
      </group>
      <group name="Fantastic Four">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="The Human Torch" rulesetmode="AND">
          <rule field="Publisher" modifier="ContainsAnyOf" value="Marvel||Timely" />
          <rule field="Series" modifier="ContainsAnyOf" value="The Human Torch||the Torch||Human Torch" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Fantastic Four" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Human Torch" />
          <action field="Publisher" modifier="SetValue" value="Marvel" />
        </ruleset>
        <ruleset name="The Thing" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="The Thing||thing classic" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Fantastic Four" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Thing" />
        </ruleset>
        <ruleset name="Doom" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Doom" />
          <rule field="Series" modifier="NotContainsAnyOf" value="Doomsday||doombringer" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Fantastic Four" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Doom" />
        </ruleset>
        <ruleset name="Fantastic Four" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Fantastic Four||Marvel KNights||marvel two-in-one" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Fantastic Four" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Fantastic Four" />
        </ruleset>
      </group>
      <group name="S.H.I.E.L.D.">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="S.H.I.E.L.D." rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="S.H.I.E.L.D.||Battle Scars" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
        </ruleset>
        <ruleset name="Peggy Carter" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Peggy Carter||Operation: S.I.N." />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Peggy Carter" />
        </ruleset>
        <ruleset name="Nick Fury" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Nick Fury||Secret Warriors" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Nick Fury" />
        </ruleset>
        <ruleset name="Damage Control" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Is" value="Damage Control" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Damage Control" />
        </ruleset>
        <ruleset name="Hawkeye" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Hawkeye" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hawkeye" />
        </ruleset>
        <ruleset name="Black Widow" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Black Widow" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Widow" />
        </ruleset>
        <ruleset name="Mockingbird" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Mockingbird" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="S.H.I.E.L.D." />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Mockingbird" />
        </ruleset>
      </group>
      <group name="Defenders">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Defenders" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Defenders" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Defenders" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Defenders" />
        </ruleset>
        <ruleset name="Fearless Defenders" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Fearless Defenders" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Defenders" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Fearless Defenders" />
        </ruleset>
      </group>
      <group name="Inhumans">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Inhumans" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="ContainsAnyOf" value="Inhumans||Inhuman||Inhumanity" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Inhumans" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Inhumans" />
        </ruleset>
        <ruleset name="IvX" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Is" value="IvX" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Inhumans" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="IvX" />
        </ruleset>
        <ruleset name="Black Bolt" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Black Bolt" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Inhumans" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Black Bolt" />
        </ruleset>
        <ruleset name="Lockjaw" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Is" value="Lockjaw" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Inhumans" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Lockjaw" />
        </ruleset>
      </group>
      <group name="Thunderbolts">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Thunderbolts" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Thunderbolts" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Thunderbolts" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Thunderbolts" />
        </ruleset>
        <ruleset name="Atlas" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Atlas" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Thunderbolts" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Atlas" />
        </ruleset>
      </group>
      <group name="The Order">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="The Order" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="The Order" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="The Order" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="The Order" />
        </ruleset>
      </group>
      <group name="Squadron Supreme">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Hyperion" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Hyperion" />
          <action field="SeriesGroup" modifier="SetValue" value="Squadron Supreme" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Hyperion" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="second series" modifier="SetValue" value="" />
        </ruleset>
        <ruleset name="Nighthawk" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Nighthawk" />
          <action field="SeriesGroup" modifier="SetValue" value="Squadron Supreme" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Nighthawk" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="second series" modifier="SetValue" value="" />
        </ruleset>
        <ruleset name="Doctor Spectrum" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Doctor Spectrum" />
          <action field="SeriesGroup" modifier="SetValue" value="Squadron Supreme" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Doctor Spectrum" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="second series" modifier="SetValue" value="" />
        </ruleset>
        <ruleset name="Power Princess" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Power Princess" />
          <action field="SeriesGroup" modifier="SetValue" value="Squadron Supreme" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Power Princess" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="second series" modifier="SetValue" value="" />
        </ruleset>
        <ruleset name="Whizzer" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Whizzer" />
          <action field="SeriesGroup" modifier="SetValue" value="Squadron Supreme" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Whizzer" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="second series" modifier="SetValue" value="" />
        </ruleset>
        <ruleset name="Squadron Supreme" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="Squadron Supreme" />
          <action field="SeriesGroup" modifier="SetValue" value="Squadron Supreme" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Squadron Supreme" />
          <action field="First Series" modifier="SetValue" value="Earth Teams" />
          <action field="second series" modifier="SetValue" value="" />
        </ruleset>
      </group>
      <ruleset name="The Champions" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Champions" />
        <rule field="Series" modifier="NotContainsAnyOf" value="contest||gambit||x-force||Hulk||thor" />
        <action field="First Series" modifier="SetValue" value="Earth Teams" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="First Series" modifier="SetValue" value="Squadron Supreme" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Champions" />
      </ruleset>
    </group>
    <group name="One Offs" comment="Crossovers, Switch-Ups, One Offs">
      <filtersanddefaults rulesetmode="AND" />
      <group name="Crossovers" comment="Character crossovers">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="100 Greatest" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="100 Greatest" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="First Series" modifier="SetValue" value="One Offs" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="100 Greatest" />
        </ruleset>
        <ruleset name="A year of marvel" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Contains" value="A year of marvel" />
          <action field="First Series" modifier="SetValue" value="One Offs" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="A Year Of Marvel" />
        </ruleset>
      </group>
      <group name="Switch-Ups" comment="Comics that switch characters">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Marvel Vision" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="Marvel Vision" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="First Series" modifier="SetValue" value="One Offs" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Switch-Ups" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Marvel Vision" />
        </ruleset>
        <ruleset name="Astonishing Tales" rulesetmode="AND">
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="Series" modifier="Is" value="Astonishing Tales" />
          <action field="First Series" modifier="SetValue" value="One Offs" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="Switch-Ups" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Astonishing Tales" />
        </ruleset>
      </group>
      <group name="One Offs1" comment="One Off limited series">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="5 Ronin" rulesetmode="AND">
          <rule field="Series" modifier="Contains" value="5 ronin" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="First Series" modifier="SetValue" value="One Offs" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="SeriesGroup" modifier="SetValue" value="One Offs" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="5 Ronin" />
        </ruleset>
      </group>
    </group>
    <group name="Crossovers" comment="Major event crossovers">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Contest of Champions" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="contest of champions" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Contest of Champions" />
      </ruleset>
      <ruleset name="Annihilation" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Annihilation" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Annihilation" />
      </ruleset>
      <ruleset name="Civil War" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Civil War" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="NotContains" value="Civil War II" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Civil War" />
      </ruleset>
      <ruleset name="Fear Itself" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Fear Itself" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Fear Itself" />
      </ruleset>
      <ruleset name="Secret Wars" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Secret Wars" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Secret Wars" />
      </ruleset>
      <ruleset name="Axis" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Axis" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Axis" />
      </ruleset>
      <ruleset name="Dark Reign" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Dark Reign" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Dark Reign" />
      </ruleset>
      <ruleset name="Civil War II" rulesetmode="AND">
        <rule field="Series" modifier="Contains" value="Civil War II" />
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Civil War II" />
      </ruleset>
      <ruleset name="Chaos war" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="ContainsAnyOf" value="Chaos War" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="SeriesGroup" modifier="SetValue" value="Crossovers" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Chaos war" />
      </ruleset>
    </group>
    <group name="Multiverse" comment="Alternate Universes">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Earth-1610 (Ultimate)" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="StartsWithAnyOf" value="Ultimate||Ultimates||Ultimatum||The Ultimates||All-New Ultimates" />
        <action field="Universe" modifier="SetValue" value="Earth-1610 (Ultimate)" />
        <action field="Tags" modifier="Add" value="Universe" />
        <action field="Tags" modifier="Remove" value="Alternate Universes" />
        <action field="Not Universe" modifier="SetValue" value="" />
      </ruleset>
      <ruleset name="Earth-90214 (Noir)" rulesetmode="AND">
        <rule field="Publisher" modifier="Is" value="Marvel" />
        <rule field="Series" modifier="Contains" value="Noir" />
        <action field="Universe" modifier="SetValue" value="Earth-90214 (Noir)" />
        <action field="Tags" modifier="Add" value="Universe" />
        <action field="Tags" modifier="Remove" value="Alternate Universes" />
        <action field="Not Universe" modifier="SetValue" value="" />
      </ruleset>
    </group>
  </group>
  <group name="Star Wars" comment="https://starwars.fandom.com/wiki/Timeline_of_canon_comics + https://starwars.fandom.com/wiki/Timeline_of_Legends_comics + https://starwars.fandom.com/wiki/Timeline_of_galactic_history">
    <filtersanddefaults rulesetmode="AND" />
    <group name="1 - Prehistory" comment="Eons - 25 millennia BBY">
      <filtersanddefaults rulesetmode="AND" />
    </group>
    <group name="2 - The Old Republic" comment="c. 25 millennia BBY - c. 1000 BBY">
      <filtersanddefaults rulesetmode="AND" />
      <group name="2.1 - Ancient beginnings" comment="c. 25000 BBY - c. 5000 BBY">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Dawn of the Jedi: Force Storm" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Dawn of the Jedi - Force Storm" />
          <action field="SeriesGroup" modifier="SetValue" value="2 - The Old Republic" />
          <action field="First Series" modifier="SetValue" value="2.1 - Ancient beginnings" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="25793 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Dawn of the Jedi: Prisoner of Bogan" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Dawn of the Jedi - The Prisoner Of Bogan" />
          <action field="SeriesGroup" modifier="SetValue" value="2 - The Old Republic" />
          <action field="First Series" modifier="SetValue" value="2.1 - Ancient beginnings" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="25793 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Dawn of the Jedi: Force War" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Dawn of the Jedi - Force War" />
          <action field="SeriesGroup" modifier="SetValue" value="2 - The Old Republic" />
          <action field="First Series" modifier="SetValue" value="2.1 - Ancient beginnings" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="25793 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <group name="2.2 - Fall of the Old Republic" comment="c. 5000 BBY - c. 1000 BBY">
        <filtersanddefaults rulesetmode="AND" />
        <group name="2.2.1 - Battles with the Jedi" comment="c. 5000 BBY- c. 1000 BBY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Knights of the Old Republic" rulesetmode="AND">
            <rule field="Series" modifier="StartsWith" value="Star Wars: Knights of the Old Republic" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="2 - The Old Republic" />
            <action field="First Series" modifier="SetValue" value="2.2 - Fall of the Old Republic" />
            <action field="Second Series" modifier="SetValue" value="2.2.1 - Battles with the Jedi" />
            <action field="BBY" modifier="SetValue" value="3964 BBY - 3962 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Tales of the Jedi: The Freedon Nadd" rulesetmode="AND">
            <rule field="Series" modifier="StartsWith" value="Star Wars: Tales of the Jedi: The Freedon Nadd" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="2 - The Old Republic" />
            <action field="First Series" modifier="SetValue" value="2.2 - Fall of the Old Republic" />
            <action field="Second Series" modifier="SetValue" value="2.2.1 - Battles with the Jedi" />
            <action field="BBY" modifier="SetValue" value="3998 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Tales of the Jedi - Dark Lords of the Sith" rulesetmode="AND">
            <rule field="Series" modifier="StartsWith" value="Star Wars: Tales of the Jedi - Dark Lords of the Sith" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="2 - The Old Republic" />
            <action field="First Series" modifier="SetValue" value="2.2 - Fall of the Old Republic" />
            <action field="Second Series" modifier="SetValue" value="2.2.1 - Battles with the Jedi" />
            <action field="BBY" modifier="SetValue" value="3997 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <group name="2.2.2 - Dark Age" comment="c. 1000 BBY">
          <filtersanddefaults rulesetmode="AND" />
        </group>
      </group>
    </group>
    <group name="3 - Republic Era" comment="c. 1000 BBY - 19 BBY">
      <filtersanddefaults rulesetmode="AND" />
      <group name="3.1 - Rise of the Republic" comment="c. 1000 BBY - c. 300 BBY">
        <filtersanddefaults rulesetmode="AND" />
      </group>
      <group name="3.2 - High Republic Era" comment="c. 300 BBY - 32 BBY">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Star Wars" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <rule field="comicvine_volume" modifier="Is" value="11246" />
          <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
          <action field="First Series" modifier="SetValue" value="3.2 - High Republic Era" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="33 ABY - 30 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <group name="3.3 - Fall of the Republic" comment="32 BBY - 19 BBY">
        <filtersanddefaults rulesetmode="AND" />
        <group name="3.3.1 - Prelude to Galactic War" comment="32 BBY - 22 BBY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Star Wars: Zam Wesell" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: Zam Wesell" />
            <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
            <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
            <action field="Second Series" modifier="SetValue" value="3.3.1 - Prelude to Galactic War" />
            <action field="BBY" modifier="SetValue" value="27 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: Darth Maul" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: Darth Maul" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
            <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
            <action field="Second Series" modifier="SetValue" value="3.3.1 - Prelude to Galactic War" />
            <action field="BBY" modifier="SetValue" value="32.5 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Manga Star Wars: The Phantom Menace" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Manga Star Wars: The Phantom Menace" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
            <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
            <action field="Second Series" modifier="SetValue" value="3.3.1 - Prelude to Galactic War" />
            <action field="BBY" modifier="SetValue" value="32 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <group name="3.3.2 - Clone Wars" comment="22 BBY - 19 BBY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Star Wars: Clone Wars" rulesetmode="AND">
            <rule field="Series" modifier="IsAnyOf" value="Star Wars: Clone Wars||Star Wars: Clone Wars Adventures" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
            <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
            <action field="Second Series" modifier="SetValue" value="3.3.2 - Clone Wars" />
            <action field="BBY" modifier="SetValue" value="22 BBY - 19 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: General Grievous" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: General Grievous" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
            <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
            <action field="Second Series" modifier="SetValue" value="3.3.2 - Clone Wars" />
            <action field="BBY" modifier="SetValue" value="21 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: Obsession" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: Obsession" />
            <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
            <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
            <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
            <action field="Second Series" modifier="SetValue" value="3.3.2 - Clone Wars" />
            <action field="BBY" modifier="SetValue" value="20 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <ruleset name="Star Wars: Republic" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Republic" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
          <action field="First Series" modifier="SetValue" value="3.3 - Fall of the Republic" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="33 BBY - 19 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Age of Republic" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Age of Republic" />
          <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
          <action field="First Series" modifier="SetValue" value="" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="42 BBY - 19 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <ruleset name="Star Wars: Age of Republic" rulesetmode="AND">
        <rule field="Series" modifier="StartsWith" value="Star Wars: Age of Republic" />
        <action field="SeriesGroup" modifier="SetValue" value="3 - Republic Era" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="42 BBY - 19 BBY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
    </group>
    <group name="4 - Imperial Era" comment="19 BBY - 5 ABY">
      <filtersanddefaults rulesetmode="AND" />
      <group name="4.1 - The Dark Times" comment="19 BBY - 0 BBY">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Solo: A Star Wars Story Adaptation" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Solo: A Star Wars Story Adaptation" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="13 BBY - 10 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Crimson Empire" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Crimson Empire" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="13 BBY - 11 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Dark Times" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Dark Times" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="19 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Droids " rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: Droids||Star Wars: Droids: Special" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="5 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Empire" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Empire" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="1 BBY - 0 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Jabba the Hutt - Betrayal" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: Jabba the Hutt - Betrayal||Star Wars: Jabba the Hutt: The Hunger of Princess Nampi" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="5 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="1 BBY" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: Underworld - The Yavin Vassilika||Star Wars Adventures: Han Solo and the Hollow Moon of Khorya" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="1 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="2 BBY" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars Infinities: Visions of the Blade" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="2 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="19 BBY" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars Visionaries" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="19 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="10 BBY" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: Beckett" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="10 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="3 BBY" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: Boba Fett - Enemy of the Empire" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.1 - The Dark Times" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="3 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <group name="4.2 - Battle of Yavin" comment="0 BBY">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Star Wars: Vader Down" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Vader Down" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars 3-D" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars 3-D" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Darth Vader" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Darth Vader" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Rebellion" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Rebellion" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Droids " rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Droids" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 BBY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="0 ABY" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Manga Star Wars: A New Hope||Marvel Illustrated Books: Star Wars||Star Wars: A New Hope" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <group name="4.3 - Galactic Civil War" comment="0 BBY - 5 ABY">
        <filtersanddefaults rulesetmode="AND" />
        <group name="4.3.1 -  Renewed hope" comment="0 BBY - 2 ABY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Star Wars: Vader: Dark Visions" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: Vader: Dark Visions" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.1 -  Renewed hope" />
            <action field="BBY" modifier="SetValue" value="2 BBY - 0 BBY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars Adventures: Princess Leia and the Royal Ransom" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars Adventures: Princess Leia and the Royal Ransom" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.1 -  Renewed hope" />
            <action field="BBY" modifier="SetValue" value="2 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <group name="4.3.2 - Empire ascendant" comment="3 ABY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Star Wars: The Empire Strikes Back" rulesetmode="AND">
            <rule field="Series" modifier="IsAnyOf" value="Manga Star Wars: The Empire Strikes Back||Star Wars Adventures: Luke Skywalker And The Treasure Of The Dragonsnakes||Star Wars Adventures: The Will Of Darth Vader||Star Wars: A Valentine Story||Star Wars: Battle of the Bounty Hunters" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.2 - Empire ascendant" />
            <action field="BBY" modifier="SetValue" value="3 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <group name="4.3.3 - Return of the Jedi" comment="4 ABY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Star Wars: X-Wing: Rogue Leader" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: X-Wing: Rogue Leader" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.3 - Return of the Jedi" />
            <action field="BBY" modifier="SetValue" value="4 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: Return of the Jedi" rulesetmode="AND">
            <rule field="Series" modifier="IsAnyOf" value="Star Wars: Return of the Jedi||Manga Star Wars: Return of the Jedi||Star Wars X-Wing Rogue Squadron: The Phantom Affair" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.3 - Return of the Jedi" />
            <action field="BBY" modifier="SetValue" value="4 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <group name="4.3.4 - Fall of the Empire" comment="4 ABY - 5 ABY">
          <filtersanddefaults rulesetmode="AND" />
          <ruleset name="Star Wars Handbook: X-Wing Rogue Squadron" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars Handbook" />
            <rule field="Title" modifier="Contains" value="X-Wing Rogue Squadron" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.4 - Fall of the Empire" />
            <action field="BBY" modifier="SetValue" value="3 ABY - 4 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: Mara Jade – By the Emperor's Hand" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Star Wars: Mara Jade - By the Emperor's Hand" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.4 - Fall of the Empire" />
            <action field="BBY" modifier="SetValue" value="4 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: X-Wing Rogue Squadron" rulesetmode="AND">
            <rule field="Series" modifier="StartsWith" value="Star Wars: X-Wing Rogue Squadron" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.4 - Fall of the Empire" />
            <action field="BBY" modifier="SetValue" value="4 ABY - 5 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
          <ruleset name="Star Wars: Shattered Empire" rulesetmode="AND">
            <rule field="Series" modifier="Is" value="Journey to Star Wars: The Force Awakens - Shattered Empire" />
            <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
            <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
            <action field="Second Series" modifier="SetValue" value="4.3.4 - Fall of the Empire" />
            <action field="BBY" modifier="SetValue" value="4 ABY - 5 ABY" />
            <action field="IsStarWars" modifier="SetValue" value="yes" />
            <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
          </ruleset>
        </group>
        <ruleset name="Star Wars: Doctor Aphra" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Doctor Aphra" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY - 3 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="comicvine_volume" modifier="Is" value="79398" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="3 ABY - 4 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars Annual" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars Annual" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="comicvine_volume" modifier="Is" value="86555" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY - 3 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars Director's Cut" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars Director's Cut" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="3 ABY - 4 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: Darth Vader" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars: Darth Vader" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="comicvine_volume" modifier="Is" value="124821" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.2 - Battle of Yavin" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="3 ABY - 4 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars (1977)" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars" />
          <rule field="Publisher" modifier="Is" value="Marvel" />
          <rule field="comicvine_volume" modifier="IsAnyOf" value="2914||3013" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 BBY - 5 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars Saga" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars Saga" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY - 3 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Classic Star Wars (Dark Horse)" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Classic Star Wars" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY - 3 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars Adventures Annual" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars Adventures Annual " />
          <rule field="Publisher" modifier="Is" value="IDW Publishing" />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY - 3 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars: A Long Time Ago..." rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: A Long Time Ago..." />
          <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
          <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="0 ABY - 3 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <ruleset name="Star Wars: Age of Rebellion" rulesetmode="AND">
        <rule field="Series" modifier="StartsWith" value="Star Wars: Age of Rebellion" />
        <action field="SeriesGroup" modifier="SetValue" value="4 - Imperial Era" />
        <action field="First Series" modifier="SetValue" value="4.3 - Galactic Civil War" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="12 BBY - 5 ABY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
    </group>
    <group name="5 - New Republic Era" comment="4 ABY - 25 ABY">
      <filtersanddefaults rulesetmode="AND" />
      <group name="5.1 - Peace" comment="5 ABY - 28 ABY">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Star Wars Handbook: Crimson Empire" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars Handbook" />
          <rule field="Title" modifier="Is" value="Crimson Empire" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.1 - Peace" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="11 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars Handbook: Dark Empire" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars Handbook" />
          <rule field="Title" modifier="Is" value="Dark Empire" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.1 - Peace" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="10 ABY - 11 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Dark Empire" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Dark Empire" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.1 - Peace" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="10 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Dark Force Rising" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Dark Force Rising" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.1 - Peace" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="9 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Star Wars - The Protocol Offensive" rulesetmode="AND">
          <rule field="Series" modifier="Is" value="Star Wars - The Protocol Offensive" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.1 - Peace" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="5.5 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
        <ruleset name="Dark Empire" rulesetmode="AND">
          <rule field="Series" modifier="IsAnyOf" value="Star Wars: Boba Fett||Star Wars: Boba Fett - Death, Lies, &amp; Treachery" />
          <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.1 - Peace" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="10 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
      <group name="5.2 - Cold War" comment="29 ABY 34 ABY">
        <filtersanddefaults rulesetmode="AND" />
        <ruleset name="Star Wars: Age of Resistance" rulesetmode="AND">
          <rule field="Series" modifier="StartsWith" value="Star Wars: Age of Resistance" />
          <action field="SeriesGroup" modifier="SetValue" value="5 - New Republic Era" />
          <action field="First Series" modifier="SetValue" value="5.2 - Cold War" />
          <action field="Second Series" modifier="SetValue" value="" />
          <action field="BBY" modifier="SetValue" value="29 ABY - 34 ABY" />
          <action field="IsStarWars" modifier="SetValue" value="yes" />
          <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
        </ruleset>
      </group>
    </group>
    <group name="6 - The New Jedi Order era" comment="25 ABY - 37 ABY">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Star Wars: Poe Dameron" rulesetmode="AND">
        <rule field="Series" modifier="StartsWith" value="Star Wars: Poe Dameron" />
        <action field="SeriesGroup" modifier="SetValue" value="6 - The New Jedi Order era" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="32 ABY - 34 ABY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
      <ruleset name="Journey to Star Wars: The Last Jedi - Captain Phasma" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Journey to Star Wars: The Last Jedi - Captain Phasma" />
        <action field="SeriesGroup" modifier="SetValue" value="6 - The New Jedi Order era" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="34 ABY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
      <ruleset name="Journey To Star Wars: The Rise of Skywalker - Allegiance" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Journey To Star Wars: The Rise of Skywalker - Allegiance" />
        <action field="SeriesGroup" modifier="SetValue" value="6 - The New Jedi Order era" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="34 ABY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
    </group>
    <group name="7 - The Legacy era" comment="37 ABY - 140 ABY">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Star Wars Legacy: The Hidden Temple" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Star Wars Legacy" />
        <rule field="Title" modifier="Contains" value="The Hidden Temple" />
        <action field="SeriesGroup" modifier="SetValue" value="7  - The Legacy Era" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="137 ABY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
      <ruleset name="Star Wars: Legacy" rulesetmode="AND">
        <rule field="Series" modifier="IsAnyOf" value="Star Wars: Legacy||Star Wars: Legacy - War" />
        <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
        <action field="SeriesGroup" modifier="SetValue" value="7  - The Legacy Era" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="130 ABY - 138 ABY" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
    </group>
    <group name="8 - Infinities">
      <filtersanddefaults rulesetmode="AND" />
      <ruleset name="Tales" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Star Wars Tales" />
        <rule field="Publisher" modifier="Is" value="Dark Horse Comics" />
        <action field="SeriesGroup" modifier="SetValue" value="8 - Infinites" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
      <ruleset name="Infinites" rulesetmode="AND">
        <rule field="Series" modifier="IsAnyOf" value="Sergio Aragonés Stomps Star Wars" />
        <action field="SeriesGroup" modifier="SetValue" value="8 - Infinites" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
      <ruleset name="Manga" rulesetmode="AND">
        <rule field="Series" modifier="Is" value="Star Wars" />
        <rule field="Title" modifier="IsAnyOf" value="Silver||Black" />
        <action field="SeriesGroup" modifier="SetValue" value="8 - Infinites" />
        <action field="First Series" modifier="SetValue" value="" />
        <action field="Second Series" modifier="SetValue" value="" />
        <action field="BBY" modifier="SetValue" value="" />
        <action field="IsStarWars" modifier="SetValue" value="yes" />
        <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
      </ruleset>
    </group>
    <ruleset name="Star Wars Insider" rulesetmode="AND">
      <rule field="Series" modifier="Contains" value="Star Wars Insider" />
      <action field="SeriesGroup" modifier="SetValue" value="0 - Non-Fiction" />
      <action field="First Series" modifier="SetValue" value="" />
      <action field="Second Series" modifier="SetValue" value="" />
      <action field="BBY" modifier="SetValue" value="" />
      <action field="IsStarWars" modifier="SetValue" value="yes" />
      <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
    </ruleset>
    <ruleset name="Star Wars Legends Epic Collection" rulesetmode="AND">
      <rule field="Series" modifier="StartsWith" value="Star Wars Legends Epic Collection: " />
      <action field="SeriesGroup" modifier="SetValue" value="9 - Star Wars Legends Epic Collection" />
      <action field="First Series" modifier="SetValue" value="" />
      <action field="Second Series" modifier="SetValue" value="" />
      <action field="BBY" modifier="SetValue" value="" />
      <action field="IsStarWars" modifier="SetValue" value="yes" />
      <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
    </ruleset>
    <ruleset name="The Art of ..." rulesetmode="AND">
      <rule field="Series" modifier="IsAnyOf" value="The Art of Rogue One: A Star Wars Story||The Art of Solo: A Star Wars Story||The Art of Star Wars: The Last Jedi" />
      <action field="SeriesGroup" modifier="SetValue" value="0 - Non-Fiction" />
      <action field="First Series" modifier="SetValue" value="" />
      <action field="Second Series" modifier="SetValue" value="" />
      <action field="BBY" modifier="SetValue" value="" />
      <action field="IsStarWars" modifier="SetValue" value="yes" />
      <action field="MainCharacterOrTeam" modifier="SetValue" value="Star Wars" />
    </ruleset>
  </group>
  <group name="Formats">
    <filtersanddefaults rulesetmode="AND" />
    <ruleset name="Director's Cut" comment="Adds format of Director's Cut based on rules" rulesetmode="OR">
      <rule field="Series" modifier="ContainsAnyOf" value="Directors cut" />
      <rule field="Series" modifier="ContainsAnyOf" value="Director's Cut" />
      <rule field="Title" modifier="ContainsAnyOf" value="Directors cut" />
      <rule field="Title" modifier="ContainsAnyOf" value="Director's Cut" />
      <action field="Format" modifier="SetValue" value="Director's Cut" />
    </ruleset>
    <ruleset name="Annual" comment="Adds format of Annual based on rules" rulesetmode="OR">
      <rule field="Series" modifier="Contains" value="Annual" />
      <rule field="Title" modifier="Contains" value="Annual" />
      <rule field="FileName" modifier="Contains" value="Annual" />
      <action field="Format" modifier="SetValue" value="Annual" />
    </ruleset>
    <ruleset name="Original: Black &amp; White" comment="Adds format of Black and White based on file names" rulesetmode="OR">
      <rule field="FileName" modifier="ContainsAnyOf" value="Black &amp; White" />
      <rule field="FileName" modifier="Contains" value="Black&amp;White" />
      <rule field="FileName" modifier="ContainsAnyOf" value="Black and White" />
      <rule field="FileName" modifier="Contains" value="b&amp;w" />
      <action field="Format" modifier="SetValue" value="Black &amp; White" />
      <action field="Original Format" modifier="SetValue" value="Black &amp; White" />
    </ruleset>
    <ruleset name="Original: One-Shot" comment="Adds format of One-Shot based on file names" rulesetmode="OR">
      <rule field="FileName" modifier="Contains" value="One-Shot" />
      <rule field="FileName" modifier="Contains" value="OneShot" />
      <rule field="FileName" modifier="ContainsAnyOf" value="One Shot" />
      <action field="Format" modifier="SetValue" value="One-Shot" />
      <action field="Original Format" modifier="SetValue" value="One-Shot" />
      <action field="SeriesComplete" modifier="SetValue" value="Yes" />
    </ruleset>
    <ruleset name="Original: Director's Cut" comment="Adds format of Director's Cut based on file names" rulesetmode="OR">
      <rule field="FileName" modifier="ContainsAnyOf" value="Directors cut" />
      <rule field="FileName" modifier="ContainsAnyOf" value="Director's Cut" />
      <action field="Format" modifier="SetValue" value="Director's cut" />
      <action field="Original Format" modifier="SetValue" value="Director's cut" />
    </ruleset>
    <ruleset name="Original: TPB" comment="Adds format of TPB based on file names" rulesetmode="OR">
      <rule field="FileName" modifier="Contains" value="TPB" />
      <rule field="FileName" modifier="ContainsAnyOf" value="Trade Paper Back" />
      <action field="Original Format" modifier="SetValue" value="TPB" />
      <action field="Format" modifier="SetValue" value="TPB" />
    </ruleset>
    <ruleset name="Original: Preview" comment="Adds format of Preview based on file names" rulesetmode="OR">
      <rule field="FileName" modifier="Contains" value="TPB" />
      <action field="Original Format" modifier="SetValue" value="Preview" />
      <action field="Format" modifier="SetValue" value="Preview" />
    </ruleset>
  </group>
  <group name="Publishers to keep">
    <filtersanddefaults rulesetmode="AND" />
    <ruleset name="Publishers" comment="Sets tags for any publishers you want to keep" rulesetmode="AND">
      <rule field="Publisher" modifier="IsAnyOf" value="Amalgam Comics||American Mythology Productions||Avatar Press||Bongo||Boom! Studios||Boom!||Boom! KaBOOM!||Dark Horse Comics||Devil's Due||Disney||Dynamite Entertainment||Icon Comics||IDW Publishing||Image||Legendary Comics||Oni Press||Rebellion||Titan Comics||Top Cow||Valiant||Zenescope Entertainment||Action Lab||AfterShock Comics||Alterna Comics||Antarctic Press||Arcana Comics||Arcana Studio||Aspen Comics||Aspen MLT||Asylum Press||Atlas||Boundless Comics||Caliber Comics||ChapterHouse Comics||Com.x||Comixtribe||Comix tribe||Darby Pop||Delcourt||Europe Comics||Heavy Metal||Hermes Press||Heroic Publishing||Kickstart Comics||Les Humanoïdes Associés||Liquid Comics||Lion Forge Comics||Monkeybrain||NBM||Radical Publishing||Red 5 Comics||Seven Seas Entertainment||Space Goat Productions||Soleil||Thrillbent||TidalWave Productions||Udon||Z2 Comics||monkeybrain comics||black mask studios||Abstract Studio||Archie||Carlsen Comics||Kodansha||Fantagraphics||Archie Comics||Titan Magazines||Viz||Tokyopop||Casterman||Ballantine Books||Blackthorne||Wizard||Hachette||Cross Cult||Topps Comics||Shadowline||Namco Bandai||Magnetic Press||ICG||HarperCollins||Gladstone||First Second Books||Eclipse||Death Rattle||Creator Owned Comics||Dell||Urban Comics||Norma Editorial||Kitchen Sink||Homage Comics||Fleetway||Ediciones Zinco||Abril||Abrams ComicArts||Cinebook" />
      <action field="Tags" modifier="SetValue" value="Publisher" />
    </ruleset>
  </group>
  <group name="Clean-Up">
    <filtersanddefaults rulesetmode="AND" />
    <ruleset name="ADs: NoAds" comment="Tags custom field for noads or C2C depending on file name" rulesetmode="AND">
      <rule field="FileName" modifier="Contains" value="noads" />
      <action field="ADs" modifier="SetValue" value="NoAds" />
    </ruleset>
    <ruleset name="ADs: C2C" comment="Tags custom field for noads or C2C depending on file name" rulesetmode="AND">
      <rule field="FileName" modifier="Contains" value="c2c" />
      <action field="ADs" modifier="SetValue" value="C2C" />
    </ruleset>
    <ruleset name="Marvel/DC: Alternate Universes" comment="Sets any Marvel/DC comic not in the Dat as Alternate Universes  tag." rulesetmode="AND">
      <rule field="Publisher" modifier="ContainsAnyOf" value="Marvel||DC Comics" />
      <rule field="MainCharacterOrTeam" modifier="Is" value="" />
      <rule field="Tags" modifier="NotContains" value="Universe" />
      <action field="Tags" modifier="Add" value="Alternate Universes" />
      <action field="SeriesGroup" modifier="SetValue" value="" />
      <action field="First Series" modifier="SetValue" value="" />
      <action field="Second Series" modifier="SetValue" value="" />
      <action field="Tags" modifier="Remove" value="Publisher" />
    </ruleset>
    <ruleset name="Cleanup: Processed" comment="Sets DataManager_Processed to yes if main charater field is populated" rulesetmode="AND">
      <rule field="MainCharacterOrTeam" modifier="Not" value="" />
      <rule field="Publisher" modifier="ContainsAnyOf" value="Marvel||DC Comics||Dark Horse" />
      <action field="DataManager_Processed" modifier="SetValue" value="Yes" />
      <action field="Tags" modifier="Remove" value="Alternate Universes" />
    </ruleset>
    <ruleset name="Cleanup: Processed" comment="Sets DataManager_Processed to yse if tags contain Non/Publisher" rulesetmode="AND">
      <rule field="Tags" modifier="ContainsAnyOf" value="Alternate Universes||Publisher||Universe" />
      <action field="DataManager_Processed" modifier="SetValue" value="Yes" />
    </ruleset>
    <ruleset name="Cleanup: Star Wars" rulesetmode="AND">
      <rule field="MainCharacterOrTeam" modifier="Is" value="Star Wars" />
      <action field="DataManager_Processed" modifier="SetValue" value="Yes" />
      <action field="Tags" modifier="SetValue" value="Publisher" />
    </ruleset>
    <ruleset name="Cleanup: Comictagger" comment="adds comicvine in place of comictagger" rulesetmode="AND">
      <rule field="Notes" modifier="Contains" value="Issue ID" />
      <action field="Review" modifier="SetValue" value="{Notes}" />
      <action field="Notes" modifier="Remove" value="Issue ID" />
      <action field="Notes" modifier="Replace" value="[ ||Scraped metadata from ComicVine CVDB" />
      <action field="DataManager_Processed" modifier="SetValue" value="" />
    </ruleset>
    <ruleset name="Datamanager: Set it blank" comment="If main character field is blank it resets the procssed field" rulesetmode="AND">
      <rule field="comicvine_issue" modifier="Is" value="" />
      <action field="Datamanager_processed" modifier="SetValue" value="" />
      <action field="MainCharacterOrTeam" modifier="SetValue" value="" />
    </ruleset>
    <ruleset name="Marvel/DC: Alternate Universes" comment="Sets any comic not in the Dat as Alternate Universes  tag" rulesetmode="AND">
      <rule field="Tags" modifier="Contains" value="Non" />
      <action field="Tags" modifier="Replace" value="Non Universe||Alternate Universes" />
    </ruleset>
    <ruleset name="Marvel/DC: Alternate Universes" comment="Sets any comic not in the Dat as Alternate Universes  tag" rulesetmode="AND">
      <rule field="Publisher" modifier="ContainsAnyOf" value="Marvel||DC Comics" />
      <rule field="MainCharacterOrTeam" modifier="Not" value="" />
      <action field="Tags" modifier="Remove" value="Alternate Universes" />
      <action field="Tags" modifier="Remove" value="Publisher" />
    </ruleset>
  </group>
  <group name="Custom Fixs">
    <filtersanddefaults rulesetmode="AND">
      <rule field="comicvine_issue" modifier="Is" value="" />
      <rule field="Notes" modifier="Contains" value="CVDB" />
      <action field="comicvine_issue" modifier="SetValue" value="0000" />
      <action field="Notes" modifier="Add" value="" />
      <action field="Notes" modifier="Add" value="[DB reset. comicvine_issue data set to 0000]" />
    </filtersanddefaults>
  </group>
  <group name="Donald Duck">
    <filtersanddefaults rulesetmode="AND" />
    <ruleset name="Don Rosa" rulesetmode="AND">
      <rule field="Writer" modifier="Contains" value="Don Rosa" />
      <action field="SeriesGroup" modifier="SetValue" value="Don Rosa" />
    </ruleset>
  </group>
  <disabled name="Disabled" comment="Disabled Groups and Rulesets">
    <filtersanddefaults rulesetmode="AND" />
    <ruleset name="Cleanup: Testing " comment="testing adding custom fields to notes and back" rulesetmode="AND">
      <rule field="Notes" modifier="NotRegEx" value="(?&lt;First Series&gt;^\w+( \w+)*$)" />
      <action field="Notes" modifier="Add" value="First Series:" />
      <action field="First Series" modifier="RegExVarAppend" value="(?&lt;Notes&gt;^\w+( \w+)*$)" />
    </ruleset>
    <ruleset name="Cleanup: Annual" comment=" remove annual from series name" rulesetmode="AND">
      <rule field="Format" modifier="Is" value="Annual" />
      <action field="Series" modifier="Remove" value="Annual" />
    </ruleset>
  </disabled>
</collection>