ciao ho un xml tipo questo:

codice:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>  - <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">   <display-name>cityportal</display-name>  - 
  
- <listener>   
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>    </listener> - 
<listener>  
 <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>    
</listener>
 -
   
- <context-param>  
 <param-name>javax.faces.PROJECT_STAGE</param-name>    
<param-value>Production</param-value>    
</context-param> - <context-param>   
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>    <param-value>server</param-value>  
  </context-param> -
 <context-param>   
......................
.....................
<filter-mapping>   
<filter-name>hibernateFilter</filter-name>  
  <servlet-name>Faces Servlet</servlet-name>  
  </filter-mapping>
mi servirebbe usando DOM su un applicazione java riuscire a cancellare tutto quello contenuto nell xml tra i commenti e
per poi risalvarlo.
grazie