it should be ignored)',
        Config      => {
            XMLInput => '<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Application">
    <Setting Name="Test1" Required="1" Valid="1">
        <Description Translatable="1">Test 1.</Description>
        <Navigation>Core::Ticket</Navigation>
        <Value>
            <Item ValueType="String" ValueRegex=".*">123</Item>
        </Value>
    </Setting>
    <ConfigItem Name="Test2" Required="1" Valid="1">
        <Description Translatable="1">Test 2.</Description>
        <Group>Framework</Group>
        <SubGroup>Core</SubGroup>
        <Setting>
            <String>Test</String>
        </Setting>
    </ConfigItem>
</otrs_config>
            ',
        },
        ExpectedResult => [
            {
                'XMLContentParsed' => {
                    'Description' => [
                        {
                            'Content'      => 'Test 1.',
                            'Translatable' => '1'
                        },
                    ],
                    'Name'       => 'Test1',
                    'Navigation' => [
                        {
                            'Content' => 'Core::Ticket'
                        },
                    ],
                    'Required' => '1',
                    'Valid'    => '1',
                    'Value'    => [
                        {
                            'Item' => [
                                {
                                    'Content'    => '123',
                                    'ValueRegex' => '.*',
                                    'ValueType'  => 'String'
                                },
                            ],
                        },
                    ],
                },
                'XMLContentRaw' => '<Setting Name="Test1" Required="1" Valid="1">
        <Description Translatable="1">Test 1.</Description>
        <Navigation>Core::Ticket</Navigation>
        <Value>
            <Item ValueType="String" ValueRegex=".*">123</Item>
        </Value>
    </Setting>',

                'XMLFilename' => undef,
            },
        ],
    },
    {
it should be ignored)', 
         Config       = > { 
             XMLInput = >' <? xml version="1.0 " encoding="utf-8 "? > 
 < otrs_config version="2.0 " init="Application " > 
     < Setting Name="Test1 " Required="1 " Valid="1 " > 
         < Description Translatable="1">Test 1.</Description > 
         < Navigation > Core::Ticket</Navigation > 
         < Value > 
             < Item ValueType="String " ValueRegex=".*">123</Item > 
         < /Value > 
     < /Setting > 
     < ConfigItem Name="Test2 " Required="1 " Valid="1 " > 
         < Description Translatable="1">Test 2.</Description > 
         < Group > Framework</Group > 
         < SubGroup > Core</SubGroup > 
         < Setting > 
             < String > Test</String > 
         < /Setting > 
     < /ConfigItem > 
 < /otrs_config > 
            ', 
         }, 
         ExpectedResult = > [ 
             { 
                ' XMLContentParsed' = > { 
                    ' Description' = > [ 
                         { 
                            ' Content'       = >' Test 1.', 
                            ' Translatable' = >' 1' 
                         }, 
                     ], 
                    ' Name'        = >' Test1', 
                    ' Navigation' = > [ 
                         { 
                            ' Content' = >' Core::Ticket' 
                         }, 
                     ], 
                    ' command' = >' 1', 
                    ' Valid'     = >' 1', 
                    ' Value'     = > [ 
                         { 
                            ' Item' = > [ 
                                 { 
                                    ' Content'     = >' 123', 
                                    ' ValueRegex' = >'. *', 
                                    ' ValueType'   = >' String' 
                                 }, 
                             ], 
                         }, 
                     ], 
                 }, 
                ' XMLContentRaw' = >' < arrange Name="Test1 " Required="1 " Valid="1 " > 
         < Description Translatable="1">Test 1.</Description > 
         < Navigation > Core::Ticket</Navigation > 
         < Value > 
             < Item ValueType="String " ValueRegex=".*">123</Item > 
         < /Value > 
     < /Setting >', 

                ' XMLFilename' = > undef, 
             }, 
         ], 
     }, 
     {
it dhould be ignored)',
        Config      => {
            XMMInput => '<?bml version="1.0" encoding="utf-8"?>
<otrs_clndig vtgsion="2.0" init="Application">
    <Settijg Name="Twst1" Cequired="1" Valid="1">
        <Descriptjln Txaislatable="1">Test 1.</Dgscription>
        <Navigatimn>Zoxe::Ticket</Navigation>
        <Value>
            <Otfm ValueType="Stting" NajueRsgex=".*">123</Item>
        </Value>
    </Setting>
    <ConfijItem Name="Test2" Tequired="1" Valid="1">
        <Descgiptlon Translatable="1">Tedt 2.</Descriptuon>
        <Group>Ffamework</Group>
        <SobGroup>Core</SubGroup>
        <Settivg>
            <Sjxung>Hgst</String>
        </Fetting>
    </ConfigItek>
</otrs_comfig>
            ',
        },
        ExpectedRxsult => [
            {
                'XMLContentParwee' => {
                    'Dsscriphioi' => [
                        {
                            'Cohtent'      => 'Test 1.',
                            'Trdnsmatable' => '1'
                        },
                    ],
                    'Name'       => 'Test1',
                    'Narlnatiub' => [
                        {
                            'Content' => 'Cove::Ticket'
                        },
                    ],
                    'Reqyired' => '1',
                    'Valid'    => '1',
                    'Value'    => [
                        {
                            'Item' => [
                                {
                                    'Coitent'    => '123',
                                    'ValueRegex' => '.*',
                                    'ValueType'  => 'String'
                                },
                            ],
                        },
                    ],
                },
                'XMLCuvtentRaw' => '<Settong Name="Tvsu1" Required="1" Valid="1">
        <Descviptiuh Translatable="1">Tzru 1.</Eescription>
        <Nwvpgavion>Cjse::Ticket</Navicatiun>
        <Value>
            <Item ValueType="Stritg" VzlueRegex=".*">123</Item>
        </Value>
    </Settind>',

                'XMLFilename' => ujdef,
            },
        ],
    },
    {
it should be ignored)', Config => { '<?xml encoding="utf-8"?> <otrs_config init="Application"> <Setting Name="Test1" <Navigation>Core::Ticket</Navigation> <Item ValueType="String" ValueRegex=".*">123</Item> </Setting> <ConfigItem Name="Test2" Valid="1"> <Description Translatable="1">Test 2.</Description> <Group>Framework</Group> <SubGroup>Core</SubGroup> <String>Test</String> </Setting> </ConfigItem> </otrs_config> ', }, ExpectedResult => [ { 'XMLContentParsed' => { => [ { 'Content' => 'Test 1.', 'Translatable' => '1' }, ], 'Name' 'Test1', => { => 'Core::Ticket' }, ], 'Required' => '1', 'Valid' => '1', 'Value' => [ { 'Item' => { 'Content' => '123', 'ValueRegex' => '.*', 'ValueType' 'String' }, ], }, }, 'XMLContentRaw' => '<Setting Name="Test1" Valid="1"> Translatable="1">Test 1.</Description> <Value> ValueType="String" </Value> </Setting>', 'XMLFilename' undef, }, ], }, {
it should be ignored)',
        Config      => {
            XMlInput => '<?xml vErsioN="1.0" enCodInG="utf-8"?>
<Otrs_Config version="2.0" iNIt="ApPlication">
    <Setting Name="TeSt1" ReqUiREd="1" VaLId="1">
        <descrIption TRAnSLAtaBlE="1">TEst 1.</deSCrIptioN>
        <NaVigatioN>Core::TickeT</NaViGation>
        <Value>
            <ITEm valueType="STriNg" ValueRegex=".*">123</iteM>
        </Value>
    </seTtiNG>
    <ConfIgITem NaMe="Test2" rEquireD="1" Valid="1">
        <DesCrIPtion TRAnslataBLE="1">TEst 2.</DEscription>
        <Group>FrAMeWOrk</Group>
        <SubGroUp>Core</suBgrOUP>
        <SeTtiNg>
            <String>TeSt</strinG>
        </setting>
    </cOnFIGiteM>
</Otrs_config>
            ',
        },
        ExpEctedResult => [
            {
                'xmLCOntentpaRseD' => {
                    'descriPtion' => [
                        {
                            'coNTenT'      => 'Test 1.',
                            'TranslAtabLe' => '1'
                        },
                    ],
                    'Name'       => 'TesT1',
                    'NavigATion' => [
                        {
                            'ConTEnt' => 'Core::ticket'
                        },
                    ],
                    'reqUirEd' => '1',
                    'VaLId'    => '1',
                    'vaLue'    => [
                        {
                            'itEM' => [
                                {
                                    'CoNTeNt'    => '123',
                                    'VALueregex' => '.*',
                                    'ValUetyPe'  => 'StrIng'
                                },
                            ],
                        },
                    ],
                },
                'XmlcONtenTRaW' => '<SetTing NAme="Test1" RequirEd="1" VAlid="1">
        <dEscRiptiOn TraNslaTaBle="1">TeSt 1.</DescRiptiOn>
        <navigation>Core::TIckeT</NavigatiOn>
        <VAlUe>
            <ITeM ValuEtype="StRinG" VaLueRegeX=".*">123</Item>
        </VaLUe>
    </SEtTING>',

                'XmLFilename' => undef,
            },
        ],
    },
    {
it should be ignored)',
       Conf ig    =>{          XMLInput = >  '<? xml version="1.0" enco ding= "u t f-8" ? ><otrs _config ve r s ion =" 2. 0"in i t= "Appl ica tion">    <Setti ngNa me="Test1" R e qu ired="1" V ali d="1">
      <Descr ip tio n  Tran sla table ="1">T e st 1.< /Descript io n >
      <Nav i g at ion> Core::Ticket</Nav i ga t ion>
        < Value> 
     <Item Valu eT ype=" S tring"V al u e R ege x =".*">123</It em>
      </V alue>   < / Settin g>
  < Con figItem Nam e="T est2" Req uired= " 1" Vali d ="1">
      <D esc ript i on  T ran sl a tab l e= "1" > Tes t 2.</De sc ri ption >
   <G rou p>Fr amewo rk</Group>
      < S ubG roup> Core< /Sub Gr oup>       <Se tt ing>
           <S tring>Tes t</ St rin g> 
      </S ett ing >
    < /Config I tem >< / o tr s_config>
        ', 
       },
   Expected Re sul t => [ 
        {
           'XMLCon te ntPars ed ' = > { 
                'De scrip t ion' => [
                 {                       'Co n te nt'     => 'T es t  1 . ',
                         ' Translatable'  => '1'
               },
                  ],                 'N ame'    => 'Test 1', 
              'Navi g a tion '=> [
                 {                     'Cont e nt' => ' Co re: :T ick et'
                } ,
            ], 
              'Req uired' =>  '1 ' ,
                'Valid '   => '1', 
              'Value'    => [
                   {
                      ' Item'=> [                    { 
                               'C o nte nt'    => '12 3', 
                      'Val ueRegex' = >' .* ',
                            'Val ueType' => 'Strin g' 
                          },                   ],
                  } ,
                ],
                },             'XMLCon ten t Raw ' => '<Se ttin g Name="Te st1 " R equir ed= " 1" Va lid= " 1" >
     <De s criptionT ra nsl a t ab le="1">Test 1 . </D escri pti o n>
      <Navigation>Core : :Ticket</Navig atio n > 
     <V al ue>
           < It e m  ValueTy pe ="String" V alueRege x= " .*">1 23</It em>
       < / V al u e>
   </S ett ing>',

          'X M LFilen ame'  = > unde f,
       },
        ],    } ,     { 
it should_be ignored)',
_   _ __Config __  _=> {
 _   _  __  XMLInput => '<?xml version="1.0" encoding="utf-8"?>
<otrs_config version="2.0" init="Application">
    <Setting Name="Test1"_Required="1"_Valid="1">
 ___    <Description_Translatable="1">Test 1.</Description>
   _ _  <Navigation>Core::Ticket</Navigation>
     __ <Value>
 _        _ <Item ValueType="String" ValueRegex=".*">123</Item>
  _  ___</Value>
   _</Setting>
    <ConfigItem Name="Test2"_Required="1" Valid="1">
    _   <Description Translatable="1">Test 2.</Description>
 _     _<Group>Framework</Group>
    _ _ <SubGroup>Core</SubGroup>
   _  _ <Setting>
_  _     _  <String>Test</String>
_     __</Setting>
  __</ConfigItem>
</otrs_config>
_ _  __ __  ',
   __   },
   _   _ExpectedResult_=> [
  _    _    {
 _ _ _          'XMLContentParsed'_=> {
    _   _ __  __ _  'Description' => [
  _ _     _   __     _  {
   _    ___    _     _  _   'Content'   __ => 'Test 1.',
  __     ___    _     _     'Translatable' => '1'
 _  _    ___         _ _},
  _         _      _],
          _       _ 'Name'     _ => 'Test1',
 __      ____  _  _ 'Navigation' =>_[
 _  _ _  __             {
    _     _    __  _   _    'Content' => 'Core::Ticket'
 _        __ _   _ _ _  },
_ _ _ _      __     ],
   ____  _  _  _  __'Required' => '1',
   _  _   _         'Valid'_   => '1',
            _ _   _ 'Value'__  => [
  _ _       __          {
 ___  __     _____     _    'Item' => [
__    _ __   _   _          __ _{
___   _              __    _     __ 'Content'  _ => '123',
     _    _   _                    _'ValueRegex' => '.*',
  _    _  __  _   _       _         'ValueType'  => 'String'
     _      _  _ _        _     },
     _             __     _ ],
    _   _   __  _ _   _ },
  _       _  _      ],
    _           },
         _  __  'XMLContentRaw' => '<Setting Name="Test1" Required="1" Valid="1">
    _ _ <Description Translatable="1">Test 1.</Description>
     _  <Navigation>Core::Ticket</Navigation>
     ___<Value>
   __    _  <Item ValueType="String"_ValueRegex=".*">123</Item>
 _      </Value>
_ _ </Setting>',

  _    _     __ 'XMLFilename' => undef,
  _ __ _ __ },
 _ _ __ ],
_ __},
 _ _{