public class XMLInstance2Schema extends Object
| Constructor and Description |
|---|
XMLInstance2Schema()
Creates a new XMLInstance2Schema
|
| Modifier and Type | Method and Description |
|---|---|
Schema |
createSchema(InputSource source)
Creates an XML Schema using the given InputSource.
|
Schema |
createSchema(Reader reader)
Creates an XML Schema using the given Reader.
|
Schema |
createSchema(String filename)
Creates an XML Schema using the given XML instance filename.
|
static void |
main(String[] args)
For testing purposes only.
|
void |
serializeSchema(Writer dstWriter,
Schema schema)
|
void |
setDefaultGroupingAsAll()
Sets the default grouping as "all".
|
public Schema createSchema(String filename) throws IOException
filename - the filename for the XML documentIOExceptionpublic Schema createSchema(Reader reader) throws IOException
reader - the Reader for the XML documentIOExceptionpublic Schema createSchema(InputSource source) throws IOException
source - the InputSource for the XML documentIOExceptionpublic void setDefaultGroupingAsAll()
public void serializeSchema(Writer dstWriter, Schema schema) throws IOException, SAXException
dstWriter - The Writer instance to output the XML schema to.schema - The XML Schema instance to be output.IOException - If there's a problem related to writing to the given Writer instance.SAXException - If there's a problem related to SAX streaming.public static void main(String[] args)
Copyright © 2021. All rights reserved.