public final class XmlToXsdExtensions
extends java.lang.Object
XmlToXsdExtensions generates XML schema from XML files. It makes use of
XMLBeans tools.| Constructor and Description |
|---|
XmlToXsdExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
xmlToXsd(java.io.File xmlFile)
Returns a xsd String from the given XML file that can used for several purposes.
|
static void |
xmlToXsd(java.io.File[] xmlFiles,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
java.io.File outDir,
java.lang.String outPrefix)
Creates or update the given xsd output file from the given XML file.
|
static void |
xmlToXsd(java.io.File xmlInputFile,
java.io.File xsdOutFile)
Creates or update the given xsd output file from the given XML file.
|
static void |
xmlToXsd(java.io.File xmlInputFile,
java.io.File xsdOutFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions)
Creates or update the given xsd output file from the given XML file.
|
static void |
xmlToXsd(java.io.File xmlFile,
java.io.File xsdOutFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions)
Creates or update the given xsd output file from the given XML file.
|
static java.lang.String |
xmlToXsd(java.io.File xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions)
Returns a xsd String from the given XML file that can used for several purposes.
|
static java.lang.String |
xmlToXsd(java.io.File xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions)
Returns a xsd String from the given XML file that can used for several purposes.
|
static java.lang.String |
xmlToXsd(java.lang.String xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions) |
public static java.lang.String xmlToXsd(java.io.File xmlFile)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
xmlFile - the XML fileorg.apache.xmlbeans.XmlException - the xml exceptionjava.io.IOException - Signals that an I/O exception has occurred.public static void xmlToXsd(java.io.File xmlInputFile,
java.io.File xsdOutFile)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
xmlInputFile - the xml input filexsdOutFile - the xsd out fileorg.apache.xmlbeans.XmlException - the xml exceptionjava.io.IOException - Signals that an I/O exception has occurred.public static void xmlToXsd(java.io.File xmlInputFile,
java.io.File xsdOutFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
xmlInputFile - the xml input filexsdOutFile - the xsd out fileinst2XsdOptions - the inst2 xsd optionsorg.apache.xmlbeans.XmlException - occurs when a give xml file is invalid.java.io.IOException - Signals that an I/O exception has occurred.public static void xmlToXsd(java.io.File xmlFile,
java.io.File xsdOutFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
xmlFile - the xml filexsdOutFile - the xsd out fileinst2XsdOptions - the inst2 xsd optionsxmlOptions - the xml optionsorg.apache.xmlbeans.XmlException - occurs when a give xml file is invalid.java.io.IOException - Signals that an I/O exception has occurred.public static java.lang.String xmlToXsd(java.io.File xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
xmlFile - the XML file.inst2XsdOptions - the inst2 xsd optionsorg.apache.xmlbeans.XmlException - occurs when a give xml file is invalid.java.io.IOException - Signals that an I/O exception has occurred.public static java.lang.String xmlToXsd(java.io.File xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
xmlFile - the xml fileinst2XsdOptions - the inst2 xsd optionsxmlOptions - the xml optionsorg.apache.xmlbeans.XmlException - occurs when a give xml file is invalid.java.io.IOException - Signals that an I/O exception has occurred.public static void xmlToXsd(java.io.File[] xmlFiles,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
java.io.File outDir,
java.lang.String outPrefix)
throws java.io.IOException
xmlFiles - the XML filesinst2XsdOptions - the inst2 xsd optionsoutDir - The directory path for output files. Default is '.' (the current directory).outPrefix - The prefix for output file names. Default is "schema".java.io.IOException - Signals that an I/O exception has occurred.public static java.lang.String xmlToXsd(java.lang.String xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
org.apache.xmlbeans.XmlExceptionjava.io.IOException