In XML < or & are strictly illegal to use as values. There are more which are not strictly illegal but are better avoided. Use an entity reference instead. So your XML file generates an error. The entity reference for < is &lt; and > is &gt;

the problem of counting
this code counts the Series (Season), "but not the episodes" in which he played the actor