public class SchemaFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Schema |
newSchema(byte[] schema)
Creates a new schema object from the given schema byte array.
|
public static Schema newSchema(byte[] schema) throws XMLException
XMLException
if there is any error with the schema definition.schema
- The schema byte arraySchema
objectXMLException
- if there is any error with the schema.