stax xml validation

前端 未结 3 1468
余生分开走
余生分开走 2020-12-04 20:18

I know I can validate xml-file when I use sax. But can I validate when I use Stax?

3条回答
  •  死守一世寂寞
    2020-12-04 21:00

    There is no standard way to do this. However, there's an API extension called StAX2 which support validation using Sun's MSV (multi schema validation). I would recommend to use the Woodstox StAX2 implementation.

    http://woodstox.codehaus.org/

提交回复
热议问题