how to remove Xml version string from String

后端 未结 5 1986
情书的邮戳
情书的邮戳 2021-02-05 12:11

I have read Xml File using code given below-

  String XmlString = \"\";
  String resourcePath=FilePathHelper.getResourceFilePath(request);



        BufferedRea         


        
5条回答
  •  一生所求
    2021-02-05 13:11

    String xmlString = readXml();
    int p1 = xmlString.indexOf("");
    if ( p1 != -1 && p2 != -1 && p2>p1){
       xmlString=xmlString.substring(0,p1)+xmlString(p2+2);
    }
    
    private String readXml(){
       //TOTO from file or any-pipeline read,convert to String....
    }
    

提交回复
热议问题