Question : Can I ad two Parents to an XML file

I am getting an error after i created an XML file that includes two parents
<?xml version="1.0" encoding="utf-8"?>


<favoriteSongs>
      <song rating="PG">
            <songtitle>Bloody Sunday</songtitle>
            <artistName>U2</artistName>
            <length>3:78</length>
            <recordedYear>83</recordedYear>
            <ablumTitle>War</ablumTitle>
      </song>
      
            <song rating="PG">
            <songtitle>One </songtitle>
            <artistName>U2</artistName>
            <length>4:36</length>
            <recordedYear>92</recordedYear>
            <ablumTitle>Actung Baby</ablumTitle>
      </song>
      
            <song rating="PG">
            <songtitle>My Name Is</songtitle>
            <artistName>EMINEM</artistName>
            <length>4:28</length>
            <recordedYear>99</recordedYear>
            <ablumTitle>Slim Shady</ablumTitle>
      </song>
      
             <song rating="PG">
            <songtitle>IRIS</songtitle>
            <artistName>GO0 GO0 Dolls</artistName>
            <length>4:50</length>
            <recordedYear>97</recordedYear>
            <ablumTitle>City Of Angels</ablumTitle>
      </song>      
      
</favoriteSongs>

<Ffilms>

      <film rating="PG">
            <filmTitle>Bloody Sunday</filmTitle>
            <filmDirector>U2</filmDirector>
            <filmLength>3:78</filmLength>
            <filmYear>83</filmYear>
      </film>
      
</Ffilms>

Answer : Can I ad two Parents to an XML file

Why not just create the top level element which encapsulates both favoriteSongs and Ffilms?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
<?xml version="1.0" encoding="utf-8"?>
<favorites>
  <favoriteSongs>
      <song rating="PG">
            <songtitle>Bloody Sunday</songtitle>
            <artistName>U2</artistName>
            <length>3:78</length>
            <recordedYear>83</recordedYear>
            <ablumTitle>War</ablumTitle>
      </song>
      .
      .
      .
   </favoriteSongs>
   <Ffilms>

      <film rating="PG">
            <filmTitle>Bloody Sunday</filmTitle>
            <filmDirector>U2</filmDirector>
            <filmLength>3:78</filmLength>
            <filmYear>83</filmYear>
      </film>
      
   </Ffilms>
</favorites>
Random Solutions  
 
programming4us programming4us