How to read well formed XML in Java, but skip the schema?

后端 未结 5 1960
自闭症患者
自闭症患者 2020-11-30 10:21

I want to read an XML file that has a schema declaration in it.

And that\'s all I want to do, read it. I don\'t care if it\'s valid, but I want it to be well formed.

5条回答
  •  情歌与酒
    2020-11-30 10:55

    This works well to check whether the xml is well formed irrespective of whether it contains a DTD declaration or not.

提交回复
热议问题