remove some line in a java Document : i have a java Document which contains XML, how i can do if i want to take from that Document only some information enclosed in some tags?
Example (i want only tag included in <catalog> <catalog/>)

    //Some VALUES
       
        <CATALOG>
          <CD>
          <TITLE>Empire Burlesque</TITLE>
          <ARTIST>Bob Dylan</ARTIST>
          <COUNTRY>USA</COUNTRY>
          <COMPANY>Columbia</COMPANY>
          <PRICE>10.90</PRICE>
          <YEAR>1985</YEAR>
          <ORACLE>
          select * from scott.dept;
          </ORACLE>
          </CD>
          <CD>
          <TITLE>Hide your heart</TITLE>
          <ARTIST>Bonnie Tyler</ARTIST>
          <COUNTRY>UK</COUNTRY>
          <COMPANY>CBS Records</COMPANY>
          <PRICE>9.90</PRICE>
          <YEAR>1988</YEAR>
          </CD>
          <ORACLE>
          begin
          htp.p('This is the test data');
          end;
          </ORACLE>
          </CD>
        </CATALOG>
    //OTHER VALUES