How can I parse XML that confirms to the 1.1 spec using Java and Xerces?

前端 未结 2 865
囚心锁ツ
囚心锁ツ 2020-12-18 08:39

I\'m trying to parse a String which contains XML content which conforms to the XML 1.1 spec. The XML contains character references which are not allowed in the XML 1.0 spec

2条回答
  •  误落风尘
    2020-12-18 09:10

    Not sure how to do this with Xerces, but Woodstox supports XML 1.1 out of the box. While it is primarily a Stax parser, it also implements SAX API (since version 3.2).

提交回复
热议问题