【问题标题】:How validate character not allowed in a xml utf-8如何验证 xml utf-8 中不允许的字符
【发布时间】:2018-09-19 16:15:30
【问题描述】:

我有一个带有 utf-8 的 xml,它保存在 oracle 数据库字段中的 xmlType 中。我需要验证 xml 不包含任何不允许的字符。 ¿我怎样才能在java中为此做一个方法?

谢谢

【问题讨论】:

  • 什么不允许?请edit举例说明为什么需要防范。

标签: java xml validation character-encoding


【解决方案1】:

使用 java.lang.String.contains()

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-01
    • 2016-01-26
    • 1970-01-01
    相关资源
    最近更新 更多