remove elements from XML file in java

前端 未结 5 1691
北海茫月
北海茫月 2021-01-23 11:27

I have generated an xml file from an excel data base and it contains automatically an element called \"offset\". To make my new file match my needs, I want to remov

5条回答
  •  野的像风
    2021-01-23 11:52

    String xml = "2Baseline2 desctiption value1value2value3value4value5";
                xml = xml.replaceAll("", "");
                System.out.println(xml);
    

提交回复
热议问题