Class XSDValidator
- java.lang.Object
-
- com.fourjs.report.facturx.validation.XSDValidator
-
public class XSDValidator extends Object
Validates an XML file against an XSD schema file
-
-
Constructor Summary
Constructors Constructor Description XSDValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
static String[]
validate(File xsdFile, InputStream is)
returns an empty list if the document is validstatic String[]
validate(File xsdFile, StreamSource streamSource)
returns an empty list if the document is validstatic String[]
validate(InputStream is)
returns an empty list if the document is validstatic String[]
validate(String xmlPath)
returns an empty list if the document is valid
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
validate
public static String[] validate(String xmlPath) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
validate
public static String[] validate(InputStream is) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
validate
public static String[] validate(File xsdFile, InputStream is) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
validate
public static String[] validate(File xsdFile, StreamSource streamSource) throws IOException
returns an empty list if the document is valid- Throws:
IOException
-
-