Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Woodstox 6.4.0 - Source Code Files
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website.
You can download them from the "src/main/java" folder.
You can also browse Woodstox Source Code files below:
✍: FYIcenter
⏎ com/ctc/wstx/msv/W3CSchemaFactory.java
/* Woodstox XML processor * * Copyright (c) 2004- Tatu Saloranta, tatu.saloranta@iki.fi * * Licensed under the License specified in the file LICENSE which is * included with the source code. * You may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.ctc.wstx.msv; import javax.xml.parsers.SAXParserFactory; import javax.xml.stream.*; import aQute.bnd.annotation.spi.ServiceProvider; import org.xml.sax.InputSource; import org.codehaus.stax2.validation.*; import com.sun.msv.grammar.xmlschema.XMLSchemaGrammar; import com.sun.msv.reader.GrammarReaderController; import com.sun.msv.reader.xmlschema.XMLSchemaReader; import static aQute.bnd.annotation.Resolution.OPTIONAL; /** * This is a StAX2 schema factory that can parse and create schema instances * for creating validators that validate documents to check their validity * against specific W3C Schema instances. It requires * Sun Multi-Schema Validator * (http://www.sun.com/software/xml/developers/multischema/) * to work, and acts as a quite thin wrapper layer, similar to * how matching RelaxNG validator works */ @ServiceProvider(value = XMLValidationSchemaFactory.class, resolution = OPTIONAL) public class W3CSchemaFactory extends BaseSchemaFactory { /** * For now, there's no need for fine-grained error/problem reporting * infrastructure, so let's just use a dummy controller. */ protected final GrammarReaderController mDummyController = new com.sun.msv.reader.util.IgnoreController(); public W3CSchemaFactory() { super(XMLValidationSchema.SCHEMA_ID_W3C_SCHEMA); } /* //////////////////////////////////////////////////////////// // Non-public methods //////////////////////////////////////////////////////////// */ @Override protected XMLValidationSchema loadSchema(InputSource src, Object sysRef) throws XMLStreamException { /* 26-Oct-2007, TSa: Are sax parser factories safe to share? * If not, should just create new instances for each * parsed schema. */ SAXParserFactory saxFactory = getSaxFactory(); MyGrammarController ctrl = new MyGrammarController(); XMLSchemaGrammar grammar = XMLSchemaReader.parse(src, saxFactory, ctrl); if (grammar == null) { String msg = "Failed to load W3C Schema from '"+sysRef+"'"; String emsg = ctrl.mErrorMsg; if (emsg != null) { msg = msg + ": "+emsg; } throw new XMLStreamException(msg); } return new W3CSchema(grammar); } }
⏎ com/ctc/wstx/msv/W3CSchemaFactory.java
Or download all of them as a single archive file:
File name: woodstox-core-6.4.0-fyi.zip File size: 552992 bytes Release date: 2022-10-25 Download
⇒ woodstox-core-6.4.0.jar - Woodstox Core 6.4.0
⇐ What Is Woodstox XML Processing
2023-01-29, 3175👍, 0💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
ZooKeeper is a centralized service for maintaining configuration information, naming, providing dist...
This package is the backport of java.util.concurrent API, introduced in Java 5.0 and further refined...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...