Package org.pentaho.di.core.xml
Class XMLCheck
- java.lang.Object
-
- org.pentaho.di.core.xml.XMLCheck
-
public class XMLCheck extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXMLCheck.XMLTreeHandler
-
Constructor Summary
Constructors Constructor Description XMLCheck()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisXMLFileWellFormed(org.apache.commons.vfs2.FileObject file)Checks an xml file is well formed.static booleanisXMLWellFormed(InputStream is)Checks an xml string is well formed.
-
-
-
Method Detail
-
isXMLFileWellFormed
public static final boolean isXMLFileWellFormed(org.apache.commons.vfs2.FileObject file) throws KettleExceptionChecks an xml file is well formed.- Parameters:
file- The file to check- Returns:
- true if the file is well formed.
- Throws:
KettleException
-
isXMLWellFormed
public static boolean isXMLWellFormed(InputStream is) throws KettleException
Checks an xml string is well formed.- Parameters:
is- inputstream- Returns:
- true if the xml is well formed.
- Throws:
KettleException
-
-