Strip content in XML parsing