Your description is not precise enough, however any such tasks start with a stylesheet with the template
Code:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
to which you then add templates for the elements that need special treatment. For instance if you want to remove the "Endpoint_Collection" but keep its children and descendants you use
Code:
<xsl:template match="Endpoint_Collection">
<xsl:apply-templates/>
</xsl:template>
On the other hand, if you want to delete it completely, including any children and descendants, then use
Code:
<xsl:template match="Endpoint_Collection"/>