How do refine a huge KML file & strip out certain data?

How do refine a huge KML file & strip out certain data?