xerces2-j

Locale specific messages in Xerces 2.11.0 (Java)

倖福魔咒の 提交于 2019-12-10 09:58:17
问题 I want to use locale specific error messages with my JAXP and Xerces2. By default only English messages are available. First step is to retrieve the messages files and put them into the package "org/apache/xerces/impl/msg/" - done. By using Locale.setDefault (Locale.GERMANY) the German messages are displayed so this is working. But I want the messages to be differently localized on a per-instance basis. So one parser should return English messages and another parser should return German

Java library that supports XSD 1.1 [closed]

最后都变了- 提交于 2019-12-06 06:59:58
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Is there a java library that supports XSD 1.1. I have tried finding it for 2 days. The only implementation I found was Xerces2 Java 2.11.0 (XML Schema 1.1) (Beta) which works along with JAXP 1.4. This beta version did not work well either. Basic things like 'assert test' that were introduced in XSD 1.1 were

Locale specific messages in Xerces 2.11.0 (Java)

主宰稳场 提交于 2019-12-06 01:49:25
I want to use locale specific error messages with my JAXP and Xerces2. By default only English messages are available. First step is to retrieve the messages files and put them into the package "org/apache/xerces/impl/msg/" - done. By using Locale.setDefault (Locale.GERMANY) the German messages are displayed so this is working. But I want the messages to be differently localized on a per-instance basis. So one parser should return English messages and another parser should return German messages. The code I'm using to create SAX2 parsers is: org.xml.sax.XMLReader ret = XMLReaderFactory

How to disable accessExternalDTD and entityExpansionLimit warnings with logback

梦想与她 提交于 2019-12-03 05:36:02
问题 I'm using logback with groovy and get lots of warnings showing up when parsing xml. I am aware of the bug in JDK1.7_u45 that is causing this. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Is there any way to turn off this log warnings from showing up in DEBUG? I tried

How to disable accessExternalDTD and entityExpansionLimit warnings with logback

女生的网名这么多〃 提交于 2019-12-02 18:56:40
I'm using logback with groovy and get lots of warnings showing up when parsing xml. I am aware of the bug in JDK1.7_u45 that is causing this. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized. Warning: org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized. Is there any way to turn off this log warnings from showing up in DEBUG? I tried writing a filter using Filter, but didn't help. 6ton This is a known bug in the JRE that reports this as