remove elements from XML file in java

前端 未结 5 1688
北海茫月
北海茫月 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:42

       String sXML= "2Baseline2 desctiption value1value2value3value4value5";
       System.out.println(sXML);
       String sNewXML = sXML.replace("", "");
       System.out.println(sNewXML);
    

提交回复
热议问题