public final class XmlToXsdExtensions extends 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 String |
xmlToXsd(File xmlFile)
Returns a xsd String from the given XML file that can used for several purposes.
|
static void |
xmlToXsd(File[] xmlFiles,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
File outDir,
String outPrefix)
Creates or update the given xsd output file from the given XML file.
|
static void |
xmlToXsd(File xmlInputFile,
File xsdOutFile)
Creates or update the given xsd output file from the given XML file.
|
static void |
xmlToXsd(File xmlInputFile,
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(File xmlFile,
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 String |
xmlToXsd(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 String |
xmlToXsd(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 String |
xmlToXsd(String xmlFile,
org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions,
org.apache.xmlbeans.XmlOptions xmlOptions) |
public static String xmlToXsd(File xmlFile) throws org.apache.xmlbeans.XmlException, IOException
xmlFile - the XML fileorg.apache.xmlbeans.XmlException - the xml exceptionIOException - Signals that an I/O exception has occurred.public static void xmlToXsd(File xmlInputFile, File xsdOutFile) throws org.apache.xmlbeans.XmlException, IOException
xmlInputFile - the xml input filexsdOutFile - the xsd out fileorg.apache.xmlbeans.XmlException - the xml exceptionIOException - Signals that an I/O exception has occurred.public static void xmlToXsd(File xmlInputFile, File xsdOutFile, org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions) throws org.apache.xmlbeans.XmlException, 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.IOException - Signals that an I/O exception has occurred.public static void xmlToXsd(File xmlFile, File xsdOutFile, org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions, org.apache.xmlbeans.XmlOptions xmlOptions) throws org.apache.xmlbeans.XmlException, 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.IOException - Signals that an I/O exception has occurred.public static String xmlToXsd(File xmlFile, org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions) throws org.apache.xmlbeans.XmlException, IOException
xmlFile - the XML file.inst2XsdOptions - the inst2 xsd optionsorg.apache.xmlbeans.XmlException - occurs when a give xml file is invalid.IOException - Signals that an I/O exception has occurred.public static String xmlToXsd(File xmlFile, org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions, org.apache.xmlbeans.XmlOptions xmlOptions) throws org.apache.xmlbeans.XmlException, IOException
xmlFile - the xml fileinst2XsdOptions - the inst2 xsd optionsxmlOptions - the xml optionsorg.apache.xmlbeans.XmlException - occurs when a give xml file is invalid.IOException - Signals that an I/O exception has occurred.public static void xmlToXsd(File[] xmlFiles, org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions, File outDir, String outPrefix) throws 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".IOException - Signals that an I/O exception has occurred.public static String xmlToXsd(String xmlFile, org.apache.xmlbeans.impl.inst2xsd.Inst2XsdOptions inst2XsdOptions, org.apache.xmlbeans.XmlOptions xmlOptions) throws org.apache.xmlbeans.XmlException, IOException
org.apache.xmlbeans.XmlExceptionIOExceptionCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.