zoukankan      html  css  js  c++  java
  • An invalid XML character (Unicode: 0x5) was found in the element content of the document.

    在解析XML文件时:

    org.dom4j.DocumentException: Error on line 1 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document.
    at org.dom4j.io.SAXReader.read(SAXReader.java:482)
    at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)

    解决方法:

    content = content.replaceAll("[\x00-\x08\x0b-\x0c\x0e-\x1f]", "");

  • 相关阅读:
    apt-get
    微博
    字符串操作
    fly
    Oracle数据库只Dual表
    如何配置一个Oracle服务
    排序算法
    排序算法
    排序算法
    ArcEngine几个空间操作
  • 原文地址:https://www.cnblogs.com/yshyee/p/13577992.html
Copyright © 2011-2022 走看看