Question : xml are both of the examples below valid?

Do I need to split Keywords into another area like I did in the second example?  Or is the fist example correct?

Also, what is it called when you do create the Keywords area? (is it a complex type? node?)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
<Package> 
  <SingleItem>
	<Title>MyTitle</Title>
	<Description>Description</Description>		
	<Keyword>Key 1</Keyword>
	<Keyword>Key 2</Keyword>
  </SingleItem>
</Package>

<Package> 
  <SingleItem>
	<Title>MyTitle</Title>
	<Description>Description</Description>		
	<Keywords>Keywords>		
		<Keyword>Key 1</Keyword>
		<Keyword>Key 2</Keyword>
	</Keywords>
  </SingleItem>
</Package>

Answer : xml are both of the examples below valid?

Both examples are correct (well in the second example there's a gramatical mistake, it should be):
<Keywords>            
      <Keyword>Key 1</Keyword>
      <Keyword>Key 2</Keyword>
</Keywords>

Even if both examples are correct, maybe the second one is easier to understand because you're grouping elements, but there's practically no difference on both of them when you have to process them.
Random Solutions  
 
programming4us programming4us